# Castilla-La Mancha Open Data MCP for AI Agents AI Agent Connect

> Datos Abiertos Castilla-La Mancha MCP gives your AI agent direct access to the official Spanish regional open data portal. You can query public records on health, the economy, and the environment without manual searching. It lets your agent fetch specific files, browse tags, and filter tabular data from the CKAN-based repository.

## Overview
- **Category:** knowledge-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_mjXSwoDrxbTAQ0Zmj7hntsNvU6ig8uL2G0GXdePO/ai-agent-connect
- **Tags:** open-data, spain, castilla-la-mancha, ckan, public-records

## Description

Stop wasting time digging through government websites trying to find specific regional statistics. This Connector connects your AI agent directly to the Castilla-La Mancha Open Data portal, turning a manual search process into a direct conversation. Instead of opening dozens of tabs to find a CSV on public health or local economic trends, you can just ask your agent to pull the latest numbers. It handles the heavy lifting of navigating the CKAN-based repository for you. If you need to find a specific file type or filter through thousands of records in a datastore, the agent does that work in seconds. It's a massive time-saver for anyone who needs to turn Spanish public records into actual insights. You'll find it much easier to manage these complex public datasets when you're using it through a platform like Vinkius, which makes connecting these types of regional data sources straightforward. It's about getting the data you need to do your job without the bureaucratic headache of navigating a clunky portal. You can move from one dataset to another without ever having to remember specific URLs or complex search parameters. Whether you are looking for environmental impact reports or regional infrastructure plans, the agent organizes the results so you can see the big picture immediately. This turns a slow, manual data collection task into a fast, automated query process.

## Tools

### search_datastore
Queries and filters records directly inside a tabular datastore resource. Use this to get specific rows without a full download.

### get_dataset
Pulls detailed information about a specific dataset from the portal. This helps you see the scope and update status of a record.

### get_resource
Retrieves specific details for a file or resource within a dataset. Use this to find the exact link for a CSV or PDF.

### list_datasets
Lists all available datasets currently hosted on the portal. It provides a complete overview of what data is accessible.

### list_tags
Shows all active tags and categories in the portal. This helps you organize your search by specific regional themes.

## Prompt Examples

**Prompt:** 
```
What datasets are available for public health in the region?
```

**Response:** 
```
I found several datasets related to public health in Castilla-La Mancha. Here are the most relevant ones:

| Dataset Name | Description | Resources |
| :--- | :--- | :--- |
| **Centros Sanitarios** | Information about health centers | CSV, Excel, GeoJSON |
| **Calidad del Aire** | Regional air quality stats | CSV |

Would you like me to pull the specific files for one of these?
```

**Prompt:** 
```
Search for the most recent population records in the datastore.
```

**Response:** 
```
I've queried the population datastore for you. Here are the 5 most recent records:

| Municipio | Población | Año |
| :--- | :--- | :--- |
| Madrid | 3,300,000 | 2023 |
| Valencia | 800,000 | 2023 |
| Sevilla | 680,000 | 2023 |

Let me know if you'd like me to filter these by a specific year.
```

**Prompt:** 
```
Find the CSV file for the 2024 regional budget.
```

**Response:** 
```
I located the 'Presupuesto 2024' dataset. It contains 3 resources:

* **CSV file** (ID: res-456)
* **Excel file**
* **PDF summary**

Would you like me to get more details on the CSV?
```

## Capabilities

### Browse the entire regional dataset catalog
Your agent can list every available public dataset from the Castilla-La Mancha portal in one go.

### Pull specific dataset metadata
Get detailed descriptions, update frequencies, and maintainer info for any specific record.

### Locate specific file types
Identify which datasets contain the CSV, JSON, or PDF files you need for your analysis.

### Filter thousands of records
Query and filter data directly within tabular datastore resources without downloading the whole file.

### Navigate categories using regional tags
Use active tags to quickly filter the catalog by categories like health, economy, or environment.

## Use Cases

### Finding health center locations
An analyst asks for all health centers in the region. The agent uses list_datasets to find the health catalog and get_dataset to extract the files.

### Querying recent population records
A researcher wants the last 5 population entries. The agent uses search_datastore to query the population resource and returns the specific rows.

### Browsing environmental data tags
A user wants to know what environmental data is available. The agent uses list_tags to find all environment-related categories and lists them.

### Locating specific budget files
A developer needs the 2024 budget CSV. The agent uses list_datasets to find the budget entry and get_resource to identify the correct CSV link.

## Benefits

- Stop manual searching. Use list_datasets to see everything available in one go instead of clicking through multiple portal pages.
- Faster data discovery. Use list_tags to quickly narrow down your search to specific categories like health or the economy.
- Direct record filtering. Use search_datastore to query specific rows without downloading massive files to your local machine.
- Precise file identification. Use get_resource to find the exact CSV, JSON, or PDF you need within a large dataset.
- Deep metadata access. Use get_dataset to see update frequencies and maintainer info instantly for better data reliability.

## How It Works

The bottom line is you get direct, natural language access to Spanish public data without leaving your workspace.

1. Subscribe to the Connector and provide your API key from the portal for higher limits.
2. Connect your AI client like Claude, Cursor, or Windsurf to the Connector.
3. Ask your agent to find, filter, or query specific Spanish regional data using natural language.

## Frequently Asked Questions

**Can I use Datos Abiertos Castilla-La Mancha to find local health statistics?**
Yes, you can. The Connector allows your AI agent to browse datasets and query specific records related to health, environment, and the economy in the region.

**Does Datos Abiertos Castilla-La Mancha support searching for specific files?**
Yes, it does. Your agent can identify specific file types like CSV, JSON, and PDF within any dataset so you don't have to hunt for them manually.

**Can I query specific rows of data using Datos Abiertos Castilla-La Mancha?**
Yes, you can use it to search and filter records directly within tabular resources, which is much faster than downloading a whole file.

**Is the data from Datos Abiertos Castilla-La Mancha up to date?**
The Connector pulls from the official portal. You can use the metadata tools to check the update frequency and maintainer information for any dataset.

**How does Datos Abiertos Castilla-La Mancha help researchers?**
It lets researchers use natural language to navigate complex public records. Instead of manual portal searches, you can ask your agent to find specific regional trends.

**Can I use Datos Abiertos Castilla-La Mancha for other regions in Spain?**
No, this specific MCP is dedicated to the Castilla-La Mancha open data portal. You would need a different connector for other regions.

**Can I search for specific records inside a CSV file without downloading it?**
Yes! Use the `search_datastore` tool with the Resource ID. You can apply filters and limits to query the data rows directly from the portal's internal database.

**How do I find all available datasets in the portal?**
Simply run the `list_datasets` tool. It will return a comprehensive list of dataset identifiers that you can then inspect further using `get_dataset`.

**Can I see the categories or tags used to organize the data?**
Yes, use the `list_tags` tool to retrieve all the keywords and categories used by the Castilla-La Mancha portal to classify their information.