4,000+ servers built on vurb.ts
Vinkius
Mastra AISDK
Mastra AI
MDIC (Comércio Exterior) MCP Server

Bring Brazil Trade
to Mastra AI

Learn how to connect MDIC (Comércio Exterior) to Mastra AI and start using 5 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.

MCP Inspector GDPR Free for Subscribers
Get PackageGet ResourceList PackagesSearch DatastoreSearch Packages

Compatible with every major AI agent and IDE

ClaudeClaude
ChatGPTChatGPT
CursorCursor
GeminiGemini
WindsurfWindsurf
VS CodeVS Code
JetBrainsJetBrains
VercelVercel
+ other MCP clients
MDIC (Comércio Exterior)

What is the MDIC (Comércio Exterior) MCP Server?

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

Built-in capabilities (5)

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

Why Mastra AI?

Mastra's agent abstraction provides a clean separation between LLM logic and MDIC (Comércio Exterior) tool infrastructure. Connect 5 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.

  • Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add MDIC (Comércio Exterior) without touching business code

  • Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

  • TypeScript-native: full type inference for every MDIC (Comércio Exterior) tool response with IDE autocomplete and compile-time checks

  • One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure

M
See it in action

MDIC (Comércio Exterior) in Mastra AI

AI AgentVinkius
High Security·Kill Switch·Plug and Play
Why Vinkius

MDIC (Comércio Exterior) and 4,000+ other MCP servers. One platform. One governance layer.

Teams that connect MDIC (Comércio Exterior) to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.

4,000+MCP Servers ready
<40msCold start
60%Token savings
Raw MCP
Vinkius
Server catalogFind and host yourself4,000+ managed
InfrastructureSelf-hostedSandboxed V8 isolates
Credential handlingPlaintext in configVault + runtime injection
Data loss preventionNoneConfigurable DLP policies
Kill switchNoneGlobal instant shutdown
Financial circuit breakersNonePer-server limits + alerts
Audit trailNoneEd25519 signed logs
SIEM log streamingNoneSplunk, Datadog, Webhook
HoneytokensNoneCanary alerts on leak
Custom domainsNot applicableDNS challenge verified
GDPR complianceManual effortAutomated purge + export
Enterprise Security

Why teams choose Vinkius for MDIC (Comércio Exterior) in Mastra AI

The MDIC (Comércio Exterior) MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 5 tools execute in hardened sandboxes optimized for native MCP execution.

Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

MDIC (Comércio Exterior)
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

The Vinkius Advantage

How Vinkius secures MDIC (Comércio Exterior) for Mastra AI

Every tool call from Mastra AI to the MDIC (Comércio Exterior) MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.

< 40msCold start
Ed25519Signed audit chain
60%Token savings
FAQ

Frequently asked questions

01

Can I search for specific trade terms like 'soybean' or 'iron ore'?

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

02

How do I access the actual data rows inside a CSV resource?

Use the search_datastore tool by providing the resource_id. You can also apply filters and limits to retrieve exactly the data points you need.

03

Is it possible to see the file format and download URL for a dataset?

Yes. The get_package tool returns a list of resources, and get_resource provides specific metadata including the format (CSV, XLSX, etc.) and the direct download URL.

04

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.

05

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.

06

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.

07

createMCPClient not exported

Install: npm install @mastra/mcp

Explore More MCP Servers

View all →