Skip to main content
Glama
bjornwalther

statsbudget-mcp

by bjornwalther

statsbudget-mcp

MCP server for the Swedish national budget (statsbudgeten). Provides structured, queryable access to budget allocations, tax revenue, and fiscal data.

Data Sources

Source

What

Format

Coverage

SCB PxWeb API

Tax revenue by type, tax quota/GDP

JSON (POST)

1950-2025

Statskontoret Oppna Data

Budget outcome per expenditure area

CSV

2006-2025

Riksdagen Oppna Data

Votes, documents, propositions

JSON

All sessions

Related MCP server: Kolada MCP Server

MCP Tools

  • get_budget_overview(year) - total income/expenditure, all 27 areas

  • get_expenditure_area(area_id, year) - drill-down into appropriations

  • compare_budgets(year_a, year_b) - delta between years

  • get_revenue(year) - tax revenue by type (labour, capital, consumption)

  • get_revenue_timeseries(from_year, to_year) - time series

  • get_laffer_data(tax_type?) - tax rate vs revenue as % of GDP

  • get_votes_on_budget(year, area_id?) - voting results

  • search_budget_decisions(query) - free-text search

Installation

# From PyPI (once published)
uvx statsbudget-mcp

# Development
git clone https://github.com/bjornwalther/statsbudget-mcp.git
cd statsbudget-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

Development

# Run tests (unit only)
pytest tests/ -m "not integration"

# Run all tests including SCB API integration
pytest tests/

# Lint
ruff check src/ tests/

Architecture

src/statsbudget_mcp/
|-- __init__.py
|-- server.py          # FastMCP server + tool definitions
|-- scb_client.py      # SCB PxWeb API client
|-- statskontoret.py   # Statskontoret CSV client (budget outcomes)
|-- riksdagen.py       # Riksdagen API client (votes, documents)
|-- cache.py           # SQLite local cache

License

MIT

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides access to 5,000+ Key Performance Indicators across 264 operating areas for all Swedish municipalities and regions, enabling statistical analysis, comparisons, and trend tracking of Swedish public sector data.
    21
    33
    12
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Provides access to Sweden's comprehensive municipal and regional statistics database with semantic search capabilities. Enables natural language queries against thousands of Key Performance Indicators covering various aspects of Swedish public sector data.
    16
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    An MCP server that provides tools for querying Swedish monetary-policy data from Sveriges Riksbank, including GDP, unemployment, CPI, and policy rates, enabling LLMs and clients to fetch economic indicators and forecasts.
    2
    Apache 2.0
  • F
    license
    -
    quality
    C
    maintenance
    Enables LLMs to query and retrieve real-time open data, documents, protocols, and records from the Swedish Parliament (Riksdag) and Government Offices through 32 specialized MCP tools.
    28

View all related MCP servers

Related MCP Connectors

  • Riksdagen (Swedish Parliament) open data MCP.

  • MCP server for Statistics Sweden (SCB) - 1200+ tables with population, economy, environment data

  • MCP server for US Treasury Fiscal Data — debt, interest rates, exchange rates, and spending.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bjornwalther/statsbudget-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server