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
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
racewindow://races· All races: Every race racewindow tracks, as a Markdown table: race date, registration status of general entry, closing date and each race's page URL (the same text as search_races with no arguments).racewindow://race/{slug}· One race: One race in full, as Markdown: race day, every registration window with opens/closes and status, the organizer's wording with sources, past editions (the same text as get_race). The slug is the last segment of the race page URL, e.g. berlin-marathon.
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.
GET /: every race with its race date, registration status, closing date and page URL. Filters:country(ISO code, e.g. DE),distance(marathon, half),mechanism(lottery, fcfs, qualifier, charity, late),status(open, upcoming, announced, closed, sold_out, expected, unknown),month(1-12, race day),series(SuperHalfs, WMM).entry_typeandrace_month, the MCP tool's names, work too. A value a filter doesn't take is ignored, and the list says so in an "Ignored ..." line; so is a parameter that isn't a filter.GET /race/<slug>: one race in full: race day, every registration window with opens/closes in race-local time, the organizer's wording with sources and verification dates, past editions.- Errors are RFC 9457 problem details
(
application/problem+json:type,title,status,detail). A 404 asked for withAccept: text/markdownis Markdown instead and says where to look. The MCP endpoint answers JSON-RPC error objects; its tools return the Markdown plus the same JSON asstructuredContent.
OpenAPI description (OpenAPI 3.1) of these pages, the MCP endpoint and the discovery files.
Examples
- Half marathons in Germany racing March to June 2027 with general registration open:
GET /?country=DE&distance=half&status=openwithAccept: application/json(or the MCP toolsearch_races(country="DE", distance="half", status="open")), then keep the races whoserace_dateis between 2027-03-01 and 2027-06-30. One call returns every match. - When does the Berlin Marathon ballot open?
GET /race/berlin-marathonas JSON (orget_race("berlin-marathon")): ineditions[0].windows, the one with phasegeneraland mechanismlottery:opens.date,opens.localwhen a time was given,opens.textin the organizer's words,source_url,verified_at. - Sold out, but charity places still open:
GET /?status=sold_outas JSON, then the rows whosealso_openincludescharity.
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
- llms.txt: what the site offers agents
- API catalog (RFC 9727)
- Agent skill: how to look races up and read the data
- Sitemap: every race page, with the date it was last verified
Using the data
- Free. Please link the race page when you quote a date.
- robots.txt says yes to search and AI answers, no to model training.
- Plans change: every answer links the organizer's page, which has the last word before anyone pays for an entry.