Foreign Trade MCP
LV EN
Foreign Trade MCP

Latvia Foreign Trade Statistics MCP Server

Query Latvian import and export data through AI assistants. Annual and monthly trade by partner country, HS/CN commodity code, with values in euros and weight in kilograms.

Quick Connect

Add to your AI client — no API key required:

{
  "mcpServers": {
    "latvia-foreign-trade": {
      "url": "https://mcp-ft.stat.gov.lv/mcp"
    }
  }
}

Streamable HTTP Free No auth

Available Tools

ToolPurpose
getContextGet database schema, table descriptions, join patterns, query examples
execute_sqlExecute read-only SQL queries against the trade database
explain_queryGet execution plan for a SQL query
list_objectsList available tables and views
get_object_detailsGet column definitions for a table

Database Tables

TableDescription
ft.impexp_dataAnnual import/export data: country, HS code, flow, value (EUR), weight (kg)
ft.impexp_data_mMonthly import/export data with same structure
ft.countriesCountry reference: ISO codes, names in English and Latvian
ft.hs_classificationHierarchical HS/CN product classification (2–8 digit codes)
ft.business_glossaryTrade terminology dictionary

Example Questions

  • What are Latvia’s top 10 export destinations?
  • Show monthly imports of machinery from Germany in 2024
  • Calculate the trade balance with EU countries
  • Which HS chapters had the highest export growth?
  • Compare food imports from Lithuania vs Estonia
  • What are the main commodities Latvia exports to the US?
  • Show seasonal patterns in agricultural exports
  • Which product categories have the largest trade deficit?

Data Source

Published by the Central Statistical Bureau of Latvia (Centrālā statistikas pārvalde). Data is free under CC BY 4.0.

Data is provided under CC BY 4.0 license.

mcp.stat.gov.lv · stat.gov.lv · data.stat.gov.lv