Skip to main content

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 automatically. No configuration needed for normal use.

Example Flows

Quick Answer

  1. discover_datasets("housing prices in Sweden")
  2. get_dataset_details(dataset_id) - check measures/breakdowns
  3. fetch_data(dataset_id, measure="Average price") - get data
  4. Answer the question with the data
  5. Offer build_export_link() and build_search_link()

Deep Dive

  1. Same as above
  2. 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

utforska_data_mcp-1.0.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utforska_data_mcp-1.0.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file utforska_data_mcp-1.0.1.tar.gz.

File metadata

  • Download URL: utforska_data_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for utforska_data_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 54ec7b0e736da324ff831636fc37717b68f571aaf9525200a4290eb7b5b3bfc2
MD5 88ec293fab9b9679f6e688f55287f532
BLAKE2b-256 042541e3d96550ec80d2f36ccb0cce0b65957227f156e99f6787b6854a6da410

See more details on using hashes here.

File details

Details for the file utforska_data_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for utforska_data_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b805d109bf642be789a9a2113d8c3e4ef4253563dea07c17cb8f140a14909ec7
MD5 840b1dfd40f6ae19136f91a6245b13a4
BLAKE2b-256 ad90ac6586341f35af080e281cec6e6f18dc7002311c138fa27ffffba53c39f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page