Free and open source
Switzerland: official statistics in your AI assistant.
Search 619 tables from Swiss Federal Statistical Office. Data under Open use, source required. Free, no sign-up.
Switzerland · Swiss Federal Statistical Office
https://statsmcp.dev/ch/mcpLiveEU and EFTA · Åland Islands · Australia · Belgium · Brazil · Canada · Croatia · Czechia · Denmark · Estonia · Faroe Islands · Finland · France · Iceland · Ireland · Kosovo · Lithuania · Luxembourg · Moldova · Netherlands · North Macedonia · Norway · Poland · Portugal · Slovenia · Spain · Sweden · Switzerland · United Kingdom
You
How many people live in Switzerland?
Claude
search_tablesget_table_metadataquery_table
Permanent resident population, persons
Switzerland had a permanent resident population of 9,127,125 at the end of 2025. At the end of 2024, it was 9,051,029.
Source: Swiss Federal Statistical Office, STAT-TAB, table px-x-0102010000_101
How it works
- Step 1 · search_tables
Find the table
The assistant searches thousands of official tables by keyword.
- Step 2 · get_table_metadata
Read the variables
It reads the periods, regions and measures, and finds the codes.
- Step 3 · query_table
Get the figures
It gets the data with readable labels, the source and a link to the table.
Connect in under a minute
Streamable HTTP · read-only · no sign-in · 60 requests/min
- Open Settings, then Connectors.
- Select Add custom connector.
- Name it StatsMCP CH and paste the endpoint.
- Ask a question about Switzerland.
https://statsmcp.dev/ch/mcp
- Turn on developer mode in Settings.
- Open Connectors, then Create.
- Paste the endpoint. Choose no authentication.
https://statsmcp.dev/ch/mcp
- Run the command in your terminal.
- Run /mcp to check the connection.
claude mcp add --transport http statsmcp-ch https://statsmcp.dev/ch/mcp
- Select Add to Cursor, or add the block to .cursor/mcp.json.
{
"mcpServers": {
"statsmcp-ch": {
"url": "https://statsmcp.dev/ch/mcp"
}
}
}- Select Install in VS Code, or add the block to .vscode/mcp.json.
- Start the server from the MCP panel.
{
"servers": {
"statsmcp-ch": {
"type": "http",
"url": "https://statsmcp.dev/ch/mcp"
}
}
}- Add a remote server of type http or streamable-http.
- Use the endpoint. No authentication.
{
"mcpServers": {
"statsmcp-ch": {
"url": "https://statsmcp.dev/ch/mcp"
}
}
}- You need Node.js 20 or later.
- Add this command as a stdio server.
npx -y @statsmcp/bfs
Questions
Is it free?
Yes. The hosted endpoints are free, with a limit of 60 requests per minute. The code is under the MIT licence.
Is StatsMCP official?
No. StatsMCP is independent and is not affiliated with or endorsed by any statistics office. The data comes directly from each office's public API.
Do you store my questions?
No. We keep no logs, and this website uses no cookies or analytics. Your assistant sends only search words and table codes to our server. Your AI provider still sees your conversation. Read the privacy page.
Can I connect several countries?
Yes. Connect https://statsmcp.dev/mcp once and ask about any country. To use only one office, connect its own endpoint from the Countries page. Connect to only one office
Can I run it on my own computer?
Yes. The servers are on npm. Open the Run locally tab in Connect. Then your questions go only to the statistics office.
How can my country be added?
Open an issue on GitHub. We can add most offices that have a public API.