budget-mcp

budget-mcp

A lightweight MCP server for managing personal finances locally. It allows users to log transactions, view summaries, manage categories, and interact with their budget via any MCP-compatible LLM client.

Category
Visit Server

README

๐Ÿ’ฐ Personal Budget MCP Server

A lightweight, locally-hosted Model Context Protocol (MCP) server for managing your personal finances. Built with Python, FastMCP, and SQLite, this server empowers any MCP-compatible LLM client to securely log transactions and analyze your budget directly on your machine.

โœจ Features

  • Local & Private: Financial data is stored in SQLite (in-memory by default, or locally in data/budget.db via DATABASE_URL).
  • Zero-Friction Setup: Powered by uv for lightning-fast, reproducible dependency management. No virtual environment headaches.
  • Universal Compatibility: Works seamlessly with Claude Desktop, Claude Code, Cursor, Goose, and any other MCP-compliant host.

๐Ÿ›  Available Tools

This server exposes the following tools to the connected LLM:

Tool Name Description Arguments
budget_dashboard Interactive UI application providing a category breakdown chart and searchable transaction table. month (optional str: 'YYYY-MM')<br>type (optional str: 'income' or 'expense')<br>limit (optional int, default 100)
add_transaction Logs a new income or expense to the database. amount (float)<br>category_id (int: valid category ID from list_categories)<br>description (str)<br>type (str: 'income' or 'expense', defaults to 'expense')<br>date (optional str: 'YYYY-MM-DD' or ISO string, defaults to current date)
get_summary Retrieves an aggregated financial summary (income, expense, net balance, and optional category breakdown). month (optional str: 'YYYY-MM')<br>start_date (optional str: 'YYYY-MM-DD')<br>end_date (optional str: 'YYYY-MM-DD')<br>category_id (optional int)<br>type (optional str: 'income' or 'expense')<br>by_category (optional bool, default False)
get_transactions Retrieves detailed transaction records based on filter criteria. category_id (optional int)<br>type (optional str: 'income' or 'expense')<br>month (optional str: 'YYYY-MM')<br>start_date (optional str: 'YYYY-MM-DD')<br>end_date (optional str: 'YYYY-MM-DD')<br>min_amount (optional float)<br>max_amount (optional float)<br>search (optional str)<br>limit (optional int, default 50)
update_transaction Updates an existing transaction record by ID. transaction_id (int)<br>amount (optional float)<br>category_id (optional int)<br>description (optional str)<br>type (optional str: 'income' or 'expense')<br>date (optional str: 'YYYY-MM-DD')
delete_transaction Removes a transaction record from the database by ID. transaction_id (int)
list_categories Lists active categories in the category library. type (optional str: 'expense' or 'income')
add_category Adds a new category to the category library. name (str)<br>type (optional str: 'expense' or 'income', default 'expense')<br>description (optional str)
update_category Updates an existing category's properties. category_id_or_name (str)<br>new_name (optional str)<br>type (optional str)<br>description (optional str)
delete_category Removes a category from the library. Denies deletion if active transactions are linked unless reassign_to_category_id is provided. category_id_or_name (str)<br>reassign_to_category_id (optional int)

๐Ÿš€ Prerequisites

You only need one thing installed on your system:

  • uv - An extremely fast Python package and project manager written in Rust.

๐Ÿ“ฆ Installation & Setup

  1. Clone or download this project repository to your local machine.
  2. Navigate to the project directory in your terminal:
    cd path/to/budget-mcp
    
  3. Initialize/Sync dependencies (optional, as uv run handles this dynamically):
    uv sync
    

(Note: By default, the server runs with an in-memory SQLite database (sqlite:///:memory:). To persist data to a file, set DATABASE_URL=sqlite:///data/budget.db in your .env file.)


๐Ÿ”Œ Connecting to MCP Clients

Because this server communicates over standard input/output (stdio), you must configure your AI client to execute it via uv.

Important: Always use the absolute path to the project directory so your client can find it from anywhere.

1. Claude Code (CLI)

Run this command in your terminal to globally register the server with Claude Code:

claude mcp add budget -- uv run --directory "/absolute/path/to/budget-mcp" server.py

(If you are on Windows and encounter path execution errors, point directly to the virtual environment python executable instead of using uv run.)

2. Claude Desktop

Add the following configuration to your claude_desktop_config.json file (located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "personal-budget": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/budget-mcp",
        "server.py"
      ]
    }
  }
}

3. Cursor IDE

In Cursor, go to Settings > Features > MCP, click Add New MCP Server, and configure it as follows:

  • Type: command
  • Name: budget-mcp
  • Command: uv run --directory "/absolute/path/to/budget-mcp" server.py

๐ŸŒ Using with Open WebUI

Open WebUI natively supports external tools via standard HTTP REST endpoints. To connect this standard I/O server to Open WebUI, you can use mcpo โ€” the official open-webui/mcpo proxy that instantly transforms your local MCP server into an OpenAPI-compatible endpoint.

1. Start the Proxy Server

Open your terminal, navigate to the project directory, and run:

uvx mcpo --port 8000 -- uv run server.py

This command temporarily downloads the mcpo proxy and executes your server, securely exposing your budget tools on http://localhost:8000.

2. Connect Open WebUI

Open your Open WebUI dashboard.

Navigate to Admin Panel > Settings > External Tools (or Workspace > Tools in newer versions).

Click + Add Connection.

Set the connection type to OpenAPI.

Enter the proxy URL:

  • If running natively: http://localhost:8000
  • If Open WebUI is in Docker: http://host.docker.internal:8000

Click Save.

Open WebUI will instantly pull down the API schema, allowing your LLM to manage your budget directly from the chat interface!


๐Ÿงช Testing Locally (Without an LLM)

You can use the official MCP Inspector to manually test the tools and ensure your SQLite database is working correctly:

npx -y @modelcontextprotocol/inspector uv run server.py

๐Ÿ“ License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured