MCP cover image
See in Github
2025-03-11

1

Github Watches

2

Github Forks

0

Github Stars

Strava MCP Server

This is a Model Context Protocol (MCP) server for the Strava API, allowing Claude to interact with your Strava data.

Features

The Strava MCP server provides the following tools:

  • get_athlete_activities: Get activities for the authenticated athlete
  • get_activity: Get details of a specific activity
  • create_activity: Create a manual activity
  • get_activity_kudoers: Get the athletes who kudoed an activity
  • get_activity_laps: Get the laps of an activity

Setup Instructions

1. Create a Strava API Application

  1. Go to Strava API Settings
  2. Create a new application:
    • Application Name: Claude Strava Integration (or any name you prefer)
    • Website: http://localhost
    • Authorization Callback Domain: localhost
  3. After creating the application, note your Client ID and Client Secret

2. Obtain a Refresh Token

  1. Install the required dependencies:

    cd /Users/{USERNAME}/Documents/Cline/MCP/strava-mcp-server
    npm install
    
  2. Run the get-strava-token.js script with your Client ID and Client Secret:

node get-strava-token.js YOUR_CLIENT_ID YOUR_CLIENT_SECRET
  1. The script will open a browser window asking you to authorize the application to access your Strava data.
  2. After authorization, the script will display your refresh token in the terminal.

3. Configure the MCP Settings

  1. Update the MCP settings file with your Strava API credentials:
    • Location: /Users/{USERNAME}/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    • Add your Client ID, Client Secret, and Refresh Token to the env section of the strava server configuration:
      "strava": {
        "command": "node",
        "args": [
          "/Users/{USERNAME}/Documents/Cline/MCP/strava-mcp-server/dist/index.js"
        ],
        "env": {
          "STRAVA_CLIENT_ID": "YOUR_CLIENT_ID",
          "STRAVA_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
          "STRAVA_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN"
        },
        "disabled": false,
        "autoApprove": []
      }
      

4. Build and Start the Server

The server will be automatically started by Claude when needed. If you want to test it manually:

cd /Users/{USERNAME}/Documents/Cline/MCP/strava-mcp-server
npm run build
npm start

Usage Examples

Once the Strava MCP server is configured, you can ask Claude to interact with your Strava data:

  • "Show me my recent Strava activities"
  • "Get details about my latest Strava run"
  • "Create a new manual activity on Strava"
  • "Who kudoed my latest Strava ride?"
  • "Show me the laps from my last track workout"

Troubleshooting

  • Authentication Errors: If you encounter authentication errors, your refresh token may have expired. Run the get-strava-token.js script again to obtain a new refresh token.
  • Server Not Starting: Make sure the path to the server in the MCP settings file is correct and that you've built the server with npm run build.
  • API Rate Limits: The Strava API has rate limits. If you encounter rate limit errors, wait a few minutes before trying again.

License

This project is licensed under the MIT License.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • n8n-io
  • Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

    Reviews

    3 (1)
    Avatar
    user_Gthol4uW
    2025-04-17

    As a dedicated user of the mcp application, I highly recommend the Strava-mcp-server by rakeshgangwar. This server has significantly enhanced my Strava experience by providing seamless integration and reliable performance. It's a must-have for anyone looking to maximize their fitness tracking. Check it out on GitHub!