Strava MCP server

Strava MCP server

A local, read-only Model Context Protocol server for an athlete's Strava profile and activities, enabling retrieval of profile data, activity lists (with paging and date filters), and detailed activity information via standard input/output for MCP hosts.

Category
Visit Server

README

Strava MCP server

A local, read-only Model Context Protocol server for an athlete's Strava profile and activities. It uses standard input/output, so it works with MCP hosts that can launch a local command.

What it can do

  • get_my_profile — retrieve the authenticated athlete's profile
  • list_my_activities — retrieve recent activities, with paging and date filters
  • get_activity — retrieve a detailed activity by its Strava ID

Set up

  1. In Strava API Settings, create an application. Copy the client ID and client secret.

  2. In the app settings, set Authorization Callback Domain to localhost.

  3. Copy .env.example to .env and fill in STRAVA_CLIENT_ID and STRAVA_CLIENT_SECRET.

  4. Run npm run authorize. Open the printed sign-in link and authorize read,activity:read. The helper verifies activity access and saves the issued tokens to .env automatically.

  5. Install and check the project:

    npm install
    npm run build
    
  6. Configure your MCP host to run:

    {
      "command": "npx",
      "args": ["tsx", "C:/absolute/path/to/strava-mcp/src/index.ts"]
    }
    

The server reads credentials from the project's .env file. Do not duplicate tokens in the MCP host configuration, because copied values become stale when Strava rotates a refresh token.

Use the server's inspect script to test it interactively before connecting it to a host.

Security

  • Never place .env or a refresh token in source control.
  • The server only registers read-only tools. Add activity-creating or activity-editing tools only after deciding how you want human confirmation to work.
  • OAuth access may be narrower than requested if the athlete declined a scope; tool calls then receive a Strava error.

Token refresh

Strava issues a refresh token plus a short-lived access token. The authorization helper saves the initial token set to .env, and the server writes newly rotated tokens back to .env before continuing. This ensures that restarts use the most recent refresh token.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured