mcp-comex-brasil
mcp-comex-brasil
브라질 대외무역 데이터용 MCP 서버 — 데이터셋의 함정을 응답에서 바로잡은 버전.
거짓말하지 않는 도구 네 개, 알지 못하는 도구 마흔 개 대신.
이 서버가 해결하는 문제
단지 데이터셋을 노출할 뿐인 MCP 서버는 에이전트에게 잘못된 숫자를 돌려주는 깔끔한 API를 건네줍니다. 내부 배관은 그 필드가 거짓말한다는 사실을 모릅니다.
Comex Stat — Secretaria de Comércio Exterior / Receita Federal이 발행하는 브라질 공식 대외무역 데이터베이스 — 에는 어떤 문서도 알려주지 않는 결함이 있습니다:
AÉREA로 운송 모드 필드를 필터링하면 2026년 1~7월 중국 수입 1억 3,960만 kg이 반환됩니다. 같은 레코드를 통관 지점과 교차 확인하면 단 3,400만 kg(24%)만 공항을 거쳤습니다. 나머지 8,970만 kg은 해상 항구에서 통관되었으며, 이는 날지 않는 화물인 황산암모늄과 인산염 비료입니다. 운임은 US$0.29/kg입니다.수정하지 않으면: 항공 중량 4.1배 과대계상, kg당 운임 70% 과소평가. 오류는 조용합니다. 쿼리에서는 아무것도 지적하지 않습니다.
이 서버는 수정을 적용하고, 왜 필요한지에 대한 증거를 함께 반환합니다.
Related MCP server: Receita Federal: Radar (Habilitação Comércio Exterior)
두 가지 보장
모든 응답에는 해당 조회에 적용되는 알려진 결함이 포함되며, 측정된 증거와 검증 출처를 함께 제공합니다.
중대한 수정은 단순히 알림만이 아니라 결과에 적용됩니다.
air채널은 이제 '공항에서 통관된 항공'을 의미합니다. 오염된 블록은 의도적으로air_declared_at_port로 계속 조회할 수 있습니다. 검사하고 싶은 사람을 위해서요.
게시된 요약이 버리는 데이터셋의 내용
수입 파일에는 VL_FRETE와 VL_SEGURO가 포함되어 있습니다 — 세관에 신고된 운임과 보험입니다. 이는 공개적으로 이용 가능한 실현 비용의 가장 체계적인 측정치이며, 사실상 아무도 사용하지 않습니다.
중국 → 브라질, 2026년 1~7월, 이미 수정됨:
채널 | 중량 (kg) | 운임 US$/kg | FOB 대비 운임 % | 가치 밀도 |
항공 (공항) | 33.993.130 | 10,81 | 9,37% | US$ 115,36/kg |
해상 | 16.074.641.185 | 0,142 | 5,68% | US$ 2,51/kg |
항공은 kg당 76배 더 비싸고, 상품 1달러당 1.65배만 더 비쌉니다. 이 회랑의 운송 모드 분할은 운임 결정이 아니라 가치 밀도 결정입니다.
설치
Node ≥ 22.5 필요 (내장 SQLite 사용 — 네이티브 의존성 0, node-gyp 없음).
git clone <repo> && cd mcp-comex-brasil
npm install && npm run build
npm run db:build -- --years 2025,2026 # baixa da fonte oficial e monta o SQLitedb:build는 balanca.economia.gov.br에서 파일을 직접 가져옵니다. 이 패키지는 어떤 데이터도 재배포하지 않습니다 — 데이터베이스는 항상 출처에서 갓 가져온 상태로 여러분의 머신에 구축됩니다.
유용한 옵션:
npm run db:build -- --years 2026 --countries 160 # só China, base pequena e rápida
npm run db:build -- --years 2024,2025,2026 --flows import,exportMCP 클라이언트 구성
{
"mcpServers": {
"comex": {
"command": "node",
"args": ["--experimental-sqlite", "/caminho/para/mcp-comex-brasil/dist/index.js"],
"env": { "COMEX_LANG": "pt" }
}
}
}COMEX_LANG은 pt(기본값) 또는 en을 허용합니다. COMEX_DB는 데이터베이스 경로를 재정의합니다.
네 가지 도구
도구 | 기능 |
| 연도, 월, 국가, NCM 및 채널별 가치, 중량, 가치 밀도. |
| 채널별 신고 운임 및 보험: US$/kg 및 FOB 대비 %. 수입 전용. |
| 데이터셋의 알려진 결함, 증거, 수정 규칙 및 검증 체크리스트. |
| 국가, NCM, 운송 모드 및 통관 URF 해석 (공항/항구/기타 분류 포함). |
응답에 수반되는 주의사항
id | 심각도 | 수정됨? |
| 치명적 | ✅ 자동 (통관 지점과 교차 검증) |
| 치명적 | ❌ 불가능 — 데이터가 소스에 존재하지 않음 |
| 정보 | — |
| 경고 | ❌ 전년 대비 비교 필요 |
simplified_regime_absent에 대해: POSTAL 및 COURIER에 대한 운송 모드 코드가 존재하지만 비어 있습니다 (2026년 전체에 걸쳐 중국에서 13건, 72kg이며, 보고된 국제 소포 약 1억 8,000만 건과 대조적입니다). 저가의 소포는 간이 통관 제도를 거치며 무역 통계에 포함되지 않습니다. 공식 통계와 소포 물량은 분리된 세계입니다 — 합산하지 말고, 산술적으로 비교하지 마십시오.
검증
집계 결과는 교차 구현으로 검증되었습니다. 동일한 범위를 원시 CSV에 대한 단일 awk 패스와 이 서버의 SQL 뷰로 처리하면 마지막 자릿수까지 동일한 숫자가 생성됩니다 (349,250개 레코드, 7개 채널, 운임 및 중량 값).
npm test # 12 testes da lógica de classificação e do registro de caveats라이선스 및 출처
MIT. 데이터: Comex Stat, Secretaria de Comércio Exterior / Receita Federal do Brasil (balanca.economia.gov.br) — 데이터베이스 구축 시점에 조회되는 공개 출처.
저자: Luis Delfin
영어
브라질 대외무역 데이터용 MCP 서버 — 데이터셋의 함정을 응답에서 바로잡은 버전.
거짓말하지 않는 도구 네 개, 알지 못하는 도구 마흔 개 대신.
문제
단지 데이터셋을 노출할 뿐인 MCP 서버는 에이전트에게 잘못된 숫자를 돌려주는 깔끔한 API를 건네줍니다. 내부 배관은 그 필드가 거짓말한다는 사실을 모릅니다.
브라질 공식 무역 데이터셋(Comex Stat, Foreign Trade Secretariat / Federal Revenue Service 발행)에는 어떤 문서도 경고하지 않는 결함이 있습니다:
운송 모드 필드를
AIR로 필터링하면 2026년 1~7월 중국 수입 1억 3,960만 kg이 반환됩니다. 같은 레코드를 통관 지점과 교차 참조하면 단 3,400만 kg(24%)만 공항을 통과했습니다. 나머지 8,970만 kg은 해상 항구에서 통관되었으며, 이는 황산암모늄과 인산염 비료로 구성되어 있습니다 — 날지 않는 화물이며, 운임은 US$0.29/kg입니다.수정하지 않으면: 항공 중량 4.1배 과대계상, kg당 운임 70% 과소평가. 오류는 조용합니다 — 쿼리는 이를 표시하지 않습니다.
이 서버는 수정을 적용하고, 왜 필요한지에 대한 증거를 반환합니다.
두 가지 보장
모든 응답에는 해당 조회에 적용되는 알려진 결함이 포함되며, 측정된 증거와 검증 출처를 포함합니다.
중대한 수정은 단순히 경고만이 아니라 적용됩니다.
air채널은 이미 '공항에서 통관된 항공 모드'를 의미합니다. 오염된 블록은 의도적으로air_declared_at_port로 계속 조회할 수 있습니다 — 검사하고 싶은 사람을 위해.
게시된 요약이 버리는 데이터셋의 내용
수입 파일에는 VL_FRETE와 VL_SEGURO가 포함되어 있습니다 — 세관에 신고된 운임과 보험. 이는 공개적으로 이용 가능한 실현 비용의 가장 체계적인 측정치이며, 거의 아무도 사용하지 않습니다.
중국 → 브라질, 2026년 1~7월, 수정됨:
채널 | 중량 (kg) | 운임 US$/kg | FOB 대비 운임 % | 가치 밀도 |
항공 (공항 통관) | 33,993,130 | 10.81 | 9.37% | US$115.36/kg |
해상 | 16,074,641,185 | 0.142 | 5.68% | US$2.51/kg |
항공은 kg당 76배 더 비싸고, 상품 1달러당 1.65배만 더 비쌉니다. 이 회랑의 운송 모드 분할은 운임 결정이 아니라 가치 밀도 결정입니다.
설치
Node ≥ 22.5 필요 (내장 SQLite 사용 — 네이티브 의존성 0, node-gyp 없음).
npm install && npm run build
npm run db:build -- --years 2025,2026 # fetches from the official source, builds SQLitedb:build는 balanca.economia.gov.br에서 파일을 직접 가져옵니다. 이 패키지는 어떤 데이터도 재배포하지 않습니다 — 데이터베이스는 항상 출처에서 갓 가져온 상태로 여러분의 머신에 구축됩니다.
네 가지 도구
도구 | 기능 |
| 연도, 월, 국가, HS 코드 및 채널별 가치, 중량, 가치 밀도. |
| 채널별 신고 운임 및 보험: US$/kg 및 FOB 대비 %. 수입 전용. |
| 데이터셋의 알려진 결함, 증거, 수정 규칙 및 발행 전 체크리스트. |
| 국가, HS 코드, 운송 모드 및 통관 단위 해석 (공항/항구 분류 포함). |
검증
집계 결과는 교차 구현으로 검증되었습니다. 동일한 부분을 원시 CSV에 대한 단일 awk 패스와 이 서버의 SQL 뷰로 처리하면 마지막 자릿수까지 동일한 수치가 생성됩니다 (349,250개 레코드, 7개 채널, 운임 및 중량 값).
npm test # 12 tests covering the classification logic and the caveat registryMIT. 데이터: Comex Stat, Brazilian Foreign Trade Secretariat / Federal Revenue Service. 저자: Luis Delfin
Available Tools
4 toolscomex_data_caveatsA
Defeitos conhecidos do dataset do Comex Stat, cada um com evidencia quantificada, regra de correcao e procedencia da verificacao. Use ANTES de publicar qualquer numero derivado desta fonte — inclui o checklist de conferencia. Esta tool responde a pergunta que um wrapper de dados nunca responde: este campo quer dizer o que parece?
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Um caveat especifico. Vazio = todos. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of disclosure. It accurately describes a safe read-only behavior (retrieving caveat metadata) and discloses the internal structure of each result (evidence, correction rule, provenance). For a low-risk retrieval tool there is little behavioral hazard left uncovered.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with purpose and usage, and the essential guidance fits in three sentences. The closing rhetorical question adds rhetorical color but no operational information, making it mildly less economical than it could be.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with one optional enum parameter and no output schema, the description is reasonably complete: it explains what the results contain, when to invoke it, and the overall QA intent. It does not specify the return format, but that is a minor gap for this information-retrieval use case.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%: the single 'id' parameter carries an enum and a clear explanation ('Um caveat especifico. Vazio = todos.'), so the schema already documents the parameter. The description adds no additional parameter-level detail, matching the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool exposes known defects of the Comex Stat dataset, each with quantified evidence, a correction rule, and verification provenance. It positions itself against 'a data wrapper' generically, distinguishing its QA purpose from the sibling trade-flow/freight tools, though it never names those siblings explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives explicit when-to-use guidance ('Use ANTES de publicar qualquer numero derivado desta fonte') and mentions a built-in conferencing checklist. However, it does not state when NOT to use it or name the alternatives (comex_trade_flow, comex_freight_cost) that it should be paired with.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
comex_freight_costA
Frete e seguro DECLARADOS a aduana, por canal de transporte — em US$/kg e como % do valor FOB. Vem dos campos VL_FRETE e VL_SEGURO dos arquivos de importacao, que os resumos publicados descartam: e a melhor medida sistematica de custo realizado disponivel publicamente. Somente importacao (os arquivos de exportacao nao trazem frete). O canal 'air' ja esta corrigido pelo ponto de despacho.
| Name | Required | Description | Default |
|---|---|---|---|
| ncm | No | NCM completo ou prefixo. | |
| years | No | Anos, ex: [2025, 2026]. | |
| months | No | Meses 1-12. Vazio = todos. | |
| group_by | No | Dimensoes extra (o canal ja entra sempre). | |
| countries | No | Codigo, nome ou ISO3 do pais de origem. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral disclosure burden. It discloses the data source (VL_FRETE and VL_SEGURO fields), the fact it is import-only, that air is corrected by despatch point, and the output units (US$/kg and % of FOB). It does not describe the response shape or potential limitations like missing data or aggregation behavior, but the key behavioral facts are present. A score of 4 reflects that the description goes beyond a bare statement of function.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences, each earning its place: the first defines the product and units, the second explains provenance and why it is valuable, the third states constraints (import-only and air correction). It is front-loaded with the core definition and avoids redundant words. No fluff or repetition of schema content. This is concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 5 parameters, no output schema, and no annotations. The description effectively communicates what the tool provides, but it does not describe the return format (e.g., whether it returns a table per channel, time series, or aggregated values). Since there is no output schema, the agent is left guessing at the response structure. While the core semantics are clear, the agent may need additional guidance on what to expect, making it incomplete for a complex data tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% for all 5 parameters, so the baseline is 3. The description does not add parameter-specific semantics beyond the schema; it mentions the channel is always included (which relates to group_by) but does not explain details like how NCM prefix matching works or how to combine years/months. The schema already describes each parameter clearly. Thus the description adds no extra value for parameter understanding.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific resource (freight and insurance declared to customs by transport channel) and clearly distinguishes it from siblings by emphasizing it is the best systematic measure of realized cost. The verb is implicit ('provides') but the scope and source are explicit. It differentiates itself from comex_trade_flow (which likely covers flows) and comex_data_caveats (which explains caveats). This is a clear, distinct purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives a clear constraint: only imports, with export files lacking freight. It also states the air channel is corrected, which is a usage detail. It implies the tool should be used when realized cost is needed ('melhor medida sistematica de custo realizado'), but it does not explicitly name alternatives or say when not to use it. Thus it provides clear context and a condition, but stops short of explicit when-to-use vs. when-not-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
comex_resolve_codeA
Resolve codigos oficiais para nomes e vice-versa: pais, NCM, modal de transporte (VIA) e unidade da Receita de despacho (URF, com sua classificacao aeroporto/porto/outra). Necessario porque o dataset e todo codificado.
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Tipo de codigo. | |
| limit | No | Maximo de resultados (default 20). | |
| query | Yes | Codigo exato ou parte do nome. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full responsibility for behavioral disclosure. It mentions bidirectional resolution and the URF classification, which adds specific context. However, it does not disclose return format, error handling, or whether partial matches are supported. For a simple lookup this is adequate but not comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences. The first states the core function and lists the code types, the second provides the rationale. There is no wasted wording, and the key action is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (3 parameters, no output schema, no annotations), the description is essentially complete. It covers purpose, scope, and rationale. It could mention the return structure (e.g., list of matches) but the bidirectional resolver nature makes that non-critical for an agent to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3. The description adds value by explaining what each kind represents (e.g., VIA is modal de transporte, URF includes classification aeroporto/porto/outra) and clarifies that query can be a code or a name. This enriches the parameter semantics beyond the schema alone.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb 'Resolve' with the resource 'codigos oficiais para nomes e vice-versa' and enumerates the exact code types (pais, NCM, VIA, URF) including URF's classification. This clearly distinguishes it from sibling tools like comex_trade_flow or comex_freight_cost, which handle completely different operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear context: the dataset is all coded, so the tool should be used whenever codes need translating. While it doesn't explicitly state alternatives or when not to use it, the sibling tools are not viable alternatives for this function, so the lack of exclusion is acceptable. The rationale is enough for an agent to infer when to invoke it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
comex_trade_flowA
Fluxo de comercio exterior do Brasil (valor, peso e densidade de valor) a partir dos microdados aduaneiros oficiais do Comex Stat. Filtra por ano, mes, pais, NCM e canal de transporte, e agrupa como pedido. O canal 'air' JA vem corrigido pelo ponto de despacho — o campo de modal do dataset e contaminado e nao pode ser usado cru. A resposta inclui sempre os caveats aplicaveis e a procedencia dos arquivos.
| Name | Required | Description | Default |
|---|---|---|---|
| ncm | No | NCM completo (8 digitos) ou prefixo, ex: '8517' ou '85'. | |
| flow | No | Sentido do fluxo. Default: import. | |
| limit | No | Maximo de linhas (default 50, max 500). | |
| years | No | Anos, ex: [2025, 2026]. | |
| months | No | Meses 1-12. Vazio = todos. | |
| channel | No | Canal corrigido. 'air' = modal aereo despachado em aeroporto. 'air_declared_at_port' expoe o bloco contaminado, para inspecao. | |
| group_by | No | Dimensoes de agrupamento. Default: ['year']. | |
| countries | No | Codigo, nome (PT/EN) ou ISO3. Ex: ['160'] ou ['China']. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses significant behavioral details: the 'air' channel is corrected by dispatch point because the dataset's modal field is contaminated and should not be used raw, and the response always includes applicable caveats and file provenance. This is valuable transparency about data quality and output structure. It does not cover all typical behaviors (e.g., read-only nature, pagination, rate limits), but the critical data correction and output caveat information is highly informative.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, two sentences, and front-loaded with the main purpose. The first sentence states the core function, filters, and grouping; the second adds critical caveats about channel correction and response contents. There is no fluff, and the structure is efficient. It earns a 4 rather than 5 because it could be slightly more structured with bullets, but it is already clear and compact.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of 8 parameters (all optional) and no output schema, the description covers key aspects: it specifies the metrics returned, the correction for the 'air' channel, and that responses always include caveats and file provenance. This is fairly complete for a data retrieval tool. However, it does not mention typical response format details (e.g., units, pagination, or whether results are aggregated by default), and it omits any prerequisites like authentication. These are minor gaps but not critical.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so all 8 parameters already have explanatory text in the schema. The description text itself does not add new semantics for parameters beyond what the schema provides, even though the channel parameter's complex behavior is fully explained in the schema. According to the rubric, when schema coverage is high, the baseline is 3, and the description adds no additional value here.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool provides Brazil foreign trade flow data (value, weight, and value density) from official Comex Stat microdata, including filters and grouping. It mentions the specific resource and the metrics returned, making the purpose evident. It lacks an explicit verb like 'retrieve' but the noun-based phrasing is still clear. It is distinguishable from siblings, which focus on freight, code resolution, and caveats.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not mention when to use this tool versus the sibling tools (comex_data_caveats, comex_freight_cost, comex_resolve_code). It provides no explicit conditions for selecting this tool over alternatives, nor any 'when not to use' guidance. The only implicit hint is that it covers trade flows, but that is not sufficient for guiding tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v0.1.0- First observed
comex_data_caveats - First observed
comex_freight_cost - First observed
comex_resolve_code - First observed
comex_trade_flow
TDQS
Scored across 4 tools
The four tools have clearly distinct purposes: trade flow provides aggregated trade metrics, caveats explains data quality issues, freight cost focuses specifically on freight/insurance, and resolve_code handles code translation. There is no ambiguity in their scopes, and each tool addresses a separate aspect of working with the Comex Stat dataset.
All tools share the consistent 'comex_' prefix, which helps identify the server's domain. However, the naming patterns vary: three use noun phrases (trade_flow, data_caveats, freight_cost) while one uses a verb (resolve_code). This is a minor deviation, but the uniform prefix and clear terminology keep the set predictable.
With only four tools, the server is tightly scoped to the essential needs of querying Comex Stat data and understanding its caveats. Each tool is necessary and covers a distinct functional area, so the count is well-suited for the server's purpose without unnecessary bloat or trivial additions.
The tools cover the core workflows: querying trade flow, obtaining freight cost details, validating data quality through caveats, and resolving official codes. A minor gap is that freight data is only available for imports, but this is clearly stated and not a flaw in the tool design. Overall, the surface is sufficient for common analytical tasks.
Maintenance
Related MCP Connectors
Brazil Comex Stat MCP — Brazilian foreign trade statistics from MDIC (Ministério do…
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
AI-powered commodity price forecasts and Brazil trade intelligence via MCP. Access Brazilian exports and imports from MDIC/ComexStat since 2000, by HS4, HS6 and NCM code, partner country, USD FOB and kilograms — plus crop production, supply & demand, climate data and production forecasts for major commodities including soybeans, coffee, corn, beef and cocoa. Compare trade flows, markets, countries and time periods with like-for-like windows. Every answer identifies the measurement period and data source. 15 read-only tools. Metered in credits. Connect directly via Streamable HTTP — no installation required: https://mcp.kyrodata.com/mcp Authentication: Bearer key or OAuth 2.1 (PKCE). Official MCP registry: com.kyrodata/kyrodata
Trade Intel MCP — Compound tools that chain Comtrade, Census, Treasury,
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAccess UN Comtrade international merchandise and services trade statistics via MCP tools for country lookups, HS commodity search, bilateral trade flows, balances, rankings, and data availability.530 npm4Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables querying official Brazilian Federal Revenue data on foreign trade habilitation (Radar), allowing users to check habilitation status directly from the official source. Read-only MCP server with a single consultation tool.MIT
- FlicenseCqualityBmaintenanceEnables read-only access to official Brazilian government procurement data from Compras.gov.br and the PNCP, covering all cataloged public GET endpoints through MCP tools.1751-
- AlicenseAqualityBmaintenanceBrazilian foreign trade from MDIC/ComexStat -- exports and imports since 2000 by HS code (SH4/SH6/NCM) and partner country, in USD FOB and kilograms -- plus crop production, supply-and-demand balances, climate readings and commodity forecasts for hubs such as soybean, coffee and beef. 15 read-only tools, remote at https://mcp.kyrodata.com/mcp; official registry com.kyrodata/kyrodata.151MIT