Kolada MCP Server
Kolada MCP Server enables seamless integration between Large Language Models (LLMs) and Kolada, Sweden’s comprehensive municipal and regional statistical database. It provides structured access to thousands of Key Performance Indicators (KPIs), facilitating rich, data-driven analysis, comparisons, and explorations of public sector statistics.
Overview
Kolada MCP Server acts as intelligent middleware between LLM-based applications and the Kolada database, allowing easy querying and analyzing of data related to Swedish municipalities and regions. With semantic search capabilities and robust analysis tools, Kolada MCP significantly simplifies navigating and interpreting the vast array of KPIs in Kolada.
Example Queries
Ask Kolada MCP Server complex questions requiring data analysis:
- Where in Sweden should a family move to find affordable housing, good schools, and healthcare?
- Investigate the connection between unemployment and mental illness in Västernorrland.
- Identify municipalities with the highest increase in preschool quality over the last five years.
- Create a dashboard visualizing municipalities with the best and worst public transportation.
Features
- Semantic Search: Natural language queries for KPIs.
- Category Filtering: Access KPIs grouped by thematic areas.
- Municipal & Regional Data Retrieval: Fetch KPI data or historical time series.
- Multi-Year Comparative Analysis: Evaluate KPI performance changes across municipalities.
- Cross-KPI Correlation: Analyze relationships between KPIs.
Available Tools
- list_operating_areas: Retrieve available KPI categories.
- get_kpis_by_operating_area: List KPIs under a category.
- search_kpis: Discover KPIs using semantic search.
- get_kpi_metadata: Access detailed KPI metadata.
- fetch_kolada_data: Retrieve KPI values.
- analyze_kpi_across_municipalities: In-depth municipal KPI analysis.
- compare_kpis: Evaluate KPI correlations.
- list_municipalities: List municipality IDs and names.
Quick Start
Kolada MCP Server includes pre-cached KPI metadata. Delete kpi_embeddings.npz to refresh.
Installation
Use uv to install Kolada MCP dependencies:
uv sync
Running Locally for Development
Start the server locally:
uv run mcp dev server.py
Open MCP Inspector at http://localhost:5173 to test and debug.
Claude Desktop Integration
Edit your claude_desktop_config.json to add Kolada MCP Server:
Docker Image (Local Build)
"KoladaDocker": {
"args": [
"run",
"-i",
"--rm",
"--name",
"kolada-mcp-managed",
"kolada-mcp:local"
],
"command": "docker",
"env": {}
}
Prebuilt Container via PyPI
"KoladaPyPI": {
"args": ["kolada-mcp"],
"command": "/Users/hugi/.cargo/bin/uvx"
}
Local UV Execution (without Docker)
Replace [path to kolada-mcp] with your local directory:
"KoladaLocal": {
"args": [
"--directory",
"[path to kolada-mcp]/src/kolada_mcp",
"run",
"kolada-mcp"
],
"command": "uv"
}
Restart Claude Desktop after updating.
Contributing
Contributions are welcome! Submit issues, enhancements, or PRs on GitHub.
Disclaimer
Kolada MCP Server is independently developed, not endorsed by or affiliated with RKA or other organizations.
License
Kolada MCP Server is licensed under the Apache License 2.0.
Metadata
Release files for kolada-mcp 0.1.36
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kolada_mcp-0.1.36.tar.gz | 17.9 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kolada_mcp-0.1.36-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.7 MB
Release files / kolada_mcp-0.1.36.tar.gz
| Download URL | kolada_mcp-0.1.36.tar.gz |
|---|---|
| Size | 17.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b83be866feac8d8e8f82e39ac88bfa2a96fd363156b3a54fd0aafc45729c3b6
|
|
BLAKE2b-256 checksum How to use checksums |
70a69b46c8414f5c490226910ec68b409be7f5ba06c03ba8246964815a4770a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2025.
Transparency logRelease files / kolada_mcp-0.1.36-py3-none-any.whl
| Download URL | kolada_mcp-0.1.36-py3-none-any.whl |
|---|---|
| Size | 17.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17ec6451166eb4f2a3da81120f03e3dafb3310804919b4a0dfc2dd65492877f8
|
|
BLAKE2b-256 checksum How to use checksums |
9604a5e9569c7cccac3474cc00d1ac067f8661960a198e0b3855a74c198b8d7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2025.
Transparency logSecurity for kolada-mcp 0.1.36
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kolada_mcp-0.1.36.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.