File size: 1,340 Bytes
014f597
95f9324
b9b643a
fbc278f
 
014f597
b9b643a
014f597
437b9e3
5cfb2b4
73ec21e
5af4f26
fa395d9
 
 
014f597
 
f39dc9d
 
 
 
 
fa395d9
d69ce5a
386e5c8
 
fa395d9
d69ce5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: F1 MCP Server
emoji: 🏎️
colorFrom: red
colorTo: gray
sdk: gradio
sdk_version: 5.32.0
app_file: app.py
pinned: true
license: apache-2.0
short_description: 'Universal F1 data retrieval and agentic race strategy.'
video_url: https://www.loom.com/share/bfa4e3e5d70d47f9bce406a0714893fd?sid=634b543c-684e-4872-b926-14cbb56396de
tags:
  - 'mcp-server-track'
  - 'agent-demo-track'
---


## MCP Server
The MCP server is defined inside `app.py` and is hosted on HuggingFace spaces using the Gradio template.

## MCP Client
The MCP client and AI agent is defined inside `mcp_client.py` and allows interaction with the MCP server through server side events (SSE) transport.


## MCP configuration file
For MCP clients that support SSE transport (for Claude Desktop, see below), the following configuration can be used:

```json
{
  "mcpServers": {
    "gradio": {
      "url": "https://agents-mcp-hackathon-f1-mcp-server.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

For Claude Desktop, the following configuration can instead be used, but make sure you have Node.js installed:

```json
{
  "mcpServers": {
    "gradio": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://agents-mcp-hackathon-f1-mcp-server.hf.space/gradio_api/mcp/sse",
        "--transport",
        "sse-only"
      ]
    }
  }
}
```