fitness_mcp

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

  1. Clone the repository
git clone <your-repo>
cd fitness_mcp
  1. Install dependencies
uv sync
  1. Configure database Create a .env file with your database URL:
DATABASE_URL=postgresql://user:password@host:port/database
  1. 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