Un Comtrade MCP Server
by un-comtrade.caseyjhand.com in Other
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
https://un-comtrade.caseyjhand.com/mcp- Tools
- 9
- open to any client
- Uptime
- 100%
- last 30 days
- Response time
- 461 ms
- 658 ms slowest 5%
- Last check
- Passed
- 5 h ago, next in 42 min
Reliability
Status and outage history · Atom feed · Watch with other listings
How to connect
Add it to any MCP client that supports remote servers.
{
"mcpServers": {
"un-comtrade-mcp-server": {
"type": "http",
"url": "https://un-comtrade.caseyjhand.com/mcp"
}
}
}9 tools
- comtrade_lookup_countries
Resolve country and area names to Comtrade M49 numeric codes used in all data queries. Accepts a partial name, full name, or ISO alpha-2/alpha-3 code (e.g. "United States", "USA", "US"). Returns matching entries with their numeric code, ISO identifiers, and a validAsReporter…
- comtrade_search_commodities
Find HS commodity codes by keyword, partial description, or known code prefix. Returns matched codes at the requested aggregation level (2-, 4-, or 6-digit) with full descriptions, parent code, leaf status, and a recommended_query_code field indicating the best code level for…
- comtrade_list_service_categories
List EBOPS 2010 service trade categories — the equivalent of comtrade_search_commodities for the services domain. Returns category codes, descriptions, and parent codes. Filter by keyword to find a specific service type (e.g. "transport", "financial", "travel"), or browse from a…
- comtrade_get_trade_flows
Fetch bilateral trade flow records — the primary data retrieval tool. Returns trade value in USD (primaryValue — FOB for exports, CIF for imports), quantity, net weight, and period/commodity/partner metadata for each row. Accepts multiple periods and commodity codes per call…
- comtrade_get_trade_balance
Compute the trade balance for a country over one or more periods — total exports minus total imports — with optional HS or SITC commodity filter. Preview makes two paced requests per served period; authenticated calls batch periods. Returns the signed balance (USD), export…
- comtrade_get_top_partners
Rank trading partners for a reporter by trade value for a given commodity and flow direction. Returns the top N partners sorted by descending value — answers "who does country X mainly export product Y to?" or "where does country X mainly import product Z from?" for a single…
- comtrade_get_top_commodities
Rank commodity categories for a reporter by trade value for a given flow direction and period. Returns the top N HS chapters (2-digit) or headings (4-digit) sorted by descending value — answers "what does country X mainly export?" or "what does country X mainly import?"…
- comtrade_get_data_availability
Check which reporter/period/classification combinations have published data before constructing expensive trade queries. Returns dataset records with period, classification, record count, and first/latest release dates. Call this before querying recent periods — annual data is…
- comtrade_get_services_trade
Fetch international trade-in-services data (EBOPS 2010 classification). Same bilateral structure as goods trade: returns flow value in USD, period, and reporter/partner/category metadata for each row. Use comtrade_list_service_categories to find the right service code before…
Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time |
|---|---|---|---|
| 5 h ago | Passed | 200 | 579 ms |
| 14 h ago | Passed | 200 | 569 ms |
| 22 h ago | Passed | 200 | 611 ms |
| 33 h ago | Passed | 200 | 658 ms |
| 44 h ago | Passed | 200 | 385 ms |
Show 10 older checks
| 2 days ago | Passed | 200 | 442 ms |
| 3 days ago | Passed | 200 | 398 ms |
| 3 days ago | Passed | 200 | 483 ms |
| 4 days ago | Passed | 200 | 484 ms |
| 4 days ago | Passed | 200 | 444 ms |
| 4 days ago | Passed | 200 | 431 ms |
| 5 days ago | Passed | 200 | 418 ms |
| 5 days ago | Passed | 200 | 609 ms |
| 6 days ago | Passed | 200 | 457 ms |
| 6 days ago | Passed | 200 | 461 ms |