The FirstCycling MCP Server is a Model Context Protocol (MCP) server designed to provide comprehensive professional cycling data from FirstCycling. It enables users to retrieve detailed information about professional cyclists, race results, historical data, and more. This server is particularly useful for sports analysts, journalists, and cycling enthusiasts who need access to structured and reliable cycling data.
The server offers the following capabilities:
uv
package manager (recommended)pyproject.toml
, including:mcp
beautifulsoup4
lxml
pandas
slumber
bash
git clone https://github.com/r-huijts/firstcycling-mcp.git
bash
uv venv
source .venv/bin/activate # On macOS/Linux
.venv\Scripts\activate # On Windows
bash
uv pip install -e .
Tool | Description |
---|---|
get_rider_info |
Retrieve biographical information about a rider. |
get_rider_best_results |
Get a rider's best career results. |
get_rider_grand_tour_results |
Retrieve results in Grand Tours. |
get_rider_monument_results |
Get results in Monument classics. |
get_rider_team_and_ranking |
Access team history and UCI ranking evolution. |
get_rider_race_history |
Retrieve complete race participation history. |
get_rider_victories |
List career victories with optional filters. |
Tool | Description |
---|---|
get_race_results |
Retrieve results for a specific race edition. |
get_race_overview |
Get general information about a race. |
get_race_stage_profiles |
Access stage profiles for multi-stage races. |
get_race_startlist |
Retrieve startlists for specific race editions. |
get_race_victory_table |
Show all-time victory tables for races. |
Tool | Description |
---|---|
search_rider |
Search for riders by name. |
search_race |
Search for races by name. |
Run the server with MCP Inspector:
uv run mcp dev firstcycling.py
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
json
{
"mcpServers": {
"firstcycling": {
"command": "uv",
"args": ["--directory", "/path/to/server/directory", "run", "firstcycling.py"]
}
}
}
This project is licensed under the MIT License. See the LICENSE file for details.
The FirstCycling MCP Server is a powerful tool for accessing and analyzing professional cycling data. It integrates seamlessly with tools like Claude for Desktop, making it a valuable resource for cycling enthusiasts and professionals alike.