# Idescat MCP server

> Query official statistics of Catalonia, including tables, metadata, and JSON-stat data, through an MCP client.

- Repository: https://github.com/idescat/mcp
- Page: https://hostedmcp.org/servers/idescat/mcp
- Transport: remote
- Stars: 1
- License: MIT
- Latest version: 1.1.1

## Install

### Claude Code

```sh
claude mcp add --transport http mcp https://api.idescat.cat/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.idescat.cat/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://api.idescat.cat/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"http","url":"https://api.idescat.cat/mcp"}'
```

### Codex

```sh
codex mcp add mcp --url https://api.idescat.cat/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
url = "https://api.idescat.cat/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http mcp https://api.idescat.cat/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://api.idescat.cat/mcp",
      "type": "http"
    }
  }
}
```

## Tools (7)

- `get_idescat_stats`
- `get_idescat_stat`
- `get_idescat_stat_tables`
- `get_table_metadata`
- `get_table_data`
- `get_table_geo`
- `render_table`

## FAQ

### Does Idescat MCP server require authentication?

No, authentication is not required because the data is public.

### What language are the labels and descriptions in?

The labels and descriptions are provided in Catalan.

### Can the server perform mathematical calculations on the data?

Yes, the server can perform age-range filtering, summing dimensions, and deriving metrics like shares or percentage changes to ensure deterministic results.

### What is the territorial scope of the data?

The data covers Catalonia and its various territorial breakdowns, such as counties, municipalities, and provinces.
