# Procyclingstats Mcp Server

> An MCP (Model Context Protocol) server that provides professional cycling data from ProCyclingStats.

- **Type:** MCP server
- **Install:** `agentstack add mcp-lewis-mcgillion-procyclingstats-mcp-server`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [lewis-mcgillion](https://agentstack.voostack.com/s/lewis-mcgillion)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** Unlicense
- **Upstream author:** [lewis-mcgillion](https://github.com/lewis-mcgillion)
- **Source:** https://github.com/lewis-mcgillion/procyclingstats-mcp-server

## Install

```sh
agentstack add mcp-lewis-mcgillion-procyclingstats-mcp-server
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# ProCyclingStats MCP Server

An MCP (Model Context Protocol) server that provides professional cycling data from [ProCyclingStats](https://www.procyclingstats.com).

## Tools

| Tool | Description |
|------|-------------|
| `discover_races` | Find races from the PCS calendar for a given year and tier |
| `get_race_overview` | Get race metadata — name, dates, category, stages list |
| `get_stage_results` | Get full stage/one-day race results with metadata |
| `get_rider_profile` | Get rider bio, physical stats, specialty scores, palmares |
| `get_race_startlist` | Get the startlist for a race grouped by team |
| `search_pcs` | Free-text search for riders, races, and teams |

## Installation

```bash
pip install git+https://github.com/lewis-mcgillion/procyclingstats-mcp-server.git
```

Or clone and install locally:

```bash
git clone https://github.com/lewis-mcgillion/procyclingstats-mcp-server.git
cd procyclingstats-mcp-server
pip install -e .
```

## Usage

### Run the server directly

```bash
procyclingstats-mcp
```

### Configure in your MCP client

Add to your MCP client config (e.g. Claude Desktop, VS Code GitHub Copilot).

**Recommended — using `uvx`** (no manual install needed):

```json
{
  "mcpServers": {
    "procyclingstats": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/lewis-mcgillion/procyclingstats-mcp-server.git", "procyclingstats-mcp"]
    }
  }
}
```

**Using a local clone with `uv`:**

```json
{
  "mcpServers": {
    "procyclingstats": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/procyclingstats-mcp-server", "procyclingstats-mcp"]
    }
  }
}
```

**Using a global install:**

```json
{
  "mcpServers": {
    "procyclingstats": {
      "command": "procyclingstats-mcp",
      "args": []
    }
  }
}
```

## Example Queries

- "What WorldTour races are happening in 2025?"
- "Show me the results of Tour de France 2025 Stage 1"
- "What's Tadej Pogačar's rider profile?"
- "Who's on the startlist for the Giro d'Italia 2025?"
- "Search for Remco Evenepoel"

## URL Format

All PCS URLs use the slug format:

- Races: `race/tour-de-france/2025`
- Stages: `race/tour-de-france/2025/stage-1`
- One-day results: `race/milano-sanremo/2025/result`
- Riders: `rider/tadej-pogacar`

## Rate Limiting

The server enforces a 0.5s delay between requests to PCS and retries automatically on server errors (500/502/503/429).

## Credits

Built on top of the [procyclingstats](https://pypi.org/project/procyclingstats/) Python library.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [lewis-mcgillion](https://github.com/lewis-mcgillion)
- **Source:** [lewis-mcgillion/procyclingstats-mcp-server](https://github.com/lewis-mcgillion/procyclingstats-mcp-server)
- **License:** Unlicense

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-lewis-mcgillion-procyclingstats-mcp-server
- Seller: https://agentstack.voostack.com/s/lewis-mcgillion
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
