Sponsored by Deepsite.site

Workout MCP Server

Created By
ipdelete8 months ago
MCP Server for workout info
Content

Workout MCP Server

A Model Context Protocol (MCP) server that provides cycling workout analytics tools, enabling LLMs to analyze fitness data, calculate training metrics, and provide insights into athletic performance.

Features

The Workout MCP Server provides tools for:

  • Retrieving workout history (last 50 or last 7 workouts)
  • Looking up specific workouts by ID
  • Computing fitness metrics:
    • Fitness (CTL): Chronic Training Load - 42-day exponentially weighted moving average
    • Fatigue (ATL): Acute Training Load - 7-day exponentially weighted moving average
    • Form (TSB): Training Stress Balance - the difference between fitness and fatigue

Installation

When using uv no specific installation is needed. We will use uvx to directly run workout_mcp_server.

Using PIP

Alternatively you can install workout_mcp_server via pip:

pip install workout_mcp_server

After installation, you can run it as a module using:

python -m workout_mcp_server

Configuration

Configure with Claude Desktop

Add this to your claude_desktop_config.json:

Using uvx
"mcpServers": {
  "workout_mcp_server": {
    "command": "uvx",
    "args": ["workout_mcp_server"]
  }
}
Using pip installation
"mcpServers": {
  "workout_mcp_server": {
    "command": "python",
    "args": ["-m", "workout_mcp_server"]
  }
}

Configure with VSCode MCP Client

Add this to your settings.json:

Using uvx
"mcp.servers": {
  "workout_mcp_server": {
    "command": "uvx",
    "args": ["workout_mcp_server"]
  }
}
Using pip installation
"mcp.servers": {
  "workout_mcp_server": {
    "command": "python",
    "args": ["-m", "workout_mcp_server"]
  }
}

Available Tools

get_last_50_workouts

Retrieves all 50 workouts from the dataset, sorted by date (most recent first).

get_last_7_workouts

Retrieves the 7 most recent workouts, useful for analyzing current training week.

get_workout_by_id

Retrieves a specific workout by its unique ID.

Input:

  • workout_id (string): The unique identifier of the workout

compute_fitness

Calculates current fitness score (Chronic Training Load) based on a 42-day exponentially weighted moving average of Training Stress Score (TSS).

compute_fatigue

Calculates current fatigue score (Acute Training Load) based on a 7-day exponentially weighted moving average of TSS.

compute_form

Calculates current form score (Training Stress Balance) as the difference between fitness and fatigue. Positive values indicate good form, negative values suggest accumulated fatigue.

Data Structure

Each workout contains:

  • id: Unique workout identifier
  • date: Workout date (ISO format)
  • duration_minutes: Workout duration in minutes
  • distance_km: Distance covered in kilometers
  • avg_power_watts: Average power output in watts
  • tss: Training Stress Score
  • workout_type: Type of workout (e.g., "endurance", "interval", "recovery")

Development

Building from Source

  1. Clone the repository
  2. Install dependencies: pip install -e .
  3. Run the server: python -m workout_mcp_server

Testing

Run tests with: pytest

License

MIT License - see LICENSE file for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Amap Maps高德地图官方 MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
DeepChatYour AI Partner on Desktop
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server