Integration · Company data
Connect Claude & ChatGPT to SCB Statistics Sweden
Ask your AI for official Swedish statistics and get the numbers from Statistics Sweden (SCB). It searches SCB's tables by keyword, reads a table's variables and value codes, and fetches exactly the data you ask for. It can return the result in formats such as CSV or JSON-stat2.
Free plan, no credit card. Takes about a minute.
Try asking
“Find SCB tables about population by municipality.”
The AI searches SCB's tables for the words and lists the matches with their table IDs.
“Which tables about KPI were updated in the last week?”
It searches tables for KPI and limits the search to recently updated ones.
“What can I select in this table?”
It reads the table's metadata and lists the variables and the value codes for each one.
What your AI can do
Find tables
Search Statistics Sweden's tables by keyword and limit the search to tables updated in the past days.
Understand a table
Read the title, period, last update, variables, value codes, default selection and codelists before you fetch.
Fetch the data
Get data with the default selection, chosen value codes or a detailed selection, in formats such as CSV or JSON-stat2.
“Give me the population of Stockholm and Göteborg for the last five years as CSV.”
It reads the table metadata, picks the codes for the two regions and the years, and fetches the data as CSV.
“When was this table last updated, and what period does it cover?”
It reads the table's basic information: title, period covered, last update and source.
“Show me the default view of this table first.”
It gets the table's default selection, a quick starting point before narrowing the query.
12 tools for SCB Statistics Sweden
These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.
create_savedqueryChanges dataCreate a new savedquery. Required: selection, language or table id.get_codelistGet a codelist by `codelist_id`, e.g. an alternative grouping of regions or ages listed in a table's metadata.get_savedqueryGet one savedquery by savedquery id.get_tableGet basic information about one table by `table_id`: title, period covered, last update and source.get_table_dataFetch data from a table by `table_id`; without filters it returns the default selection. Use `valuecodes` to choose values per variable and `output_format` (e.g. csv or json-stat2).get_table_default_selectionGet the default selection of variables and values for a table by `table_id`, a quick starting point for a data query.get_table_metadataGet a table's variables and their value codes by `table_id`. Read this before fetching data so you know which codes to select.list_configsList configs.list_savedquery_dataList data for a savedquery. Optional filters: output format or output format params.list_savedquery_selectionsList selections for a savedquery.query_table_dataChanges dataFetch data from a table by `table_id` with a detailed `selection` (variable codes and value codes per variable). Read-only; use it for larger or more exact queries than get_table_data.search_tablesSearch Statistics Sweden (SCB) tables by words in `query`, e.g. 'befolkning' or 'KPI'; `past_days` limits to recently updated tables. Returns table IDs.
Set up in three steps
- 1
Pick the app
Create a free PipMCP account and choose SCB Statistics Sweden from the app list.
- 2
Paste your key
No account or API key needed. Statistics Sweden's PxWebApi 2 is open data, so you only pick the app in PipMCP to get your MCP link. SCB asks users to respect its request limits.
- 3
Add the link to your AI
You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:
- Click your name, then Settings › Connectors › Add custom connector.
- Paste your link as the Remote MCP server URL.
- Switch it on from the + menu in a chat.
Questions
What can the AI do in SCB Statistics Sweden?
It can search SCB tables, read a table's information, metadata, default selection and codelists, and fetch data from a table with simple or detailed selections. All tools only read.
Does the AI see my SCB Statistics Sweden credentials?
There are none to see. The SCB PxWebApi API needs no account or API key, so you do not paste anything into PipMCP. The AI only sees the results of the tools it calls.
Can I control what the AI is allowed to do?
Yes. You choose which tools are switched on. All tools here only read public statistics, so nothing is changed anywhere. Every tool call is logged.
Does it work with ChatGPT?
Yes. In ChatGPT, open Settings › Apps & Connectors › Advanced, turn on Developer mode and add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.
What does it cost?
PipMCP has a free plan with no credit card required. Paid plans bill per completed task. Statistics Sweden's PxWebApi itself is open data and free to use.
How does the AI pick the right numbers from a table?
An SCB table has variables, such as region or year, and each variable has value codes. The AI reads the table's metadata first to learn those codes, then asks only for the values you need. That keeps answers exact and the queries small.
Related integrations
Let your AI work in SCB Statistics Sweden today.
Start free. Your key stays encrypted, and you decide what the AI may do.
Connect SCB Statistics Sweden freePipMCP is not affiliated with SCB Statistics Sweden. Product names are trademarks of their owners.






