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.
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 profilelist_my_activities— retrieve recent activities, with paging and date filtersget_activity— retrieve a detailed activity by its Strava ID
Set up
-
In Strava API Settings, create an application. Copy the client ID and client secret.
-
In the app settings, set Authorization Callback Domain to
localhost. -
Copy
.env.exampleto.envand fill inSTRAVA_CLIENT_IDandSTRAVA_CLIENT_SECRET. -
Run
npm run authorize. Open the printed sign-in link and authorizeread,activity:read. The helper verifies activity access and saves the issued tokens to.envautomatically. -
Install and check the project:
npm install npm run build -
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
.envor 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.