MCP server for Swedish statistical data discovery and export
Project description
Data Platform MCP Server
MCP (Model Context Protocol) server for AI agents to discover, fetch, and export Swedish statistical data.
Tools
- discover_datasets - AI-powered smart search for datasets
- get_dataset_details - Get measures, breakdowns, and time ranges
- fetch_data - Fetch actual data rows for direct answers
- build_export_link - Generate CSV/JSON download links
- build_search_link - Link to app search page
- build_session_link - Deep link to preload data in the app
Installation
The package is available on PyPI and installs automatically via uvx:
# No manual installation needed - uvx handles it automatically
# Just add to your MCP client config (see below)
For development:
cd backend/mcp-server
pip install -e .
Usage with MCP Clients
Add to your MCP client config:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"utforska-data": {
"command": "uvx",
"args": ["utforska-data-mcp"]
}
}
}
Windsurf (~/.codeium/windsurf/mcp_config.json):
{
"mcpServers": {
"utforska-data": {
"command": "uvx",
"args": ["utforska-data-mcp"]
}
}
}
Cursor/Cline: Same configuration format.
The package installs automatically on first use. No manual installation required!
Configuration
The server connects to the production backend by default. No environment variables needed for normal use.
For development:
MCP_BACKEND_URL- Backend API URL (default:https://data-platform-production.up.railway.app)MCP_APP_URL- Frontend app URL (default:https://utforskadata.se)MCP_DEFAULT_LANG- Default language (default:sv)
Example Flows
Quick Answer
discover_datasets("housing prices in Sweden")get_dataset_details(dataset_id)- check measures/breakdownsfetch_data(dataset_id, measure="Average price")- get data- Answer the question with the data
- Offer
build_export_link()andbuild_search_link()
Deep Dive
- Same as above
build_session_link(selections=[...])- create link to continue in app
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utforska_data_mcp-1.0.0.tar.gz.
File metadata
- Download URL: utforska_data_mcp-1.0.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d1597e3d12b5357cc5923cbe8b163aa7105ddcc56df0c212929e8cc7ba81a44
|
|
| MD5 |
28af346a19b0f4198a7f9eb7b088725a
|
|
| BLAKE2b-256 |
7af45c19742e5bb43a97c4cf5036a77013fbc8045c4caebb96cf08c478d1b90a
|
File details
Details for the file utforska_data_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: utforska_data_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fdfb0713f4d9d2e1d3fe4102fa4d17e29abe1f7d6cf3bd69b0b601e7cf78a6f
|
|
| MD5 |
33491128082aeb6b6f1b86ad25a6968b
|
|
| BLAKE2b-256 |
044bbc1dd255c9dab012af4b7391e34ff61365e99d185d7a6a139e42116ae064
|