
Apiverket
io.github.vinvukPublished by GitHub account vinvukv1.0.0Updated Nov 3, 2026
Query Swedish public data: companies, SCB statistics, weather, transport, and more.
Overview
Local MCP server that lets an assistant discover and query Swedish public data through the Apiverket API: companies, SCB statistics, weather, transport and…
- What you can do
- Search and browse the built-in catalog of supported Apiverket endpoints by topic or category, with workflow guidance on codes, coordinates, dates and pagination
- Call a discovered endpoint and get structured JSON back, with recovery guidance on errors and truncation notes on large responses
- Inspect the configured key's mode, tier, daily usage and remaining company-search and company-lookup quota
- Work through families such as transport, weather, geography and municipalities, jobs, government, culture, education and environment
- When to use it
- Useful when an assistant needs Swedish public-sector or company data — train departures, weather, municipality statistics, parliament documents, job listings or organisation-number lookups — and you want it fetched through one API rather than ad-hoc scraping.
- Requirements
- Runs locally over stdio via npx (Node.js 18 or newer). Needs an Apiverket API key in GOVDATA_API_KEY; the default sk_test_demo key returns sandbox data only, and a live key is needed for production data. GOVDATA_API_URL sets the API base URL. Network access to the Apiverket API is required.
Installation
In SourceWeft
- Open Apiverket in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Apiverket MCP Server
An MCP (Model Context Protocol) server that gives AI assistants access to Swedish public data through the Apiverket API. It works with Claude Code, Claude Desktop, Cursor, VS Code, Gemini CLI-style MCP clients, and other MCP-compatible tools.
What it does
Agents should call govdata_discover before govdata_query instead of guessing /v1 paths. After a 429 or when a user asks about limits, agents should call govdata_account.
How Agents Should Use Apiverket
- Discover: call
govdata_discoverwith the user's topic, not a guessed path. - Check context: call
govdata_accountfor quota, tier, and production-readiness questions. - Query: call
govdata_queryonly with a supported endpoint returned by discovery. - Recover: if a request fails, use the structured recovery guidance before retrying.
Discovery includes family workflows for transport, weather, geography, municipalities, jobs, government, culture, education, tourism, environment, and company data. These workflows explain search/list/detail patterns, required codes, coordinates, date formats, pagination, and common recovery steps.
Quick Start
Claude Code / Claude Desktop
Cursor / VS Code
Gemini CLI-Style MCP Config
Keys And Limits
sk_test_demo is for setup and safe sandbox responses. It is useful for checking that your MCP client is wired correctly, but production workflows should use a live key. Free live keys are good for exploration; upgrade when daily API or company-search limits block a real workflow.
Company Data With Agents
Company search and company lookup have different jobs:
- Use
govdata_discover(query: "company")to find the supported company endpoints. - Use
/v1/companies/searchwhen the user only has a company name or uncertain organisation number. - Cache the returned
org_number. - Use
/v1/companies/{orgNumber}for repeated enrichment and automation. - If company search returns 429, stop retrying until
reset_at; use lookup when org numbers are already known.
Company search and live company lookup have separate daily quota context by tier. govdata_account shows the configured key tier, remaining company-search quota, remaining company-lookup quota, reset time, and available upgrade tiers. Apiverket does not expose company board, officer, owner, or UBO subresource paths through the company API.
Common Family Workflows
Tool Examples
Build From Source
How It Works
- The MCP server runs locally over stdio.
govdata_discoversearches the built-in endpoint catalog without an API call.govdata_querycalls Apiverket with the configured API key.- Structured API errors are turned into recovery guidance for agents.
- Large responses are truncated with pagination guidance.
Requirements
- Node.js >= 18
- An Apiverket API key, or
sk_test_demofor sandbox setup
License
MIT
Source: README.md at commit 945a010
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts