Kolada MCP Server
aerugo/kolada-mcp · 16 stars · Python
MCP server An MCP server for Kolada.
Install
The repo has no one-line install. Follow its README.
Files
Kolada MCP Server
A clean, standalone MCP (Model Context Protocol) server for Sweden's Kolada municipal statistics API.
Overview
This server provides AI applications with access to Sweden's comprehensive municipal and regional statistics database. It enables natural language queries against thousands of Key Performance Indicators (KPIs) covering various aspects of Swedish public sector data.
Features
- 9 MCP Tools for comprehensive data access
- Semantic Search using Swedish BERT embeddings
- No External Dependencies - fully standalone (no Mima or Redis)
- Containerized with Docker support
- Modern Python 3.11+ with type hints and async/await
Available Tools
| Tool | Description |
|---|---|
list_operating_areas |
List all KPI categories with counts |
get_kpis_by_operating_area |
Get KPIs within a specific category |
search_kpis |
Semantic search for KPIs using natural language |
get_kpi_metadata |
Get detailed metadata for a specific KPI |
fetch_kolada_data |
Fetch raw KPI data for municipalities |
analyze_kpi_across_municipalities |
Comparative analysis with rankings |
compare_kpis |
Compare two KPIs (difference or correlation) |
list_municipalities |
List municipalities/regions |
filter_municipalities_by_kpi |
Filter by KPI threshold |
Installation
Using pip
pip install -e .
Using Docker
docker-compose up -d kolada-mcp
Usage
Stdio Mode (Default)
kolada-mcp # or python -m kolada_mcp
HTTP Mode
MCP_TRANSPORT=http PORT=8001 kolada-mcp
Claude Desktop Integration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"kolada": {
"command": "kolada-mcp"
}
}
}
Configuration
Environment variables:
| Variable | Default | Description |
|---|---|---|
MCP_TRANSPORT |
stdio |
Transport mode (stdio or http) |
PORT |
8001 |
HTTP server port |
LOG_LEVEL |
INFO |
Logging level |
Development
Setup
# Create virtual environment python -m venv .venv source .venv/bin/activate # Install with dev dependencies pip install -e ".[dev]"
Running Tests
pytest
Code Quality
# Linting ruff check src tests # Type checking mypy src
Architecture
src/kolada_mcp/
├── __init__.py # Package init
├── __main__.py # Entry point
├── config.py # Settings (Pydantic)
├── server.py # FastMCP server
├── models/
│ └── types.py # Data models
├── services/
│ ├── kolada_client.py # API client
│ ├── embeddings.py # Semantic search
│ └── data_processing.py
└── tools/
├── metadata.py # KPI metadata tools
├── data.py # Data fetching tools
├── municipality.py # Municipality tools
└── comparison.py # Comparison tools
License
Apache-2.0
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 16
- Language
- Python
- Last push
- 2025-11-30
- Forks
- 2
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k