SuperAPI AI Directory

gnucash-mcp

Multi-currency double-entry accounting on local GnuCash books: transactions, invoices, bills, budgets, investment lots, reconciliation and reports.

Open website

About this tool

Purpose: gnucash-mcp is an open-source MCP server that connects AI assistants to local GnuCash accounting data, allowing users to keep books, query, and manage finances through conversation. It is aimed at individual finance managers, small business owners, and people who want their data to stay local.

Main capabilities: Read and write GnuCash ledgers, including transaction entry, customer invoices, vendor bills, employee expenses, budgets, scheduled transactions, investment lots and capital gains tracking, reconciliation, and reports; supports multiple currencies and foreign-currency invoices, automatically recording exchange gains and losses when paying. When opening a ledger, it can return a financial dashboard at once (net worth trend, how long funds will last, budget progress, receivables and overdue items, unreconciled items).

How to use: Claude Desktop can download the .mcpb package and install it by double-clicking; during installation, select the ledger, whether to load a sample ledger, and whether to enable the business suite; other MCP clients (ChatGPT/Codex, Gemini, Claude Code, etc.) require installation from git clone and configuration. The ledger must be in SQLite format; older XML formats need to be saved as SQLite3 in GnuCash first. It can also connect to PostgreSQL or MySQL, in which case the corresponding driver must be installed (e.g. uv tool install -e ".[postgres]" --reinstall), and GNUCASH_BOOK_URI and GNUCASH_LOG_DIR must be set; GNUCASH_BOOK_PATH and GNUCASH_BOOK_URI are mutually exclusive. Modules can be selected with --modules; the default all includes 86 tools, and roles such as core and business can also be combined.

Limitations: Only ledgers in SQLite or database form are supported; older XML is not supported; GnuCash 3.8 or newer is required (tested against 5.12); in database mode, the server no longer backs up automatically, so pg_dump or mysqldump must be scheduled separately; one server instance corresponds to one ledger, and switch_book only applies to file ledgers; the gnucash-mcp name on PyPI belongs to another project, so it should be installed from a clone. The repository provides three fictional sample ledgers for trial use.