# Opendata.cat MCP Server

Servidor [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) que connecta els models de llenguatge (Claude, ChatGPT, Gemini...) amb les **dades obertes publiques de Catalunya**. Cerca da…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add opendata-cat/mcp-server

# Browse available tools
npx -y @smithery/cli@latest tool list opendata-cat/mcp-server

# Get full schema for a tool
npx -y @smithery/cli@latest tool get opendata-cat/mcp-server search_datasets

# Call a tool
npx -y @smithery/cli@latest tool call opendata-cat/mcp-server search_datasets '{}'
```

## Direct MCP Connection

Endpoint: `https://mcp-server--opendata-cat.run.tools`

## Tools (6)

- `search_datasets` — Cerca datasets de dades obertes catalanes per text lliure.
- `get_dataset_info` — Retorna metadades completes d'un dataset.
- `list_dataset_fields` — Llista els camps d'un dataset amb nom, tipus i descripcio.
- `query_dataset` — Consulta dades reals directament als portals origen.
- `list_portals` — Llista els portals de dades obertes catalans amb estadistiques.
- `list_categories` — Llista categories i temes amb comptadors per portal.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get opendata-cat/mcp-server <tool-name>
```
