What is chrisdoc hevy mcp
hevy-mcp: Model Context Protocol Server for Hevy Fitness API
A Model Context Protocol (MCP) server implementation that interfaces with the Hevy fitness tracking app and its API. This server enables AI assistants to access and manage workout data, routines, exercise templates, and more through the Hevy API (requires PRO subscription).
Features
- Workout Management: Fetch, create, and update workouts
- Routine Management: Access and manage workout routines
- Exercise Templates: Browse available exercise templates
- Folder Organization: Manage routine folders
Prerequisites
- Node.js (v20 or higher)
- npm or yarn
- A Hevy API key
Installation
Installing via Smithery
To install hevy-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @chrisdoc/hevy-mcp --client claude
Manual Installation
# Clone the repository
git clone https://github.com/chrisdoc/hevy-mcp.git
cd hevy-mcp
# Install dependencies
npm install
# Create .env file from sample
cp .env.sample .env
# Edit .env and add your Hevy API key
Integration with Cursor
To use this MCP server with Cursor, you need to update your ~/.cursor/mcp.json
file by adding the following configuration:
{
"hevy-mcp-server": {
"command": "npx",
"args": ["-y", "hevy-mcp"],
"env": {
"HEVY_API_KEY": "your-api-key-here"
}
}
}
Make sure to replace your-api-key-here
with your actual Hevy API key.
Configuration
Create a .env
file in the project root with the following content:
HEVY_API_KEY=your_hevy_api_key_here
Replace your_hevy_api_key_here
with your actual Hevy API key.
Usage
Development
npm run dev
This starts the MCP server in development mode with hot reloading.
Production
npm run build
npm start
Available MCP Tools
The server implements the following MCP tools:
Workout Tools
get-workouts
: Fetch and format workout dataget-workout
: Get a single workout by IDcreate-workout
: Create a new workoutupdate-workout
: Update an existing workoutget-workout-count
: Get the total count of workoutsget-workout-events
: Get workout update/delete events
Routine Tools
get-routines
: Fetch and format routine datacreate-routine
: Create a new routineupdate-routine
: Update an existing routineget-routine
: Get a single routine by ID
Exercise Template Tools
get-exercise-templates
: Fetch exercise templatesget-exercise-template
: Get a template by ID
Routine Folder Tools
get-routine-folders
: Fetch routine folderscreate-routine-folder
: Create a new folderget-routine-folder
: Get a folder by ID
Project Structure
hevy-mcp/
โโโ .env # Environment variables (API keys)
โโโ src/
โ โโโ index.ts # Main entry point
โ โโโ tools/ # Directory for MCP tool implementations
โ โ โโโ workouts.ts # Workout-related tools
โ โ โโโ routines.ts # Routine-related tools
โ โ โโโ templates.ts # Exercise template tools
โ โ โโโ folders.ts # Routine folder tools
โ โโโ generated/ # API client (generated code)
โ โ โโโ client/ # Kiota-generated client
โ โโโ utils/ # Helper utilities
โ โโโ formatters.ts # Data formatting helpers
โ โโโ validators.ts # Input validation helpers
โโโ scripts/ # Build and utility scripts
โโโ tests/ # Test suite
Development
Code Style
This project uses Biome for code formatting and linting:
npm run check
Generating API Client
The API client is generated from the OpenAPI specification using Kiota:
npm run export-specs
npm run build:client
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgements
- Model Context Protocol for the MCP SDK
- Hevy for their fitness tracking platform and API
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP ๆๅกๅจ๏ผ็จไบ็ฎก็ๆก้ขๅพ็ใๆฅ็่ฏฆๆ ใๅ็ผฉใ็งปๅจ็ญ๏ผๅฎๅ จ่ฎฉTraeๅฎ็ฐ๏ผ
zhixiaoqiang antd components mcp
An MCP service for Ant Design components query | ไธไธชๅๅฐ Ant Design ็ปไปถไปฃ็ ็ๆๅนป่ง็ MCP ๆๅก๏ผๅ ๅซ็ณป็ปๆ็คบ่ฏใ็ปไปถๆๆกฃใAPI ๆๆกฃใไปฃ็ ็คบไพๅๆดๆฐๆฅๅฟๆฅ่ฏข
yeonupark mcp soccer data
An MCP server that provides real-time football data based on the SoccerDataAPI.
Submit Your MCP Server
Share your MCP server with the community
Submit Now