Apiverket MCP Server

Apiverket MCP Server

Query Swedish public data from AI tools. Includes company data, SCB statistics, weather, transport, public agencies, and more through the Apiverket API.

Category
Visit Server

README

Apiverket MCP Server

<!-- mcp-name: io.github.vinvuk/apiverket-mcp -->

An MCP (Model Context Protocol) server that gives AI assistants access to 120+ Swedish public data endpoints via the Apiverket API. Works with Claude Code, Claude Desktop, Cursor, VS Code, and any MCP-compatible client.

What it does

Two tools, one goal: let AI assistants query Swedish public data using natural language.

Tool Purpose
govdata_discover Search and browse 120+ endpoints across 16 categories
govdata_query Call any endpoint and get structured JSON data

Ask "What's the weather in Stockholm?" or "Show train delays from Gothenburg" — the AI finds the right endpoint, fills in parameters, and returns the data. Use govdata_discover first instead of guessing /v1 paths.

Categories

Business & Companies, Culture & Media, Demographics, Economy & Finance, Education, Environment & Nature, Geography, Government & Safety, Health & Medicine, Jobs & Labor, Social Insurance, Telecom, Tourism, Transport & Infrastructure, Weather & Climate

Quick start

Claude Code / Claude Desktop

Add to your MCP config (~/.claude/claude_code_config.json or Claude Desktop settings):

{
  "mcpServers": {
    "apiverket": {
      "command": "node",
      "args": ["/path/to/apiverket-mcp/dist/index.js"],
      "env": {
        "GOVDATA_API_URL": "https://apiverket.se",
        "GOVDATA_API_KEY": "sk_test_demo"
      }
    }
  }
}

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "apiverket": {
      "command": "node",
      "args": ["/path/to/apiverket-mcp/dist/index.js"],
      "env": {
        "GOVDATA_API_URL": "https://apiverket.se",
        "GOVDATA_API_KEY": "sk_test_demo"
      }
    }
  }
}

npx (no install)

{
  "mcpServers": {
    "apiverket": {
      "command": "npx",
      "args": ["-y", "apiverket-mcp-server"],
      "env": {
        "GOVDATA_API_URL": "https://apiverket.se",
        "GOVDATA_API_KEY": "sk_test_demo"
      }
    }
  }
}

Build from source

git clone https://github.com/vinvuk/apiverket-mcp.git
cd apiverket-mcp
npm install
npm run build

Configuration

Variable Default Description
GOVDATA_API_URL http://localhost:3010 Apiverket API base URL
GOVDATA_API_KEY sk_test_demo API key (sk_test_* for sandbox, sk_live_* for production)

The test key (sk_test_demo) returns sandbox data for all endpoints — no signup required.

Tools

govdata_discover

Search and browse available endpoints. This is the first tool agents should call when they do not already know the exact Apiverket path.

# List all categories
govdata_discover()

# Search by keyword
govdata_discover(query: "electricity prices")

# Browse a category
govdata_discover(category: "Weather & Climate")

# Search within a category
govdata_discover(query: "forecast", category: "Weather")

govdata_query

Call any endpoint with parameters.

# Current weather
govdata_query(endpoint: "/v1/weather/{city}", path_params: {city: "stockholm"})

# Job search
govdata_query(endpoint: "/v1/jobs/search", query_params: {q: "developer", limit: 5})

# Exchange rates
govdata_query(endpoint: "/v1/rates")

# Train departures
govdata_query(endpoint: "/v1/transport/trains/{station}", path_params: {station: "Cst"})

# Electricity prices by area
govdata_query(endpoint: "/v1/energy/electricity/{area}", path_params: {area: "SE3"})

# Company lookup
govdata_query(endpoint: "/v1/companies/{orgNumber}", path_params: {orgNumber: "5568710426"})

# Police events
govdata_query(endpoint: "/v1/police/events", query_params: {limit: 10})

# VAT validation
govdata_query(endpoint: "/v1/vat/{vatNumber}", path_params: {vatNumber: "SE556871042601"})

How it works

  1. The MCP server runs as a local process using stdio transport
  2. Your AI client sends tool calls via the MCP protocol
  3. govdata_discover searches the built-in endpoint catalog (no API call needed)
  4. govdata_query makes authenticated HTTP requests to the Apiverket API
  5. Responses over 25,000 characters are truncated with pagination guidance

Requirements

  • Node.js >= 18
  • An Apiverket API key (or use sk_test_demo for sandbox)

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured