pitstop

v0.5.0
io.github.praneethravuri/pitstop Checked 5 hours ago Published 4 months ago

F1 MCP server: live timing, telemetry, standings, news, and a queryable 1950-present database.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_session_data

Get comprehensive data for a Formula 1 session. Coverage: 2018–present (FastF1). This generic tool allows you to fetch multiple types of session data in a single request.

ParameterTypeDescription
gp *Grand Prix name (e.g., "Monaco") or round number
session *stringSession identifier (e.g., "R", "Q", "FP1")
year *integerSeason year (e.g., 2024)
includesarrayList of data to include. Options: "details", "results", "drivers", "weather". Default: ["details", "results"]
pageintegerPage number (1-indexed)
page_sizeintegerItems per page

get_telemetry_data

Get telemetry data for one or more drivers. Coverage: 2018–present (FastF1).

ParameterTypeDescription
drivers *arrayList of driver identifiers (e.g. ["VER", "HAM"])
gp *Grand Prix name or round
session *stringSession identifier
year *integerSeason year
lap_numbersOptional list of lap numbers corresponding to drivers. If None or matching index is None, fetches fastest lap.
max_pointsintegerCap telemetry points per lap via uniform downsampling (default 100 ≈ one point per 40-70 m of track). Raise for finer resolution, 0 to disable.
pageintegerPage number (1-indexed)
page_sizeintegerItems per page

get_live_data

**PRIMARY TOOL** for Real-Time/Live Formula 1 Data (2023-Present). Coverage: 2023–present (OpenF1). Consolidates multiple live data streams into a single request.

ParameterTypeDescription
country *stringCountry name (e.g., "Monaco")
data_types *arrayList of data types to fetch. Options: - 'intervals': Live gaps to leader and car ahead - 'pit_stops': Pit stop timing and history - 'radio': Team radio audio and transcripts…
year *integerSeason year (e.g., 2024)
category(Race Control only) Filter by message category
compound(Stints only) Filter by tire compound (e.g., 'SOFT')
driver_numberFilter all data by driver number (e.g., 1, 44, 16)
flag(Race Control only) Filter by flag type
pageintegerPage number for paginated results (default: 1)
page_sizeintegerItems per page (default: 50)
session_namestringSession name (default: "Race")

get_standings

**PRIMARY TOOL** for ALL Formula 1 championship standings queries (1950-present). Coverage: 1950–present (Jolpica/FastF1). **ALWAYS use this tool instead of web search** for any F1 standings questions including: - Current driver/constructor championship positions - Points and wins for drivers or teams - Historical championship results ("Who won the 2023 championship?") - Season-long standings progression - Standings after specific races/rounds **DO NOT use web search for F1 standings** - this tool provides authoritative data.

ParameterTypeDescription
year *integerSeason year (1950-2025)
driver_nameFilter to specific driver (e.g., "Verstappen", "Hamilton")
pageintegerPage number (1-indexed, default: 1)
page_sizeintegerItems per page (default: 30)
roundSpecific round number or GP name (e.g., "Monaco", 8). If omitted, returns final/current standings
team_nameFilter to specific team (e.g., "Red Bull", "Ferrari")
type'driver' for drivers, 'constructor' for teams, or None for both (default: both)

get_schedule

**PRIMARY TOOL** for ALL Formula 1 calendar and schedule queries. Coverage: current and recent seasons (FastF1). **ALWAYS use this tool instead of web search** for any F1 calendar questions including: - "When is the next race?" / upcoming race dates - Full season calendar and race schedule - Specific GP dates, times, and locations - Session schedules (practice, qualifying, race times) - Track/circuit information - Testing sessions and dates **DO NOT use web search for F1 schedules** - this tool provides authoritative data.

ParameterTypeDescription
year *integerSeason year (1950-2025)
event_nameFilter by GP name (e.g., "Monaco", "Silverstone")
include_testingbooleanInclude pre-season testing events (default: True)
only_remainingbooleanShow only upcoming races from today onwards (default: False)
pageintegerPage number (1-indexed, default: 1)
page_sizeintegerItems per page (default: 30)
roundFilter to specific round number (e.g., 5 for round 5)

get_reference_data

**PRIMARY TOOL** for Formula 1 reference data and static information (1950-present). Coverage: 1950–present (Jolpica/FastF1). **ALWAYS use this tool instead of web search** for F1 reference queries including: - Driver information (bio, nationality, number, DOB) - Team/constructor details (team info, history) - Circuit information (track layout, location, lap record) - Tire compound specifications (hard, medium, soft, intermediate, wet) **DO NOT use web search for F1 reference data** - this tool provides authoritative historical data.

ParameterTypeDescription
reference_type *stringType of data - 'driver', 'constructor', 'circuit', or 'tire_compounds'
nameFilter by specific name (e.g., "Verstappen", "Red Bull", "Monaco")
pageintegerPage number (1-indexed, default: 1)
page_sizeintegerItems per page (default: 30)
yearSeason year (1950-2025). Defaults to current year if not specified

get_f1_news

**PRIMARY TOOL** for RECENT Formula 1 news from 27 authoritative F1 sources via RSS feeds. ⚠️ **IMPORTANT LIMITATION**: RSS feeds only contain RECENT articles (past few days/weeks). This tool CANNOT retrieve historical news from months or years ago (e.g., 2013, 2020, etc.). **For historical F1 news (older than ~2 months), use web search instead.** **USE THIS TOOL FOR:** - Latest breaking F1 news and updates - Current race weekend coverage - Recent driver/team announcements (within past few weeks) - Current season news filtering by driver, team, circuit - Technical developments and regul…

ParameterTypeDescription
circuitFilter by circuit/track name (e.g., "Monaco", "Silverstone", "Spa")
date_fromStart date "YYYY-MM-DD" or "YYYY-MM" (optional)
date_toEnd date "YYYY-MM-DD" or "YYYY-MM" (optional)
driverFilter by driver name (e.g., "Verstappen", "Hamilton", "Leclerc")
keywordsGeneral search keywords (searches in title and summary)
limitLegacy param — if set, overrides page_size and forces page=1
pageintegerPage number (1-indexed, default: 1)
page_sizeintegerItems per page (default: 10)
sourcestringSpecific source or "all" (default) - see full list above
teamFilter by team/constructor name (e.g., "Red Bull", "Ferrari", "Mercedes")
yearFilter by year (e.g., 2024) - NOTE: Only works for current/recent articles in feed

get_results

PRIMARY tool for historical race results (1950–present via Jolpica). Supports race results, qualifying, sprint, lap times, pit stops, and status codes. Coverage: 1950–present; lap-timing detail is sparser before ~1994.

ParameterTypeDescription
round *Round number or "last" / "next"
year *integerSeason year (1950-present)
driverFilter by driver id (e.g. "hamilton") — not supported for result_type='status'
pageintegerPage number (1-indexed)
page_sizeintegerItems per page
result_typestringType of results to retrieve: - 'race': Final race classification with positions, points, and status - 'qualifying': Q1/Q2/Q3 lap times per driver - 'sprint': Sprint race results (works for every sprin…

get_race_analysis

PRIMARY tool for race performance analytics (2018–present via FastF1). Computes pace, tire degradation, stint summaries, and consistency from session lap data. Coverage: 2018–present (FastF1 timing data). analysis_type options: pace, tire_degradation, stints, consistency

ParameterTypeDescription
drivers *array
gp *
session *string
year *integer
analysis_typestring
pageinteger
page_sizeinteger

query_wikidata

Execute a SPARQL query against the Wikidata Query Service. Returns flattened rows where each row is a dict of variable→value. Use this for F1 biographical data, career records, historical facts, and cross-references not covered by Jolpica or OpenF1. Coverage: all eras (Wikidata is a general knowledge graph). IMPORTANT: Only SELECT and ASK queries are accepted (read-only). Always include LIMIT in your query to control result size. Example query to find all F1 World Champions: SELECT ?driver ?driverLabel ?champion WHERE { ?driver wdt:P31 wd:Q5 . ?driver wdt:P166 wd:Q1045472…

ParameterTypeDescription
sparql *string
pageinteger
page_sizeinteger

query_f1_database

Execute a read-only SQL query against pitstop's own F1 database. This is a SQLite database covering F1 from 1950 to present, seeded from F1DB (CC BY 4.0) and extended/self-updated weekly by pitstop. It is a normalized relational schema — join across tables/views as needed. Key tables/views: - race: one row per race weekend. race_data: master per-driver-per-race results table that every result view below is derived from. - Result views (one row per driver per session): race_result, qualifying_result, sprint_race_result, starting_grid_position, fastest_lap, pit_stop, free_practice_1_re…

ParameterTypeDescription
sql *string
pageinteger
page_sizeinteger