# MCP server

Every route as a tool, in Claude, Cursor or any MCP client.

Add one URL and your key. Each route becomes a tool named after its id, such as `kpis_company`, and a call costs what the same REST call costs. `datasets_list` shows every price.

## Claude Code

```bash
claude mcp add \
 --transport http gloom-datasets \
 https://api.gloom.sh/v1/datasets/mcp \
 -H "Authorization: Bearer gds_..."
```

## Cursor and other clients

```json
{
  "mcpServers": {
    "gloom-datasets": {
      "url": "https://api.gloom.sh/v1/datasets/mcp",
      "headers": { "Authorization": "Bearer gds_..." }
    }
  }
}
```

## Good to know

- Your key lists the tools of the datasets its plan reads. The server's instructions name the rest and where they are sold, `datasets_list` marks each dataset `inPlan`, and a call outside the plan answers `402 dataset_not_included`, free. Reconnect after changing plan to list its tools.
- `?datasets=gpu,kpis-guidance` on the URL keeps your client's tool list to those datasets. The [bulk delivery](https://gloom.sh/datasets/docs/bulk) tools stay in it.
- A repeat call is charged again: there is no free `304` over MCP.
- A client of your own sends `Accept: application/json, text/event-stream`.

- [Previous Authentication and keys](https://gloom.sh/datasets/docs/authentication)
- [Next Pay per call (x402)](https://gloom.sh/datasets/docs/x402)
