racewindow API and MCP server

Registration windows for major European marathons and half marathons: when entry is announced, opens, closes or sells out. Every date was checked by a person against the organizer's own page and comes with the organizer's wording and a source link.

Read-only, free, no key or sign-in. Two ways in: the MCP server, or the public pages themselves, as JSON or Markdown. To connect racewindow to Claude or ChatGPT, see Use with AI.

MCP server

Endpoint https://racewindow.com/mcp Streamable HTTP, stateless, JSON responses, no auth. POST only: GET answers 405 (no event stream).

Server card: tools with their input schemas, resources, transport. In Claude Code:

claude mcp add --transport http racewindow https://racewindow.com/mcp

Tools

search_races · Search races

List races with their race date and registration status, as a Markdown table with each race's page URL (its last segment is the slug for get_race). With no arguments, every race racewindow tracks. structuredContent has the same list as JSON (ISO dates).

  • query (string): Part of a race name or city, e.g. 'berlin', 'valencia'.
  • country (string): ISO 3166-1 alpha-2 country code, e.g. 'DE', 'ES', 'GB'.
  • distance (marathon | half)
  • status (open | upcoming | announced | closed | sold_out | expected | unknown): Registration status of general entry, as on the race list: upcoming = opening date announced, expected = next edition not announced.
  • entry_type (lottery | fcfs | qualifier | charity | late): Races with a window of this kind (fcfs = first come, first served).
  • race_month (integer 1-12): Month of race day.
  • series (string): A race series as the race list labels it, e.g. 'SuperHalfs' (both its Originals and Europa series) or 'WMM' (World Marathon Majors).

get_race · Get a race

One race in full, as Markdown: race day, every registration window of the upcoming edition(s) with opens/closes and status, the organizer's own wording with sources and when each was verified, and past editions. structuredContent has the same race as JSON (ISO dates, local and UTC times).

  • slug (string, required): The race's slug from search_races, e.g. 'berlin-marathon' (a racewindow.com/race/... URL works too).

Resources

The pages as JSON or Markdown

Request the race list or a race page with Accept: application/json for JSON, or Accept: text/markdown for the same facts and wording as the HTML without markup. Browsers get HTML.

curl -H 'Accept: application/json' https://racewindow.com/race/berlin-marathon
curl -H 'Accept: text/markdown' https://racewindow.com/race/berlin-marathon

JSON dates are ISO 8601 and as honest as the page: date only when the organizer gave the day, month (YYYY-MM) whenever a date is known, local and utc only when they stated a time, and text is their own words. The schemas are in the OpenAPI description. Fields are only ever added, never renamed or removed.

OpenAPI description (OpenAPI 3.1) of these pages, the MCP endpoint and the discovery files.

Examples

racewindow tracks a curated set of major European races, not every race: a race missing from the list is untracked, not closed. The list is never paginated.

Discovery

Using the data