samcloudcode/fitness_mcp
3.2
If you are the rightful owner of fitness_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Fitness MCP Project is a Model Context Protocol server designed for memory storage with full-text search capabilities, utilizing Supabase Postgres.
Fitness MCP Project
MCP (Model Context Protocol) server for memory storage with full-text search capabilities using Supabase Postgres.
Features
- š Memory Storage: Store and retrieve memories with user context
- š Full-Text Search: Search across all memories using PostgreSQL's full-text search
- š·ļø Topic Categorization: Organize memories by topics
- š Production Ready: Built with SQLAlchemy and FastMCP
Project Structure
fitness_mcp/
āāā src/
ā āāā mcp_server.py # MCP server entry point
ā āāā memory/ # Memory module
ā āāā __init__.py
ā āāā crud.py # Database operations
ā āāā db.py # Database configuration
āāā tests/ # Test files
ā āāā test_memory_server.py
āāā migrations/ # Database migrations
ā āāā 001_create_memories.sql
āāā PRPs/ # Project Reference Patterns
ā āāā memory-server.md # Memory server spec
āāā pyproject.toml # Project configuration
āāā README.md # This file
Getting Started
Prerequisites
- Python 3.11+
- uv package manager
- PostgreSQL database (Supabase or local)
Setup
- Clone the repository
git clone <your-repo>
cd fitness_mcp
- Install dependencies
uv sync
- Configure database
Create a
.env
file with your database URL:
DATABASE_URL=postgresql://user:password@host:port/database
- Run migrations Execute the SQL migration in your database:
psql $DATABASE_URL < migrations/001_create_memories.sql
Usage
Run tests:
uv run python tests/test_memory_server.py
Start the MCP server:
uv run python -m src.mcp_server
Or use the script entry point:
uv run memory-server
MCP Protocol
All servers implement the Model Context Protocol for seamless integration with AI assistants like Claude.
Contributing
Each server follows these conventions:
- Python 3.11+ with type hints
- SQLAlchemy for database operations
- FastMCP for MCP protocol implementation
- Environment-based configuration
- Comprehensive test coverage
License
MIT