Skip to main content
Glama
tomekkorbak

Strava MCP Server

by tomekkorbak

Strava MCP 서버

파이썬 패키지 라이센스: MIT 파이썬 3.10

Strava API에 대한 액세스를 제공하는 모델 컨텍스트 프로토콜 (MCP) 서버입니다. 언어 모델이 Strava API에서 선수 활동 데이터를 쿼리할 수 있도록 지원합니다.

사용 가능한 도구

서버는 다음 도구를 제공합니다.

활동 쿼리

  • get_activities(limit: int = 10) : 인증된 운동선수의 최근 활동을 가져옵니다.

  • get_activities_by_date_range(start_date: str, end_date: str, limit: int = 30) : 특정 날짜 범위 내의 활동을 가져옵니다.

  • get_activity_by_id(activity_id: int) : 특정 활동에 대한 자세한 정보를 가져옵니다.

  • get_recent_activities(days: int = 7, limit: int = 10) : 지난 X일 동안의 활동을 가져옵니다.

날짜는 ISO 형식( YYYY-MM-DD )으로 제공해야 합니다.

Related MCP server: Strava MCP Server

활동 데이터 형식

서버는 일관된 필드 이름과 단위를 사용하여 활동 데이터를 반환합니다.

필드

설명

단위

name

활동 이름

-

sport_type

스포츠의 종류

-

start_date

시작 날짜 및 시간

ISO 8601

distance_metres

거리

미터

elapsed_time_seconds

총 경과 시간

초

moving_time_seconds

이동 시간

초

average_speed_mps

평균 속도

초당 미터

max_speed_mps

최대 속도

초당 미터

total_elevation_gain_metres

총 고도 상승

미터

elev_high_metres

가장 높은 고도

미터

elev_low_metres

가장 낮은 고도

미터

calories

소모된 칼로리

킬로칼로리

start_latlng

시작 좌표

[위도, 경도]

end_latlng

종료 좌표

[위도, 경도]

입증

이 서버를 사용하려면 Strava API로 인증해야 합니다. 다음 단계를 따르세요.

  1. Strava API 애플리케이션을 만드세요:

    • Strava API 설정 으로 이동

    • 클라이언트 ID와 클라이언트 비밀번호를 얻기 위한 애플리케이션을 만드세요

    • 권한 부여 콜백 도메인을 localhost 로 설정하세요

  2. 새로 고침 토큰을 받으세요:

    • 포함된 get_strava_token.py 스크립트를 사용하세요: GXP1

    • 프롬프트에 따라 애플리케이션을 승인하세요.

    • 스크립트는 토큰을 .env 파일에 저장합니다.

  3. 환경 변수 설정: 서버에는 다음과 같은 환경 변수가 필요합니다.

    • STRAVA_CLIENT_ID : Strava API 클라이언트 ID

    • STRAVA_CLIENT_SECRET : Strava API 클라이언트 비밀번호

    • STRAVA_REFRESH_TOKEN : Strava API 새로 고침 토큰

용법

데스크톱용 클로드

macOS에서는 ~/Library/Application\ Support/Claude/claude_desktop_config.json , Windows에서는 %APPDATA%/Claude/claude_desktop_config.json 에 있는 claude_desktop_config.json 업데이트하여 다음을 포함하세요.

{
    "mcpServers": {
        "strava": {
            "command": "uvx",
            "args": [
                "strava-mcp-server"
            ],
            "env": {
                "STRAVA_CLIENT_ID": "YOUR_CLIENT_ID",
                "STRAVA_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
                "STRAVA_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN"
            }
        }
    }
}

클로드 웹

Claude Web의 경우 서버를 로컬로 실행하고 MCP 확장을 사용하여 연결할 수 있습니다.

예제 쿼리

연결되면 Claude에게 다음과 같은 질문을 할 수 있습니다.

  • "최근 내 활동은 무엇인가요?"

  • "지난주 활동을 보여주세요"

  • "지난 달에 제가 가장 길게 달린 것은 언제였나요?"

  • "내 최근 자전거 활동에 대한 세부 정보를 얻으세요"

오류 처리

서버는 일반적인 문제에 대해 사람이 읽을 수 있는 오류 메시지를 제공합니다.

  • 잘못된 날짜 형식

  • API 인증 오류

  • 네트워크 연결 문제

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

Available Tools

4 tools
get_activitiesB
Get the authenticated athlete's recent activities.

Args:
    limit: Maximum number of activities to return (default: 10)

Returns:
    Dictionary containing activities data
ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions authentication ('authenticated athlete') but doesn't specify required permissions, rate limits, pagination behavior, or what happens if no activities exist. For a read operation with zero annotation coverage, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and concise, using three clear sections: a purpose statement, parameter explanation, and return value note. Every sentence adds value without redundancy, and it's appropriately front-loaded with the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (read operation with one parameter) and lack of annotations/output schema, the description is minimally adequate. It covers the basic purpose and parameter but misses behavioral details like error handling or response format. The return statement is vague ('Dictionary containing activities data'), leaving gaps for the agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful context for the single parameter 'limit' by explaining it's the 'Maximum number of activities to return (default: 10)'. Since schema description coverage is 0% and there's only one parameter, this adequately compensates. However, it doesn't detail constraints like minimum/maximum values or how ordering works.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get the authenticated athlete's recent activities.' It specifies the verb ('Get'), resource ('activities'), and scope ('authenticated athlete's recent'). However, it doesn't explicitly distinguish this tool from its siblings like 'get_recent_activities' or 'get_activities_by_date_range', which appear to serve similar functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'get_recent_activities' and 'get_activities_by_date_range' available, there's no indication of differences in scope, filtering, or use cases. This leaves the agent to guess based on tool names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_activities_by_date_rangeB
Get activities within a specific date range.

Args:
    start_date: Start date in ISO format (YYYY-MM-DD)
    end_date: End date in ISO format (YYYY-MM-DD)
    limit: Maximum number of activities to return (default: 30)

Returns:
    Dictionary containing activities data
ParametersJSON Schema
NameRequiredDescriptionDefault
start_dateYes
end_dateYes
limitNo

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool retrieves activities but doesn't mention critical aspects like whether it's read-only, requires authentication, has rate limits, or pagination behavior. For a tool with 3 parameters and no annotations, this leaves significant gaps in understanding its operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections for Args and Returns, using bullet points for readability. It's front-loaded with the core purpose and efficiently explains parameters without unnecessary details. However, the 'Returns' section is vague ('Dictionary containing activities data'), slightly reducing efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (3 parameters, no output schema, no annotations), the description is partially complete. It excels in parameter semantics but lacks behavioral context and usage guidelines. Without an output schema, the vague return statement ('Dictionary containing activities data') is a minor gap, but overall, it meets a baseline for a read operation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds substantial value beyond the input schema, which has 0% schema description coverage. It explicitly defines each parameter's purpose and format (e.g., 'start_date: Start date in ISO format (YYYY-MM-DD)'), including the default for 'limit.' This fully compensates for the lack of schema descriptions, making parameters clear and actionable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as 'Get activities within a specific date range,' which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'get_activities' or 'get_recent_activities,' which likely have overlapping functionality.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'get_activities' or 'get_recent_activities.' It mentions date range filtering but doesn't specify scenarios where this is preferred over other tools, leaving the agent without clear usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_activity_by_idC
Get detailed information about a specific activity.

Args:
    activity_id: ID of the activity to retrieve

Returns:
    Dictionary containing activity details
ParametersJSON Schema
NameRequiredDescriptionDefault
activity_idYes

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves information, implying it is read-only, but does not specify authentication needs, rate limits, error handling, or what 'detailed information' entails. The description lacks behavioral context beyond the basic operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded with the purpose in the first sentence. The 'Args' and 'Returns' sections add structure, but the return description ('Dictionary containing activity details') is vague and could be more informative. Overall, it is concise with little waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and low schema coverage, the description is incomplete. It does not explain what 'detailed information' includes, potential errors, or how this tool fits with siblings. For a retrieval tool with undocumented behavior and output, more context is needed to guide effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds minimal semantics: it names the parameter ('activity_id') and states it is 'ID of the activity to retrieve,' which clarifies the parameter's role. However, with 0% schema description coverage and only one parameter, the baseline is 4, but the description does not fully compensate by explaining format constraints or examples, so it scores slightly lower.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get detailed information about a specific activity.' It specifies the verb ('Get') and resource ('activity'), but does not differentiate from sibling tools like 'get_activities' or 'get_activities_by_date_range' beyond implying retrieval of a single activity by ID.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It does not mention sibling tools or contexts where this tool is preferred, such as for retrieving a single known activity versus listing multiple activities. Usage is implied by the parameter name but not explicitly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_recent_activitiesB
Get activities from the past X days.

Args:
    days: Number of days to look back (default: 7)
    limit: Maximum number of activities to return (default: 10)

Returns:
    Dictionary containing activities data
ParametersJSON Schema
NameRequiredDescriptionDefault
daysNo
limitNo

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool retrieves activities but doesn't mention critical aspects like permissions required, rate limits, pagination behavior, or error conditions. The return format is vaguely described as a 'Dictionary containing activities data' without detailing structure or content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with a clear purpose statement followed by well-organized sections for Args and Returns. Each sentence adds value without redundancy, and the formatting enhances readability. It's appropriately sized for a simple tool with two parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only tool with two simple parameters and no output schema, the description covers the basic purpose and parameters adequately. However, it lacks details on behavioral aspects like error handling or data format, and it doesn't provide usage guidance relative to siblings. Given the low complexity, it's minimally viable but has clear gaps in transparency and guidelines.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful context for both parameters beyond the schema's basic types and defaults. It explains that 'days' specifies 'Number of days to look back' and 'limit' sets the 'Maximum number of activities to return', which clarifies their functional roles. With 0% schema description coverage, this compensates well for the schema's lack of semantic detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('activities'), specifying a time-based scope ('from the past X days'). It distinguishes from siblings like 'get_activity_by_id' by focusing on recent activities, though it doesn't explicitly differentiate from 'get_activities' or 'get_activities_by_date_range'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'get_activities_by_date_range' or 'get_activities'. It mentions a time-based scope but doesn't clarify if this is the preferred method for recent activities or when other tools might be more appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updates
    • First observedget_activities
    • First observedget_activities_by_date_range
    • First observedget_activity_by_id
    • First observedget_recent_activities

TDQS

B3.1/5.0

Scored across 4 tools

Disambiguation2/5

Multiple tools have overlapping purposes that could cause confusion. get_activities and get_recent_activities both retrieve recent activities with similar parameters, while get_activities_by_date_range provides date-based filtering that could also be used for recent activities. Only get_activity_by_id has a clearly distinct purpose.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case formatting. The naming is perfectly consistent across all four tools, making them predictable and easy to understand at a glance.

Tool Count3/5

With only 4 tools, this feels thin for a Strava server that presumably handles athlete activities. While the count is reasonable for a minimal implementation, it lacks coverage for other Strava domains like segments, clubs, or athlete profiles that would be expected.

Completeness2/5

The tool surface is severely incomplete for a Strava integration. While it provides multiple ways to read activities, there are no tools for creating, updating, or deleting activities, nor any coverage of other Strava resources like segments, clubs, gear, or athlete statistics. This creates significant gaps that will limit agent capabilities.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides language models with access to personal Whoop fitness data, allowing queries for cycles, recovery, strain, and workout information from the Whoop API.
    26
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables language models to interact with Strava data, including activities, athlete statistics, routes, achievements, and social features.
    6
    MIT
  • A
    license
    A
    quality
    F
    maintenance
    A Model Context Protocol (MCP) server for Intervals.icu integration. Access your training data, wellness metrics, and performance analysis through Claude and other LLMs.
    48
    36
    MIT