File size: 3,779 Bytes
9b5b75d
5849687
 
 
 
9b5b75d
5849687
 
 
 
 
 
 
 
9b5b75d
 
5849687
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
title: Recovery Compass MCP Hub
emoji: 🧭
colorFrom: purple
colorTo: blue
sdk: docker
pinned: true
license: mit
tags:
  - mcp
  - recovery
  - mental-health
  - support
  - ai-assistant
---

# 🧭 Recovery Compass MCP Hub

**AI-Powered Recovery Support with Hugging Face MCP Integration**

## 🌟 Features

- **πŸ”Œ MCP Server Integration** - Full Model Context Protocol support for AI assistants
- **πŸ€– AI Chat Support** - 24/7 recovery guidance and support
- **πŸ” Semantic Search** - Find recovery resources, research papers, and support tools
- **πŸ“Š Progress Tracking** - Monitor your recovery journey with AI insights
- **🌐 OAuth Login** - Secure authentication with Hugging Face
- **πŸš€ REST API** - Complete API for integration with other services

## πŸš€ Quick Start

### Access the Space
Visit [https://huggingface.co/spaces/Recovery-Compass-79/README](https://huggingface.co/spaces/Recovery-Compass-79/README)

### API Endpoints

- **`GET /`** - Welcome page with OAuth login
- **`GET /health`** - Health check endpoint
- **`GET /mcp`** - MCP server capabilities
- **`GET /api/search?query={text}`** - Search HF resources
- **`GET /api/models?task={task}`** - List ML models
- **`GET /api/datasets?task={task}`** - List datasets
- **`GET /api/spaces`** - List recovery-related Spaces
- **`POST /api/chat`** - AI chat endpoint

### Example API Call

```bash
# Search for recovery-related resources
curl "https://Recovery-Compass-79-README.hf.space/api/search?query=mental%20health"

# Get health check
curl "https://Recovery-Compass-79-README.hf.space/health"

# Chat with AI
curl -X POST "https://Recovery-Compass-79-README.hf.space/api/chat" \
  -H "Content-Type: application/json" \
  -d '{"message": "I need support today"}'
```

## πŸ”§ MCP Integration

This Space serves as an MCP server providing:

1. **Semantic Search Tools** - Find AI apps, papers, and documentation
2. **Model Access** - Discover and use ML models
3. **Dataset Tools** - Access recovery and mental health datasets
4. **Space Integration** - Connect to other support Spaces
5. **Progress Tracking** - Monitor recovery metrics

### Connect with MCP Clients

Add this to your MCP client configuration:

```json
{
  "mcpServers": {
    "recovery-compass": {
      "url": "https://huggingface.co/spaces/Recovery-Compass-79/README",
      "oauth": true
    }
  }
}
```

## πŸ” OAuth Setup

1. Visit the Space homepage
2. Click "Login with Hugging Face"
3. Authorize the application
4. Start using MCP tools

## πŸ› οΈ Local Development

```bash
# Clone the repository
git clone https://huggingface.co/spaces/Recovery-Compass-79/README

# Install dependencies
pip install -r requirements.txt

# Run locally
uvicorn app:app --host 0.0.0.0 --port 7860
```

## πŸ“š Documentation

- [Hugging Face MCP Server](https://huggingface.co/mcp)
- [FastAPI Documentation](https://fastapi.tiangolo.com/)
- [Model Context Protocol](https://modelcontextprotocol.io/)

## 🀝 Contributing

Contributions are welcome! This is an open-source recovery support tool.

## πŸ“„ License

MIT License - feel free to use and modify for your own recovery support projects.

## ⚠️ Disclaimer

This is an AI-powered support tool and should not replace professional medical or mental health care. If you're in crisis, please contact:
- National Suicide Prevention Lifeline: 988
- Crisis Text Line: Text HOME to 741741
- Emergency Services: 911

## 🌈 About Recovery Compass

Recovery Compass is an AI-powered platform designed to support individuals on their recovery journey. By integrating with Hugging Face's MCP ecosystem, we provide access to cutting-edge AI models, datasets, and tools to enhance recovery support.

---

Built with ❀️ using Hugging Face, FastAPI, and Model Context Protocol