MDIC (Comércio Exterior)

MDIC (Comércio Exterior) MCP Connector for Claude

A+

Access Brazilian foreign trade data from MDIC — list datasets, search for trade packages, and query the datastore for export/import statistics.

5 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect to the MDIC (Ministry of Development, Industry, Trade and Services) open data portal to analyze Brazilian foreign trade metrics directly through your AI agent.

What you can do

  • Dataset Discovery — List and search through all available trade packages (datasets) like 'comex-stat' or 'exportacao-municipios'
  • Metadata Inspection — Get detailed descriptions, tags, and resource lists for specific trade datasets
  • Direct Data Querying — Use the Datastore search to filter and retrieve specific rows from CSV resources using SQL-like parameters
  • Resource Management — Access individual file metadata and download links for trade statistics

How it works

  1. Subscribe to this server
  2. (Optional) Provide an API key if required by your specific endpoint for higher rate limits
  3. Start querying Brazilian trade data from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Data Analysts — quickly fetch trade volumes and export trends without manual downloads
  • Economists — analyze official government trade data using natural language queries
  • Business Intelligence Leads — integrate official Brazilian trade statistics into automated reports and dashboards
brazil-tradeexport-importeconomic-datackan-apitrade-statistics

5 tools expose this connector's capabilities to your AI agent.

get_package

Get detailed metadata for a specific dataset (package)

get_resource

Get metadata for a specific resource (data file)

list_packages

List all datasets (packages) available in the MDIC portal

search_datastore

Query data directly from a resource stored in the Datastore

search_packages

g., "comex", "exportação"). Search for datasets matching a specific query string

See how to talk to your AI agent using MDIC (Comércio Exterior).

Search for MDIC datasets related to 'exportação'.

I found several datasets. The most relevant are 'exportacao-municipios-detalhada' and 'comex-stat-exportacao'. Which one would you like to inspect for metadata?

List the resources available in the 'comex-stat' package.

The 'comex-stat' package contains 12 resources, including 'Exportações Mensais (CSV)' and 'Importações Mensais (CSV)'. I have the resource IDs ready if you want to query the data.

Query the first 5 rows from resource ID d3b0c1... with a limit of 5.

Retrieved 5 rows from the datastore. The data includes columns for 'Year', 'Month', 'Product_Code', and 'Value_FOB'. Would you like me to summarize these results?

Yes! Use the `search_packages` tool with your query string. It will return all datasets matching those terms within the MDIC portal.

Related Connectors