About StatsMCP

StatsMCP is a free, open source MCP server that gives AI assistants official statistics from national statistics offices and Eurostat, with the source in every answer.

What StatsMCP is

StatsMCP is a free and open source MCP server. It connects AI assistants such as Claude, ChatGPT and Cursor to the public APIs of national statistics offices and Eurostat.

The assistant searches official tables, reads their variables and gets the figures. Every result names the source and links to the original table.

Why it exists

Official statistics are free to reuse, but each office has its own API, its own codes and its own languages. StatsMCP gives all of them one interface, so an assistant can answer with real figures and not with guesses.

How it works

The server has four tools: list_countries, search_tables, get_table_metadata and query_table. The hosted endpoints are read-only, need no sign-in and keep no logs.

You can also run the servers on your own computer from npm. Then your requests go only to the statistics office.

Who builds it

StatsMCP is an independent project. It is not affiliated with or endorsed by any statistics office. TianSphere builds and maintains it.

The code is under the MIT licence on GitHub. Contributions and proposals for new countries are welcome.