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.
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.dbviaDATABASE_URL). - Zero-Friction Setup: Powered by
uvfor 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
- Clone or download this project repository to your local machine.
- Navigate to the project directory in your terminal:
cd path/to/budget-mcp - Initialize/Sync dependencies (optional, as
uv runhandles 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.