# opendata-cat

Gives your assistant a catalogue of Catalan open data: dataset search, field metadata and live queries against 15 portals.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 22
- Author: xaviviro
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/xaviviro/Opendata.cat-MCP-Server
- Updated: 2026-09-17
- HTML: https://affpapa.org/en/nevibecode/mcp/opendata-cat

## What it does

Eight tools come with the server. `search_datasets` scans 3,073 datasets, `get_dataset_info` and `list_dataset_fields` expose the schema and licence of a set, and `query_dataset` pulls actual rows from the source portal. That means SoQL on Generalitat, `datastore_search` on the CKAN sites, GTFS-RT for FGC and Renfe Rodalies trains. No API key, no signup.

The catalogue covers 15 sources. Alongside the Generalitat and the city portals of Barcelona, Reus and Girona sit INE, REE, SEPE and CNMC; Spanish statistics arrive pre-filtered to Catalonia, so population, unemployment and fuel prices are already scoped. A separate `search_radioteca` tool reaches into the radioteca.cat archive.

You pick local or remote. The local route runs `npx -y @opendata.cat/mcp-server`, the remote one points at `https://opendata.cat/api/mcp` with nothing to install. With remote, every query passes through the project's own server; run it locally if the catalogue should stay on your machine.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://opendata.cat/api/mcp`

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http opendata-cat https://opendata.cat/api/mcp
```

2. **Platform CLI**
```bash
claude mcp add opendata-cat -- npx -y @opendata.cat/mcp-server
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add opendata-cat --url https://opendata.cat/api/mcp
```

2. **Platform CLI**
```bash
codex mcp add opendata-cat -- npx -y @opendata.cat/mcp-server
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "opendata-cat": {
            "url": "https://opendata.cat/api/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "opendata-cat": {
            "command": "npx",
            "args": [
                "-y",
                "@opendata.cat/mcp-server"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "opendata-cat": {
            "type": "http",
            "url": "https://opendata.cat/api/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "opendata-cat": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@opendata.cat/mcp-server"
            ]
        }
    }
}
```

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http opendata-cat https://opendata.cat/api/mcp
```

2. **Platform CLI**
```bash
gemini mcp add opendata-cat npx -y @opendata.cat/mcp-server
```

## When to use it
- find a dataset by topic across Catalan open data portals
- read the fields and licence of a dataset before querying it
- fetch real rows from the Generalitat or Barcelona portals
- cross-check INE figures against municipal AOC data for one municipi
- look up FGC and Renfe Rodalies delays

## Example prompts
- Search for air quality datasets in Barcelona and list their fields
- Run a query on `generalitat:gn9e-3qhr` filtered to the Sau station
- Find radioteca.cat episodes about Catalan weather

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40409
- [dbx](https://affpapa.org/en/nevibecode/mcp/dbx.md) — MCP server · ★ 27669
- [Metabase](https://affpapa.org/en/nevibecode/mcp/metabase.md) — MCP server · ★ 49845

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
