# Latvia PX-Web General Statistics — MCP Server > Model Context Protocol server published by the Central Statistical Bureau > of Latvia (CSP), giving AI assistants direct access to 1,000+ official > Latvian statistical tables via the PX-Web API. ## Server - Endpoint: https://mcp-px.stat.gov.lv/mcp - Transport: Streamable HTTP - Authentication: None required (free, open access) ## Description Access 1,000+ official Latvian statistical tables via the PX-Web API. Covers population, economy, labour market, wages, education, health, environment, trade, business, and IT. Data from 1920 to present, with annual, quarterly, and monthly granularity. ## Tools 1. **getContext** — Get server documentation, workflow patterns, API structure 2. **choose_lang(lang)** — Set language: "en" or "lv" 3. **get_topics(name?, lang?)** — Browse statistical domains 4. **get_topic_content(topic, lang?)** — Get sub-categories within a domain 5. **get_titles(topic_content_code?, lang?, url?)** — List data tables 6. **get_tables_by_keyword(keyword, lang?)** — Search tables by keyword 7. **filter_by_code(code, lang?, url?)** — Filter tables by code pattern 8. **get_query_values(topic_params, lang?)** — Get dimensions and filter values 9. **get_csp_data(topic_params, query_filters?, lang?)** — Retrieve data 10. **construct_csp_link(params, lang?)** — Generate URL to data.stat.gov.lv ## Statistical Domains - POP: Population (demographics, births, deaths, migration) - EMP: Labour market (employment, unemployment, wages) - VEK: Economy (GDP, production, consumption) - TIR: Trade and services (retail, tourism) - ENT: Business (enterprises, entrepreneurship) - IZG: Education, culture and science - VES: Social security and health - NOZ: Industry sectors (agriculture, manufacturing) - ENV: Environment (climate, natural resources) - IKT: Information technologies - FIN: Well-being and equality indicators ## Workflow 1. getContext → 2. choose_lang("en") → 3. get_tables_by_keyword("population") → 4. get_query_values(["POP","IR","IRS","IRS010"]) → 5. get_csp_data(...) ## Connection ```json { "mcpServers": { "latvia-statistics": { "url": "https://mcp-px.stat.gov.lv/mcp" } } } ``` ## Publisher Central Statistical Bureau of Latvia (Centrālā statistikas pārvalde) https://stat.gov.lv