# Junta de Andalucía (Portal) MCP for AI Agents AI Agent Connect

> Junta de Andalucía (Portal) MCP gives your AI agent direct access to the official Andalusian government open data portal. You can search through thousands of public datasets, check metadata for specific resources, and pull information on topics like education, health, and tourism directly into your chat.

## Overview
- **Category:** knowledge-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_hCDjSQlyrFziaQjAODgMBRQmeXCYSejt3VYHuNyn/ai-agent-connect
- **Tags:** andalucia, open-data, spain, ckan, public-sector

## Description

This Connector connects your AI client to the official Junta de Andalucía Open Data Portal, turning a massive repository of government records into a searchable knowledge base. Instead of navigating complex government websites or manually downloading CSV files, you can just ask your agent to find specific information. It handles the heavy lifting of browsing through various government departments to find the exact dataset you need. You can ask about regional health centers, educational statistics, or tourism data, and the Connector will pull the relevant metadata or search the contents of the files for you. It's a huge time saver for anyone who needs to stay on top of Andalusian public records without the manual headache. When you use this through the Vinkius catalog, you get a direct line to official data that would otherwise take hours of clicking to find. It's about getting straight to the facts, whether you're looking for a specific file link or just trying to see what kind of data a certain government department actually publishes.

## Tools

### list_groups
See all the different categories or groups of data. This helps you narrow down your search to topics like environment or education.

### search_datastore
Search for specific terms or data points within a single resource. This helps you find specific entries like hotel occupancy without scanning the whole file.

### get_package
Get the full metadata for a specific dataset. This shows you update frequencies, descriptions, and available formats at a glance.

### list_organizations
See a full list of government bodies that publish data. Use this to figure out which department handles specific public records.

### list_packages
See every dataset currently available in the portal. Use this to browse the full scope of what the government shares publicly.

### get_resource
Pull the metadata and direct links for a specific file. This is how you get the actual URL to download the data you need.

## Prompt Examples

**Prompt:** 
```
What public datasets are available for tourism in Andalusia?
```

**Response:** 
```
I've found several datasets related to tourism in the Junta de Andalucía portal. Here are the most relevant ones:

*   **Turismo Regional**: General statistics on regional tourism.
*   **Ocupación Hotelera**: Monthly occupancy rates for hotels.
*   **Atracciones Locales**: Data on local points of interest.

Would you like me to get the metadata for any of these?
```

**Prompt:** 
```
Find the metadata for the health center dataset.
```

**Response:** 
```
I've retrieved the metadata for the 'centros-sanitarios' dataset:

*   **Description**: Information about all health centers in Andalusia.
*   **Last Updated**: Monthly
*   **Available Formats**: CSV, JSON
*   **Resources**: 3 files available

Would you like the direct links to these files?
```

**Prompt:** 
```
Search the tourism dataset for anything related to hotel occupancy.
```

**Response:** 
```
Searching the tourism datastore for 'hotel occupancy'...

I found 12 entries in the regional tourism resource:

| Month | Region | Occupancy Rate |
|-------|--------|----------------|
| Jan   | Seville | 88%           |
| Jan   | Malaga  | 92%           |
| Feb   | Seville | 85%           |

Would you like me to summarize more results?
```

## Capabilities

### Search for specific data inside resources
Query specific terms or data points within a single resource to find exactly what you need.

### List all available government datasets
Get a complete list of all public datasets currently published in the portal.

### View detailed metadata for specific packages
See descriptions, update frequencies, and available formats for any given dataset.

### Find all publishing government organizations
Identify which government bodies own and publish specific types of public records.

### Identify all categories of public data
Browse the different groups of data to find records related to specific topics.

### Get direct links to individual files
Retrieve the direct URLs for resources so you can access the files immediately.

## Use Cases

### Finding health center locations
A researcher wants to find all health centers in a specific region. They ask the agent to find the 'centros-sanitarios' dataset and list the resource links.

### Fact-checking tourism statistics
A journalist is looking for tourism stats. They use the agent to search for 'turismo' within the regional tourism dataset to find specific numbers.

### Gathering data for a new app
A developer is building a local app. They use the agent to get the metadata for various datasets to ensure they have the right formats before coding.

### Exploring environmental records
A student needs to see what data the government publishes on the environment. They ask the agent to list all groups to find the right category.

## Benefits

- Skip the manual browsing of the government portal by using list_packages to see everything available in one list.
- Get direct file links quickly with get_resource so you don't have to hunt through nested folders to find downloads.
- Understand data context immediately by using get_package to see how often the government updates its records.
- Find specific keywords inside massive datasets using search_datastore to save time on manual filtering and sorting.
- Map out government departments easily with list_organizations to know exactly who owns which piece of data.
- Filter your research by topic using list_groups to find relevant public records faster.

## How It Works

The bottom line is you get instant access to Andalusian government records without leaving your chat window.

1. Connect the Connector to your AI client and provide your Portal API Key if you want higher rate limits.
2. Ask your agent to find a specific dataset or browse categories of public information.
3. Receive direct links to files, metadata summaries, or specific data entries from the portal.

## Frequently Asked Questions

**Can I use the Junta de Andalucía (Portal) MCP to find health records?**
Yes, it lets you search for datasets related to health centers and other public services. You can find specific records and metadata directly through your AI client.

**Does the Junta de Andalucía (Portal) MCP allow me to download files?**
It provides you with the direct links to the resources. Once the agent gives you the URL, you can download the files directly to your device.

**How can I find which government department publishes environmental data?**
You can ask the agent to list the publishing organizations. It will show you the list of government bodies so you can see who manages specific records.

**Can I search for specific keywords inside a government dataset?**
Yes, the Connector can search for specific terms within a resource. This is great for finding specific numbers or entries without having to download the whole file first.

**Is the Junta de Andalucía (Portal) MCP good for socio-economic research?**
It's perfect for researchers who need to quickly browse and inspect public datasets for regional studies. It saves time by pulling metadata and file links into a single conversation.

**How can I search for specific information inside a dataset's file?**
Use the `search_datastore` tool with the specific `resource_id`. You can provide a query string `q` to filter the rows and find exactly what you need within the data table.

**Can I see which government department published a specific dataset?**
Yes. You can use `list_organizations` to see all publishers or use `get_package` with the dataset ID to see the specific organization responsible for that data.

**Is an API key mandatory to use this server?**
No, the API key is optional. Most data on the Junta de Andalucía portal is public. However, providing a key via the `JUNTA_API_KEY` credential may help avoid rate limits during intensive usage.