> ## Documentation Index
> Fetch the complete documentation index at: https://cs2-data-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LLMs and MCP

> Let Claude, Cursor or any MCP client query the data with your key, and point agents at llms.txt.

## MCP server

The API runs a [Model Context Protocol](https://modelcontextprotocol.io) server at `/mcp` (streamable HTTP). An LLM
client connected to it can list the datasets, read their columns and query rows with your key. Calls count against
your key's limits like any other request.

| Tool | What it does |
| - | - |
| `list_datasets` | Every dataset: what one row is, its key, filters and presets |
| `describe_dataset` | One dataset's columns (type, unit, description), presets and filters |
| `query_dataset` | Rows of a dataset with filters, `fields` / `preset`, up to 200 rows a call, paged with `cursor` |

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http granuleux https://api.granuleux.com/mcp \
>   --header "Authorization: Bearer $CS2API_KEY"
> ```

> [tab] Cursor and other clients
>
> Add to the client's MCP config (for Cursor, `~/.cursor/mcp.json`):
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "granuleux": {
>       "url": "https://api.granuleux.com/mcp",
>       "headers": { "Authorization": "Bearer <your key>" }
>     }
>   }
> }
> ```

Then ask in plain language, for example: "Which players had the most AWP kills on Mirage since October?" or "Plot
where FURIA's CTs stood 20 seconds into each round of their last Nuke game."

> [!WARNING]
>
> The key in an MCP config is stored on that machine. Use a separate key for it (you can have up to 5) so you can
> revoke it on its own.

## llms.txt

Coding agents and LLMs can read a plain-text summary of the API, including the current list of datasets, at
[www.granuleux.com/llms.txt](https://www.granuleux.com/llms.txt). These docs are also available as
`/llms.txt` and, as one file, `/llms-full.txt` on this site. Every page can be read as Markdown by adding `.md` to its
URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.