BudgetKey MCP Server logo

BudgetKey MCP Server

Organization
OpenBudget

A fastmcp server for open budget project

PublisherOpenBudget
Repositorybudgetkey-mcp
LanguagePython
Forks
13
Stars
12
Available tools
0
Transport typestdio, streamable-http
Categories
Links
  • Connect tools to AI workflows

    BudgetKey MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 13 forks from the linked repository.

BudgetKey MCP Server

An MCP (Model Context Protocol) server that provides access to the Israeli State Budget (BudgetKey) API through Claude and other AI assistants.

Overview

The BudgetKey MCP Server enables AI assistants to query and analyze Israeli budget data, including:

  • Budget Book Data (ספר התקציב) - Planned and executed state budget
  • Support Programs - Budgetary support programs provided by the state
  • Support Transactions - Individual payments under support programs
  • Procurement Contracts - Government contracts with suppliers
  • Entities - Information on organizations, companies, associations
  • State Revenues - Data on taxes, fees, and revenues
  • Budget Change Requests - Requests to modify the budget

Data is available from 1997 to 2025.

Features

The server provides three main tools:

DatasetInfo

Get comprehensive information about any dataset, including its columns and database schema. Always use this tool before querying a dataset.

Parameters:

  • dataset: Dataset ID (e.g., budget_items_data, contracts_data)

DatasetFullTextSearch

Perform free-text search on a dataset to find relevant items. Use this to locate textual identifiers before performing database queries.

Parameters:

  • dataset: Dataset ID
  • q: Search query text

DatasetDBQuery

Execute SQL queries on a dataset's database to retrieve precise information. Always include the item_url field to provide direct links to the data.

Parameters:

  • dataset: Dataset ID
  • query: PostgreSQL-compatible SQL query
  • page_size: Number of rows to return (default: 50)

Available Datasets

Dataset IDDescription
budget_items_dataBudget book data - planned and executed expense budget
support_programs_dataBudgetary support programs
supports_transactions_dataIndividual support payments to organizations
contracts_dataGovernment procurement contracts
entities_dataCorporations, companies, associations, local authorities
income_items_dataState revenues - taxes, fees, expected revenues
budgetary_change_requests_dataBudget change requests
budgetary_change_transactions_dataBudget change transactions

Installation

📖 For detailed integration instructions with Claude Desktop, VS Code, Cursor, and other clients, see the Integration Guide

Quick Start: Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "budgetkey": {
      "type": "http",
      "url": "https://next.obudget.org/mcp"
    }
  }
}

Restart Claude Desktop and you're ready to query Israeli budget data!

Using Docker

bash
docker run -p 8000:8000 ghcr.io/openbudget/budgetkey-mcp:latest

The server will be available at http://localhost:8000/mcp

Note: The Docker image is hosted on GitHub Container Registry under the OpenBudget organization.

From Source

bash
git clone https://github.com/OpenBudget/budgetkey-mcp.git
cd budgetkey-mcp
pip install -r requirements.txt
python server.py

Usage Examples

Example 1: Find Budget Information

  1. Use DatasetInfo with dataset="budget_items_data" to understand the schema
  2. Use DatasetFullTextSearch with dataset="budget_items_data" and q="חינוך" to find education-related items
  3. Use DatasetDBQuery to get precise data:
    sql
    SELECT year, code, title, net_allocated, net_executed, item_url
    FROM budget_items_data
    WHERE year = 2025 AND title LIKE '%חינוך%'
    ORDER BY net_allocated DESC
    LIMIT 10

Example 2: Find Organization Contracts

  1. Use DatasetInfo with dataset="entities_data" to understand entity structure
  2. Use DatasetFullTextSearch with dataset="entities_data" and q="אוניברסיטת תל אביב" to find the entity ID
  3. Use DatasetInfo with dataset="contracts_data" to understand contract schema
  4. Use DatasetDBQuery to query contracts for that entity

API Base URL

The server connects to: https://next.obudget.org

This can be customized via the BUDGETKEY_API_BASE environment variable.

Workflow

When using this MCP server, follow these steps:

  1. Identify: Determine which datasets and identifiers are needed
  2. Learn Schema: Use DatasetInfo to understand the dataset structure
  3. Search: Use DatasetFullTextSearch to find precise identifiers (if needed)
  4. Query: Use DatasetDBQuery with SQL to get the exact information
  5. Present: Include links to data using the item_url field and offer download links from download_url

Development

Project Structure

budgetkey-mcp/
├── server.py              # Main MCP server implementation
├── requirements.txt       # Python dependencies
├── Dockerfile            # Docker container definition
├── ci.sh                 # CI/CD build script
├── .github/
│   └── workflows/
│       └── deploy.yml    # GitHub Actions deployment
└── README.md             # This file

Building

bash
docker build -t ghcr.io/openbudget/budgetkey-mcp:latest .

CI/CD: The GitHub Actions workflow automatically builds and publishes Docker images to GitHub Container Registry on every push to main.

Testing

bash
# Start the server
python server.py

# Test the health check endpoint
curl http://localhost:8000/mcp/health

# To test MCP functionality, configure Claude Desktop to use http://localhost:8000/mcp
# or use an MCP client library to connect to the server

Contributing

Contributions are welcome! Please open issues or pull requests on the GitHub repository.

License

This project follows the same license as the BudgetKey project.

Links

Support

For questions or issues:

  • Open an issue on GitHub
  • Contact the BudgetKey team through the main website

Note: The server communicates efficiently in both Hebrew (עברית) and English, as the Israeli budget data contains information in Hebrew.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "openbudget-budgetkey-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "budgetkey-mcp"
      ]
    }
  }
}

Use BudgetKey MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once BudgetKey MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add BudgetKey MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the BudgetKey MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "openbudget-budgetkey-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "budgetkey-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the BudgetKey MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the BudgetKey MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use BudgetKey MCP Server to help me with this task?
BudgetKey MCP Server
Sure. I read it.
Here is what I found using BudgetKey MCP Server.

Option 2: Add an MCP server URL

Use this when BudgetKey MCP Server is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for BudgetKey MCP Server.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the BudgetKey MCP Server connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the BudgetKey MCP Server tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the BudgetKey MCP Server tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use BudgetKey MCP Server to help me with this task?
BudgetKey MCP Server
Sure. I read it.
Here is what I found using BudgetKey MCP Server.

Frequently asked questions

What is the BudgetKey MCP Server MCP server used for?

BudgetKey MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use BudgetKey MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use BudgetKey MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use BudgetKey MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With BudgetKey MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect BudgetKey MCP Server MCP to TypingMind?

BudgetKey MCP Server can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does BudgetKey MCP Server MCP provide in TypingMind?

BudgetKey MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use BudgetKey MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If BudgetKey MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇