Apiverket MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GOVDATA_API_KEY | No | API key (sk_test_* for sandbox, sk_live_* for production) | sk_test_demo |
| GOVDATA_API_URL | No | Apiverket API base URL | http://localhost:3010 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| govdata_discoverA | Search and browse available Swedish government data endpoints in the Apiverket API. Use this tool to find the right endpoint before calling govdata_query. The API covers 139 endpoints across 16 categories including weather, transport, economy, health, environment, parliament, police, education, and more. Args:
When called with no arguments, returns all available categories with endpoint counts. Examples:
Returns: Matching endpoints with their paths, parameters, and descriptions. |
| govdata_queryA | Call any Apiverket API endpoint to retrieve Swedish government data. Use govdata_discover first to find the right endpoint path and required parameters. Then call this tool with the endpoint path and any path/query parameters. Args:
Examples:
Returns: The API response as JSON, containing a "meta" envelope with request info and a "data" object with the actual data. Error handling:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| analyze_swedish_data | Template for analyzing Swedish government data — guides through discovery, querying, and analysis. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| endpoint-catalog | Complete list of all available Apiverket API endpoints with descriptions and parameters |
TDQS
Scored across 2 tools
The two tools serve clearly distinct purposes: govdata_discover for exploring available endpoints and govdata_query for retrieving data. No functional overlap exists.
Both tools follow a consistent govdata_verb pattern using snake_case, making their purpose predictable.
With only 2 tools for a domain covering 139 endpoints across 16 categories, the count is minimal but appropriate for the discover-query pattern. However, it may feel thin for the broad scope.
The pair covers the complete lifecycle: discovery then retrieval. For a read-only government data API, this is sufficient. Minor gaps like built-in pagination handling are mitigated by error messages.