FirstCycling MCP Server
FirstCycling MCP 服务器
这是一个模型上下文协议 (MCP) 服务器,提供来自 FirstCycling 的专业自行车数据。它允许您检索有关专业自行车运动员、比赛结果、比赛详情以及历史骑行数据的全面信息。
特征
该 MCP 服务器提供丰富的专业自行车数据访问,并提供以下工具:
查找有关职业自行车手的信息
检索比赛结果和详细信息
探索历史比赛数据
分析骑手的表现和职业发展
获取有关自行车队和比赛的信息
Related MCP server: Pitstop
真实用例
使用此 MCP 服务器,您可以使用 Claude 来执行以下操作:
车手分析
表现追踪:“塔德伊·波加查 (Tadej Pogačar) 这些年来在环法自行车赛中的表现如何?”
职业发展:“向我展示沃特·范阿尔特 (Wout van Aert) 的球队历史和职业发展。”
专业分析:“Mathieu van der Poel 在纪念碑经典赛中取得了什么成绩?”
胜利分析:“列出乔纳斯·文格加德 (Jonas Vingegaard) 的所有世界巡回赛胜利。”
历史比较:“比较 Primož Roglič 和 Jonas Vingegaard 的大环赛成绩。”
种族研究
最近结果:“向我展示 2023 年巴黎-鲁贝赛的成绩。”
历史背景:“环弗兰德斯赛最年轻和最年长的冠军是谁?”
队伍分析:“获取 2023 年环法自行车赛的发车名单以及详细的队伍信息。”
比赛统计:“显示列日-巴斯通-列日赛的胜利表。谁赢得比赛的次数最多?”
赛段信息:“您能向我展示一下 2023 年环意自行车赛的赛段概况吗?”
体育新闻
“为自行车杂志文章创建 Remco Evenepoel 的详细资料。”
“根据塔德·波加查 (Tadej Pogačar) 和乔纳斯·文格加德 (Jonas Vingegaard) 等顶级竞争者的近期成绩,为即将到来的环法自行车赛撰写一篇预测。”
“根据汤姆·皮德科克的比赛成绩和团队历史分析他的职业生涯的发展。”
自行车教育
“使用有关纪念碑经典赛的历史和获胜者的数据来解释是什么让纪念碑经典赛如此特别。”
“创建一份关于大巡回赛及其在职业自行车运动中的意义的教育摘要。”
“使用数据中的例子来描述职业自行车手的典型职业发展。”
要求
Python 3.10 或更高版本
uv包管理器(推荐)pyproject.toml中列出的依赖项,包括:甲基氯丙烯
beautifulsoup4
lxml
熊猫
睡眠
以及其他用于网页抓取和数据处理的软件包
设置
克隆此存储库
创建并激活虚拟环境:
uv venv source .venv/bin/activate # On macOS/Linux # or .venv\Scripts\activate # On Windows安装依赖项:
uv pip install -e .
FirstCycling API
此服务器使用已直接集成到项目中的FirstCycling API 。该 API 提供了通过网页抓取从 FirstCycling 网站获取数据的方法。
MCP 工具
服务器通过模型上下文协议公开以下工具:
乘客信息
工具 | 描述 |
| 获取骑手的基本个人信息,包括国籍、出生日期、体重、身高和当前队伍 |
| 检索骑手职业生涯的最佳成绩,按重要性排序 |
| 获取环法自行车赛、环意自行车赛、环西自行车赛等大满贯赛事的骑手成绩 |
| 检索自行车经典赛中骑手的成绩 |
| 了解骑手的车队历史和 UCI 排名随时间的变化 |
| 检索骑手的完整比赛参与历史记录,可选择按年份筛选 |
| 获取骑手在一日赛中的成绩,可选择按年份筛选 |
| 获取骑手在多日分段赛中的成绩,可选择按年份筛选 |
| 检索骑手职业生涯的完整车队历史 |
| 获取骑手职业生涯胜利列表,并可选择世界巡回赛或 UCI 比赛的筛选条件 |
赛事信息
工具 | 描述 |
| 根据比赛 ID 和年份检索特定比赛版本的结果 |
| 获取有关比赛的一般信息,包括历史、记录和过去的获胜者 |
| 检索多阶段比赛的阶段概况和详细信息 |
| 获取特定比赛版本的起跑名单,其中包含详细或基本的车队信息 |
| 检索某场比赛的历史胜利表,显示获胜次数最多的骑手 |
| 使用可选的分类过滤器获取比赛的逐年结果 |
| 检索有关比赛最年轻和最年长获胜者的信息 |
| 获取有关多阶段比赛中阶段胜利的信息 |
搜索工具
工具 | 描述 |
| 通过姓名搜索乘客,返回其 ID 和基本信息 |
| 按名称搜索种族,返回其 ID 和基本信息 |
用法
开发模式
您可以通过运行以下命令使用 MCP Inspector 测试服务器:
uv run mcp dev firstcycling.py这将启动服务器并在您的浏览器中打开 MCP Inspector,以便您测试可用的工具。
与 Claude for Desktop 集成
要将此服务器与 Claude for Desktop 集成:
编辑 Claude for Desktop 配置文件,位于:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
将服务器添加到您的配置中:
{ "mcpServers": { "firstcycling": { "command": "uv", "args": ["--directory", "/path/to/server/directory", "run", "firstcycling.py"] } } }重启 Claude 桌面版
执照
麻省理工学院
Available Tools
18 toolsget_race_detailsA
Get comprehensive details about a cycling race. This tool provides detailed information about a specific race, including its history, key statistics, route details, and other relevant information. The data can be filtered by specific classification.
Note: If you don't know the race's ID, use the search_race tool first to find it by name.
Example usage:
- Get details for Tour de France (ID: 17)
- Get details for Paris-Roubaix (ID: 30)
Returns a formatted string with:
- Race name, country, and category
- Historical information and key statistics
- Course details and characteristics
- Optional classification detailsInputs: race_id (required), classification_num.
get_race_edition_resultsA
Get detailed results for a specific edition of a cycling race. This tool provides comprehensive results for a particular edition of a race, including rankings, time gaps, and other relevant statistics. Results can be filtered by classification or stage.
Note: If you don't know the race's ID, use the search_race tool first to find it by name.
Example usage:
- Get 2023 Tour de France general classification results (Race ID: 17, Year: 2023)
- Get 2022 Paris-Roubaix results (Race ID: 30, Year: 2022)
- Get results for stage 5 of 2023 Tour de France (Race ID: 17, Year: 2023, Stage: 5)
Returns a formatted string with:
- Race name, year, and category
- Complete result list with rankings and time gaps
- Rider names and teams
- Classification or stage specific informationInputs: race_id (required), year (required), classification_num, stage_num.
get_race_victory_tableA
Get the all-time victory table for a cycling race. This tool provides a historical summary of the most successful riders in a specific race, showing the number of victories for each rider throughout the race's history.
Note: If you don't know the race's ID, use the search_race tool first to find it by name.
Example usage:
- Get victory table for Tour de France (ID: 17)
- Get victory table for Paris-Roubaix (ID: 30)
Returns a formatted string with:
- Race name
- List of riders with the most victories
- Number of victories for each rider
- Years of victories where availableInputs: race_id (required).
get_rider_best_resultsA
Retrieve the best career results of a professional cyclist, including their top finishes in various races. This tool provides a comprehensive overview of a rider's most significant achievements throughout their career, including their highest positions in major races, stage wins, and overall classifications. Results are sorted by importance and include detailed information about each race.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get top 10 best results for Tadej Pogačar (ID: 16973)
- Get top 5 best results for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- Rider's name and career highlights
- Top results sorted by importance
- Race details including category and country
- Date and position for each resultInputs: rider_id (required), limit.
get_rider_grand_tour_resultsA
Get comprehensive results for a rider in Grand Tours (Tour de France, Giro d'Italia, and Vuelta a España). This tool provides detailed information about a rider's performance in cycling's most prestigious three-week races, including their overall classification positions, stage wins, and special classification results. The data is organized chronologically and includes all relevant race details.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get Grand Tour results for Tadej Pogačar (ID: 16973)
- Get Grand Tour results for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- Results for each Grand Tour (Tour de France, Giro, Vuelta)
- Overall classification positions
- Stage wins and special classification results
- Time gaps and race detailsInputs: rider_id (required).
get_rider_infoA
Get comprehensive information about a professional cyclist including their current team, nationality, date of birth, and recent race results. This tool provides a detailed overview of a rider's current status and recent performance in professional cycling races. The information includes their current team affiliation, nationality, age, and their most recent race results with positions and times.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get basic info for Tadej Pogačar (ID: 16973)
- Get basic info for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- Full name and current team
- Nationality and date of birth
- UCI ID and social media handles
- Last 5 race results with positions and times
- Total number of UCI victoriesInputs: rider_id (required).
get_rider_monument_resultsA
Retrieve detailed results for a rider in cycling's five Monument races (Milan-San Remo, Tour of Flanders, Paris-Roubaix, Liège-Bastogne-Liège, and Il Lombardia). These are the most prestigious one-day races in professional cycling. The tool provides comprehensive information about a rider's performance in these historic races, including their positions, times, and any special achievements.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get Monument results for Tadej Pogačar (ID: 16973)
- Get Monument results for Mathieu van der Poel (ID: 16975)
Returns a formatted string with:
- Results for each Monument race
- Position and time for each participation
- Race details and special achievements
- Chronological organization by yearInputs: rider_id (required).
get_rider_one_day_racesA
Get a rider's results in one-day races, optionally filtered by year. This tool retrieves detailed information about a rider's performance in one-day races (classics and one-day events). It provides comprehensive data about positions, times, and race categories. Results can be filtered by a specific year.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get one-day race results for Mathieu van der Poel (ID: 16672)
- Get 2023 one-day race results for Wout van Aert (ID: 16948)
Returns a formatted string with:
- Results in one-day races organized by year
- Position and time for each race
- Race category and details
- Chronological organizationInputs: rider_id (required), year.
get_rider_race_historyA
Get the complete race history of a professional cyclist, optionally filtered by year. This tool retrieves a comprehensive list of all races the rider has participated in, including their positions, times, and race categories. It provides a detailed overview of their racing career.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get complete race history for Tadej Pogačar (ID: 16973)
- Get 2023 race history for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- All races organized by year
- Position and time for each race
- Race category and details
- Chronological organizationInputs: rider_id (required), year.
get_rider_stage_racesA
Get a rider's results in stage races, optionally filtered by year. This tool retrieves detailed information about a rider's performance in stage races (multi-day races like Tour de France, Giro d'Italia, etc.). It provides comprehensive data about positions, times, and race categories. Results can be filtered by a specific year.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get stage race results for Tadej Pogačar (ID: 16973)
- Get 2023 stage race results for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- Results in stage races organized by year
- Position and time for each race
- Race category and details
- Chronological organizationInputs: rider_id (required), year.
get_rider_team_and_rankingA
Get information about a professional cyclist's team affiliations and UCI rankings throughout their career. This tool retrieves the rider's team history and their UCI ranking points over time. It provides a comprehensive overview of their professional career progression through different teams and their performance in the UCI rankings.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get team and ranking history for Tadej Pogačar (ID: 16973)
- Get team and ranking history for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- Complete team history with years
- UCI ranking positions and points
- Career progression timeline
- Current team and ranking statusInputs: rider_id (required).
get_rider_teamsA
Get a detailed history of a professional cyclist's team affiliations throughout their career. This tool provides a chronological list of all teams the rider has been part of, including years and team details.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get team history for Peter Sagan (ID: 12345)
- Get career team changes for Chris Froome (ID: 67890)
Returns a formatted string with:
- Complete team history
- Years with each team
- Team names and details
- Chronological organizationInputs: rider_id (required).
get_rider_victoriesA
Get a comprehensive list of a rider's UCI victories. This tool retrieves detailed information about all UCI-registered race victories achieved by the cyclist throughout their career. Victories can be filtered to show only WorldTour wins if desired.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get all UCI victories for Tadej Pogačar (ID: 16973)
- Get WorldTour victories for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- Complete list of victories
- Race details including category
- Date and year of each victory
- Option to filter by WorldTour races onlyInputs: rider_id (required), world_tour_only.
get_rider_year_resultsA
Retrieve detailed results for a professional cyclist for a specific year. This tool provides comprehensive information about a rider's performance in all races during a given calendar year. It includes positions achieved, race categories, dates, and additional details.
Note: If you don't know the rider's ID, use the search_rider tool first to find it by name.
Example usage:
- Get 2023 results for Tadej Pogačar (ID: 16973)
- Get 2022 results for Jonas Vingegaard (ID: 16974)
Returns a formatted string with:
- Complete results for the specified year
- Position and time for each race
- Race category and details
- Chronological organization by dateInputs: rider_id (required), year (required).
get_start_listA
Get the start list for a specific edition of a cycling race. The start list includes rider numbers, names, and teams.
Note: If you don't know the race's ID, use the search_race tool first to find it by name.
If no year is specified, the current year will be used.
Example usage:
- Get start list for current year's Tour de France (Race ID: 17)
- Get start list for 2023 Paris-Roubaix (Race ID: 30, Year: 2023)
Returns a formatted string with:
- Race name and year
- List of participating teams
- Riders for each team with their race numbersInputs: race_id (required), year.
get_uci_rankingsB
Get UCI rankings for riders, teams, or nations. This tool provides access to the UCI ranking data for professional cyclists, teams, or nations. Results can be filtered by ranking type, year, and category.
Example usage:
- Get World UCI rider rankings for 2023
- Get Europe Tour UCI team rankings for 2022
- Get UCI nation rankings for 2023 in the World category
Returns a formatted string with:
- Ranking list with positions and points
- Filtered by specified categories
- Organized in a readable format
- Option to filter by countryInputs: category, country_code, page_num, rank_type, +1 more.
search_raceA
Search for cycling races by name. This tool helps find races by their name, returning a list of matching races with their IDs and countries. This is useful when you know a race's name but need its ID for other operations.
Example usage:
- Search for "tour" to find Tour de France and other tours
- Search for "giro" to find Giro d'Italia
Returns a formatted string with:
- List of matching races
- Each race's ID, name, and country
- Number of matches foundInputs: query (required).
search_riderA
Search for professional cyclists by name. This tool helps find riders by their name, returning a list of matching riders with their IDs and basic information. This is useful when you need a rider's ID for other operations but only know their name.
Example usage:
- Search for "Tadej Pogacar" to find Tadej Pogačar's ID
- Search for "Van Aert" to find Wout van Aert's ID
Returns a formatted string with:
- List of matching riders
- Each rider's ID, name, nationality, and current team
- Number of matches foundInputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
The tools have clear distinctions between race-focused and rider-focused operations, but there is significant overlap within rider tools. For example, get_rider_best_results, get_rider_grand_tour_results, get_rider_monument_results, get_rider_one_day_races, get_rider_race_history, get_rider_stage_races, and get_rider_year_results all retrieve subsets of race results, which could confuse an agent about which to use for specific queries. The descriptions help differentiate, but the boundaries are fuzzy.
All tool names follow a consistent snake_case pattern with a verb_noun structure (e.g., get_race_details, search_rider). The naming is predictable and readable throughout, with no deviations in style or convention, making it easy for an agent to parse and understand the tool purposes.
With 18 tools, the count is on the higher side for a cycling data server, bordering on heavy. While the domain of professional cycling is broad, the tool set includes many overlapping rider result tools that could potentially be consolidated, making it feel slightly bloated but still within a reasonable scope.
The tool surface covers the cycling domain well with race details, results, rider information, and search functionalities. However, there are minor gaps, such as no tools for team details beyond rider affiliations, race calendars, or live race data, which agents might need for comprehensive coverage. The core operations are well-represented, allowing agents to work around these omissions.
Maintenance
Related MCP Connectors
AI cycling coach: training plans, workouts, nutrition, strength training, Strava, Garmin and Wahoo.
Your own cycling data for your AI assistant: rides, power, climbs and routes. Read-only.
Query professional padel tournament data, player stats, and live match results
AI cycling coach — training plans and beginner guidance via the Etapa API.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides comprehensive Formula 1 data access including race schedules, session results, lap times, telemetry data, driver/constructor standings, and circuit information. Enables users to retrieve and analyze F1 racing data through natural language queries using the FastF1 Python package.5MIT
- AlicenseAqualityBmaintenanceProvides access to Formula 1 data including driver and constructor championship standings with support for current and historical seasons. Enables users to query F1 championship information through natural language with plans for expanded race data and telemetry.221MIT
- AlicenseAqualityDmaintenanceProvides professional cycling data from ProCyclingStats, enabling race discovery, stage results, rider profiles, startlists, and free-text search through MCP tools.63-
- FlicenseNot gradedqualityDmaintenanceMCP server exposing ProCyclingStats teams, riders, and races data by scraping site pages, enabling custom rankings and historical result analysis.-