Skip to main content

QuidClaw MCP

Your AI-powered Personal CFO.

Local-first. Privacy by design. Your data never leaves your machine.

QuidClaw MCP is an open-source MCP server that gives AI assistants the ability to manage your personal finances using Beancount double-entry accounting. Connect it to Claude, ChatGPT, or any MCP-compatible client — and you have a Personal CFO that tracks every dollar, generates reports, and keeps your books clean.

"Lunch was $12, paid with Apple Pay" → AI calls QuidClaw MCP → proper double-entry transaction recorded in your local ledger.

Chinese / 中文文档

Why QuidClaw MCP

  • Privacy first — All data stored locally as plain text. No servers, no cloud, no telemetry. Nothing ever leaves your machine.
  • You own your data — Standard Beancount .bean files you can read, edit, and version control. No vendor lock-in, no proprietary formats.
  • AI-powered, not AI-dependent — QuidClaw MCP is just tools. The intelligence comes from your AI client. Switch AI providers anytime.

How It Works

You ──(natural language)──→ AI Client ──(MCP)──→ QuidClaw MCP ──→ Beancount
                                                                  ↓
                                                          ~/.quidclaw/*.bean
  • You talk naturally to your AI assistant
  • AI understands your intent and decides which tools to call
  • QuidClaw MCP provides 10 MCP tools that read/write Beancount ledger files
  • Data is stored locally as plain text — you own it completely

QuidClaw MCP doesn't run any AI model. It's a bridge between your AI client and the Beancount accounting engine.

Features

  • Record transactions via natural language
  • Multi-currency support (USD, EUR, CNY, etc.)
  • Balance queries and reconciliation
  • Financial reports (income statement, balance sheet)
  • Flexible BQL (Beancount Query Language) queries
  • Price tracking for stocks, crypto, and forex
  • Interactive account setup for new users

Prerequisites

  • uv — Install with: curl -LsSf https://astral.sh/uv/install.sh | sh
  • An MCP client — Claude Desktop, Claude Code, Codex, or any MCP-compatible app.

Getting Started

Add QuidClaw MCP to your MCP client's config. Pick your client below:

Claude Desktop

Add to your claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "quidclaw-mcp": {
      "command": "uvx",
      "args": ["--python", "3.13", "quidclaw-mcp"]
    }
  }
}

Restart Claude Desktop.

Claude Code
claude mcp add quidclaw-mcp -- uvx --python 3.13 quidclaw-mcp
Codex

Codex runs MCP servers in a sandbox, so uvx won't work directly. Install first, then configure:

uv tool install --python 3.13 quidclaw-mcp

Add to ~/.codex/config.toml:

[mcp_servers.quidclaw-mcp]
command = "quidclaw-mcp"
args = []
type = "stdio"
Other MCP clients

QuidClaw MCP is a standard MCP server using stdio transport. Configure your client to run:

uvx --python 3.13 quidclaw-mcp

That's it. Your client will automatically download and run QuidClaw MCP on first launch.

Upgrade

QuidClaw MCP is downloaded fresh by uvx each time your client starts, so you'll always get the latest version automatically.

Install from source

For contributors or users who prefer not to use uv:

git clone https://github.com/thorb/quidclaw-mcp.git
cd quidclaw-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

Then use the full Python path in your client config:

{
  "command": "/absolute/path/to/quidclaw-mcp/.venv/bin/python",
  "args": ["-m", "quidclaw_mcp"]
}

Replace the path with the output of which python (run inside the activated venv).

Usage

Once connected, just talk to your AI naturally:

You: Help me set up my ledger

AI: (calls init_ledger) Created 20 default accounts. What bank accounts do you have?

You: Chase checking and Amex credit card

AI: (calls add_account twice) Done. Want to set initial balances?

You: Chase has $5,200

AI: (calls add_transaction) Recorded opening balance.

You: Lunch was $12, paid with Apple Pay

AI: (calls add_transaction) Recorded: Expenses:Food $12.00 from Assets:ApplePay

Data Storage

All data is stored locally as plain text Beancount .bean files:

~/.quidclaw/
├── main.bean          # includes all other files
├── accounts.bean      # account definitions
├── prices.bean        # price directives
└── 2026/
    ├── 2026-01.bean   # January transactions
    ├── 2026-02.bean   # February transactions
    └── ...

Default directory: ~/.quidclaw/. To customize:

export QUIDCLAW_DATA_DIR="/path/to/your/ledger"

MCP Tools

QuidClaw MCP exposes 10 tools to AI clients:

Tool Description
init_ledger Initialize ledger with default or custom accounts
add_account Open a new account
close_account Close an account
list_accounts List accounts, optionally filtered by type
add_transaction Record a transaction
get_balance Query account balances
balance_check Verify balance for reconciliation
query Execute arbitrary BQL queries
report Generate income statement or balance sheet
fetch_prices Fetch commodity prices

See MCP Tools Reference for full parameter details.

Development

See Install from source above, then:

pytest

See Architecture for design details.

License

This project is licensed under the GNU General Public License v2.0, the same license used by Beancount.

Metadata

Release files for quidclaw-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quidclaw-mcp 0.1.1
File Size Uploaded Provenance Actions
quidclaw_mcp-0.1.1.tar.gz 25.7 kB Without provenance Details for quidclaw_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quidclaw-mcp 0.1.1
File Interpreter ABI Platform Actions
quidclaw_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for quidclaw_mcp-0.1.1-py3-none-any.whl

Total release size: 48.3 kB

Release files / quidclaw_mcp-0.1.1.tar.gz

Download URL quidclaw_mcp-0.1.1.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a438dbcef4b6c59723dc87974cd93afa58b7df36cf69483c077155e2f6dc605f
BLAKE2b-256 checksum
How to use checksums
507b2b950af9fd8fd5636c652c698f20a708e390d9dc99f6c6e8e29318f90564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / quidclaw_mcp-0.1.1-py3-none-any.whl

Download URL quidclaw_mcp-0.1.1-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9a7361564f72000b5ac84fa6e607f57286b260aa6db23d7f945e94de23079fd
BLAKE2b-256 checksum
How to use checksums
6ac3c16e346ed5605392520c2048489cf52ce3c7aaab70bc4fb0cf17af0e9f64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for quidclaw-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page