Connection Guide
How to connect your AI assistant to Latvian statistics MCP servers. No API key needed — just add the endpoint URL.
Server Endpoints
| Server | Endpoint URL | Transport |
|---|---|---|
| PX-Web General Statistics | https://mcp-px.stat.gov.lv/mcp |
Streamable HTTP |
| Foreign Trade Statistics | https://mcp-ft.stat.gov.lv/mcp |
Streamable HTTP |
| Human Capital Analytics | https://mcp-hc.stat.gov.lv/mcp |
Streamable HTTP |
Claude Desktop
Open Claude Desktop settings (Settings → Developer → Edit Config) and add the servers to your claude_desktop_config.json:
{
"mcpServers": {
"latvia-statistics": {
"url": "https://mcp-px.stat.gov.lv/mcp"
},
"latvia-foreign-trade": {
"url": "https://mcp-ft.stat.gov.lv/mcp"
},
"latvia-human-capital": {
"url": "https://mcp-hc.stat.gov.lv/mcp"
}
}
}Restart Claude Desktop after saving. The servers will appear in the MCP tools menu.
claude.ai (Web)
On claude.ai, go to Settings → Integrations → Add custom integration. Enter the endpoint URL for each server you want to connect:
https://mcp-px.stat.gov.lv/mcp
https://mcp-ft.stat.gov.lv/mcp
https://mcp-hc.stat.gov.lv/mcpVS Code (Copilot Agent Mode)
Add to your VS Code settings.json or workspace .vscode/mcp.json:
{
"mcp": {
"servers": {
"latvia-statistics": {
"type": "http",
"url": "https://mcp-px.stat.gov.lv/mcp"
},
"latvia-foreign-trade": {
"type": "http",
"url": "https://mcp-ft.stat.gov.lv/mcp"
},
"latvia-human-capital": {
"type": "http",
"url": "https://mcp-hc.stat.gov.lv/mcp"
}
}
}
}Cursor
In Cursor, go to Settings → MCP Servers → Add Server. Select "Streamable HTTP" as the transport and enter the endpoint URL:
https://mcp-px.stat.gov.lv/mcpRepeat for each server you want to connect.
ChatGPT
ChatGPT supports MCP servers through its Actions interface. In a Custom GPT or project, add a new action with the server endpoint. The MCP tools will be automatically discovered.
Any MCP Client
These servers use the standard Streamable HTTP transport defined in the Model Context Protocol specification. Any MCP-compatible client can connect by pointing to the endpoint URLs listed above.
No authentication required. All servers are free and open. No API key, token, or account needed. Data is provided under the CC BY 4.0 license by the Central Statistical Bureau of Latvia.
First Steps After Connecting
Once connected, try these prompts to verify the connection works:
- PX-Web: “What is Latvia’s current population?”
- Foreign Trade: “What are Latvia’s top 5 export partners?”
- Human Capital: “What are the most in-demand jobs in Latvia right now?”
Each server has a getContext tool that the AI will call automatically to understand the available data and query patterns.