# MAPA (Agricultura) MCP for AI Agents AI Agent Connect

> MAPA (Agricultura) MCP gives your AI agent direct access to Brazil's official agricultural open data. You can search for datasets on rural credit, livestock, and pesticide registrations (Agrofit) or inspect metadata for specific government records. It's the fastest way to pull official agribusiness stats into your workflow without manual downloads.

## Overview
- **Category:** government-public-data
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_vZA3HEhSZPPXrBHSgur3O22MyJnLu45VTXLHUj1Q/ai-agent-connect
- **Tags:** open-data, agribusiness, public-records, dataset-discovery, brazil-data

## Description

This Connector connects your AI agent to the Brazilian Ministry of Agriculture and Livestock (MAPA) Open Data Portal. Instead of hunting through government websites for CSVs or PDFs, you can just ask your agent to find specific records. You'll get access to thousands of public datasets covering everything from rural financing to livestock production. It makes sense for anyone who needs to stay on top of Brazilian agribusiness trends without the headache of navigating complex portals. If you're looking to pull these records into a larger project, you'll find that Vinkius makes it easy to manage this connection alongside your other data tools. You can dig into the details of specific organizations, browse tags to find related agricultural topics, or grab direct download links for files you need to analyze. It turns a slow research process into a quick conversation with your agent.

## Tools

### get_resource
Get metadata for a specific data resource to see its format and update status. This helps you verify the file type before you try to download it.

### list_groups
List all data groups to see how the Ministry categorizes its different agricultural topics. Use this to understand the overall data structure.

### list_organizations
List all organizations that publish data to see which departments manage specific records. It helps you identify the correct source for your query.

### list_packages
List all dataset names available in the portal to see the full scope of public data. This is your starting point for discovering new records.

### search_packages
Search for datasets using specific keywords like "agrofit" or "livestock" to find exactly what you need. It filters the thousands of records into a manageable list.

### list_tags
List all tags to discover related information across different agricultural domains. This is great for finding connected topics like rural credit.

### get_organization
Get details for a specific organization to understand their role in data publishing. Use this to see who owns a particular dataset.

### get_package
Get metadata for a specific dataset to understand its provenance and coverage. This gives you the context needed for accurate reporting.

## Prompt Examples

**Prompt:** 
```
Search for datasets related to 'Agrofit' in the MAPA portal.
```

**Response:** 
```
I found several datasets related to Agrofit. The main one is **agrofit-sistema-de-agrotoxicos-fitossanitarios** (ID: 120593). 

Would you like to see the metadata or the available resources for this package?
```

**Prompt:** 
```
List all organizations responsible for agricultural data.
```

**Response:** 
```
I've retrieved the list of organizations. There are **12 entities**, including:

* Secretaria de Defesa Agropecuária (SDA)
* Secretaria de Política Agrícola (SPA)

Which one would you like to explore?
```

**Prompt:** 
```
Get the metadata for the dataset 'registro-de-agrotoxicos'.
```

**Response:** 
```
Fetching metadata for **registro-de-agrotoxicos**...

* **Maintainer:** SDA
* **Last Updated:** 2023-10-15
* **Resources:** 3 files (CSV, PDF, and XLS)

Should I provide the download links?
```

## Capabilities

### Search for agricultural datasets
Find specific records like Agrofit or rural credit using natural language queries.

### Fetch dataset metadata
Get details on data provenance, update frequency, and coverage for any government record.

### Get direct download links
Retrieve URLs for CSV, PDF, and XLS files directly from the portal.

### Map government departments
List and inspect the organizations responsible for publishing specific agricultural data.

### Browse by category or tag
Discover related information across different agricultural domains like livestock or financing.

## Use Cases

### Finding pesticide registrations
An analyst needs to find all pesticide registrations. They ask the agent to search for "Agrofit" and use search_packages to pull the latest list.

### Identifying livestock data owners
A researcher wants to know who manages livestock data. They use list_organizations to identify the correct department and get_organization for more details.

### Downloading rural credit CSVs
A data scientist needs a CSV of rural credit records. They use list_packages to find the right dataset and get_resource to get the direct download link.

### Verifying dataset update history
A policy maker needs to see the scope of a new dataset. They ask the agent to use get_package to fetch the metadata and update history for a specific record.

## Benefits

- Skip the manual portal navigation. Use search_packages to find specific records in seconds instead of clicking through multiple government pages.
- Get instant metadata. Use get_package to quickly see the update frequency and coverage of a dataset before you spend time on it.
- Find direct links quickly. Use get_resource to grab download URLs for CSVs and PDFs without searching through nested folders.
- Map the government structure. Use list_organizations to see which departments are responsible for the data you're looking for.
- Discover related topics. Use list_tags to find connected information across different agricultural domains like rural credit and livestock.

## How It Works

The bottom line is you get official Brazilian agribusiness data directly in your chat interface.

1. Subscribe to the MAPA (Agricultura) MCP on Vinkius.
2. Add your MAPA/CKAN API Key if you need higher rate limits.
3. Ask your agent to search for specific Brazilian agricultural data.

## Frequently Asked Questions

**What kind of data does the MAPA (Agricultura) MCP provide?**
It gives you access to official Brazilian government data on agribusiness, including livestock, rural credit, and pesticide records.

**Can I use the MAPA (Agricultura) MCP to find specific pesticide registrations?**
Yes, you can ask your agent to search for "Agrofit" to find the latest official pesticide data.

**How does the MAPA (Agricultura) MCP help with research?**
It lets you quickly find and fetch metadata for thousands of public datasets, saving you from manual portal navigation.

**Does the MAPA (Agricultura) MCP support multiple file formats?**
Yes, it can retrieve links for various formats like CSV, PDF, and XLS depending on the dataset.

**Is the data in the MAPA (Agricultura) MCP up to date?**
The Connector fetches the latest metadata available on the official portal, including the most recent update dates.

**Can I use the MAPA (Agricultura) MCP to see which government departments publish data?**
Yes, it can list all organizations and provide details on who is responsible for specific agricultural records.

**How can I find datasets about a specific topic like 'coffee'?**
You can use the `search_packages` tool with the query 'café'. It will return all datasets that match the term in their title or description.

**How do I get the actual download link for a data file?**
First, use `get_package` to find the resource IDs within a dataset. Then, call `get_resource` with the specific ID to retrieve the download URL and file format.

**Can I see which government departments publish the data?**
Yes! Use the `list_organizations` tool to see all publishing entities. You can then use `get_organization` to see all datasets managed by a specific department.