
一个模型上下文协议(MCP)服务器,连接到 Strava API,提供通过大型语言模型访问 Strava 数据的工具
概览
将Claude连接到你的Strava账户,用简单的英语提问:“我这个月跑了多远?”,“分析我的最后一次骑行”,或者“展示我最快的路段”。 连接好后,就像和朋友聊天一样和Claude交流,而朋友能访问你所有的Strava数据: “我这个月跑了多少公里?”“对比一下我从一月到十二月的跑步数据” “我骑过的最长骑行是什么?” “分析我上一次骑行训练——给我看看力量、心率和步频” “昨天跑步时我的心率区间表现如何?”“我间歇训练每圈的平均配速是多少?” “中央公园附近最受欢迎的骑行路段有哪些?”“给我看看我的星号段” “把我的周日早晨路线导出成GPX文件” “分析我这周的训练负荷” “我现在的体能和上个月相比如何?
概述(AI 翻译)
用AI与你的Strava数据对话。
将Claude连接到你的Strava账户,用简单的英语提问:“我这个月跑了多远?”,“分析我的最后一次骑行”,或者“展示我最快的路段”。
你能用这个做什么?
连接好后,就像和朋友聊天一样和Claude交流,而朋友能访问你所有的Strava数据:
🏃 追踪你的进展
“我这个月跑了多少公里?”
“比较一下我从一月到十二月的跑步数据”
“我骑过的最长骑行是什么?”
📊 分析你的锻炼
“解析我上一次骑行训练——展示力量、心率和步频”
“我昨天跑步时心率区间表现如何?”
“我间歇训练每圈的平均配速是多少?”
🗺️ 探索路线与路段
“中央公园附近最受欢迎的骑行路段有哪些?”
“给我看看我的星级片段”
“将我的周日早晨路线导出为GPX文件”
🏆 获取教练见解
“分析我本周的训练负荷”
“我现在的体能和上个月相比如何?”
“给我一个今年骑行表现的总结”
快速入门(3步)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Strava MCP Server
Talk to your Strava data using AI.
Connect Claude to your Strava account and ask questions in plain English: “How far did I run this month?”, “Analyze my last ride”, or “Show me my fastest segments.”
What Can You Do With This?
Once connected, just talk to Claude like you’re talking to a friend who has access to all your Strava data:
🏃 Track Your Progress
“How many kilometers did I run this month?”
“Compare my running stats from January to December”
“What’s my longest ride ever?”
📊 Analyze Your Workouts
“Break down my last cycling workout - show me power, heart rate, and cadence”
“How did my heart rate zones look during yesterday’s run?”
“What was my average pace for each lap in my interval training?”
🗺️ Explore Routes & Segments
“What are the most popular cycling segments near Central Park?”
“Show me my starred segments”
“Export my Sunday morning route as a GPX file”
🏆 Get Coaching Insights
“Analyze my training load this week”
“How does my current fitness compare to last month?”
“Give me a summary of my cycling performance this year”
Quick Start (3 Steps)
Step 1: Add to Claude Desktop
Open your Claude Desktop configuration file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this to the file:
{
"mcpServers": {
"strava": {
"command": "npx",
"args": ["-y", "@r-huijts/strava-mcp-server"]
}
}
}
Step 1 (alternative): Add to Claude Code
You can add this MCP server to claude code with the following command:
claude mcp add --transport stdio strava -- npx @r-huijts/strava-mcp-server
You can confirm successful instalation as follows:
% claude mcp list
Checking MCP server health...
strava: npx @r-huijts/strava-mcp-server - ✓ Connected
Step 2: Restart Claude Desktop
Close and reopen Claude Desktop to load the new configuration.
Step 3: Connect Your Strava
Just say to Claude:
“Connect my Strava account”
A browser window will open. Enter your Strava API credentials, authorize the app, and you’re done!
That’s it! Start asking about your activities.
Connecting Your Strava Account
First Time Setup
When you say “Connect my Strava account”, here’s what happens:
- A browser window opens showing a setup page
- Enter your Strava API credentials (Client ID and Client Secret)
- Click “Continue to Strava” - you’ll be redirected to Strava
- Authorize the app on Strava’s website
安装
npx -y @r-huijts/strava-mcp-server配置
{
"mcpServers": {
"strava": {
"command": "npx",
"args": ["-y", "@r-huijts/strava-mcp-server"]
}
}
}