swedish-budget-mcp
v0.1.0MCP server for the Swedish national budget (statsbudgeten)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_budget_overview Get Budget Overview
Get the Swedish national budget outturn for a year. Returns actual expenditure outturn (not proposed budget), total income, balance, and all 27 expenditure areas in MSEK. Source: Statskontoret arsutfall (official statistics). balance_msek is income minus the sum of the 27 expenditure areas' outturn. It is NOT the official central-government budget balance (budgetsaldo), which also includes net lending and a cash adjustment from Riksgalden that this server does not source. See balance_note. total_expenditure_msek is the sum of the 27 areas' outturn. It is NOT "takbegransade utgifter" (the ex…
| Parameter | Type | Description |
|---|---|---|
year * | integer | Budget year. Expenditure available 1997-2025; total_income_msek/balance_msek only meaningful from 2006 (income data starts then). |
get_expenditure_area Get Expenditure Area
Drill down into a specific expenditure area. Returns all appropriations with budget vs outturn in MSEK. Source: Statskontoret. budget_msek is the decided budget, amendment_budgets_msek is amendments, outcome_msek is outturn. Neither the originally proposed budget nor ESV forecasts are available from this data source. The area total can be broader than a narrower media-defined category with a similar name (e.g. area 06 "Forsvar och samhallets krisberedskap" includes civil crisis preparedness alongside military defense, so it will not match a headline "forsvarsbudget" figure that covers milita…
| Parameter | Type | Description |
|---|---|---|
area_id * | string | Two-digit area ID (e.g. "06" for Defence). |
year * | integer | Budget year (1997-2025). |
compare_budgets Compare Budgets
Compare budget outturn between two years, per expenditure area. Both years are outturn data (never mixed with budget/forecast stages). delta_pct is null when the baseline year is zero or the area didn't exist that year, to avoid a misleading percentage.
| Parameter | Type | Description |
|---|---|---|
year_a * | integer | First year (baseline). |
year_b * | integer | Second year (comparison). |
get_biggest_changes Get Biggest Changes
Get the biggest outturn increases and decreases between two years. Built on the same comparison as compare_budgets - both years are outturn data, never mixed with budget/forecast stages. delta_pct is null when the baseline is zero or the area/appropriation didn't exist that year. Ties broken deterministically by ID.
| Parameter | Type | Description |
|---|---|---|
year_a * | integer | First year (baseline). |
year_b * | integer | Second year (comparison). |
area_id | If given, compare appropriations within this expenditure area instead of comparing the 27 areas. | |
top_n | integer | Number of increases and decreases to return each (default 5). |
sync_budget_data Sync Budget Data
Download and parse latest budget outturn. Persists data atomically to SQLite cache. Raises SyncError if either dataset is missing.
| Parameter | Type | Description |
|---|---|---|
year |
get_revenue Get Revenue
Get tax revenue breakdown for a specific year. Returns total and per-category (labour, capital, consumption) in MSEK. Source: SCB PxWeb API.
| Parameter | Type | Description |
|---|---|---|
year * | integer |
get_revenue_timeseries Get Revenue Timeseries
Get tax revenue timeseries by category. Source: SCB.
| Parameter | Type | Description |
|---|---|---|
from_year | integer | |
to_year | integer |
get_revenue_detail Get Revenue Detail
Get detailed tax revenue for specific types. Source: SCB.
| Parameter | Type | Description |
|---|---|---|
year * | integer | |
tax_types |
get_laffer_data Get Laffer Data
Get tax quota data: tax pressure vs GDP. Source: SCB.
| Parameter | Type | Description |
|---|---|---|
from_year | integer | |
to_year | integer |
get_laffer_timeseries Get Laffer Timeseries
Get tax quota timeseries with reform annotations.
| Parameter | Type | Description |
|---|---|---|
from_year | integer | |
to_year | integer |
get_tax_reforms Get Tax Reforms
Get list of major Swedish tax reforms.
get_sync_status Get Sync Status
Get data freshness information.
get_publication_schedule Get Publication Schedule
Get the Statskontoret data publication schedule.
get_available_years Get Available Years
Get list of years with loaded outturn data.
get_cache_stats Get Cache Stats
Get SQLite cache diagnostics.