Skip to main content

Beancount Fava MCP Server

An MCP server to interface with Beancount Fava.

Installation

uvx beancount-fava-mcp@latest --fava-url=https://your-fava-instance/ledger-name

This is a beancount MCP that relies on a fava instance to provide the data instead of reading the beancount files directly. So this is allowed to be installed on a completely different machine than where your beancount files are stored.

It allows for simple authentication, but it is optional. You can set the following environment variables:

  • FAVA_URL: The URL of your Fava instance (overrides the --fava-url argument)
  • FAVA_USERNAME: The username to authenticate with
  • FAVA_PASSWORD: The password to authenticate with

Features

  • get_ledger_data(): List all ledger data including account names, tags, and links.
  • get_accounts(): Get the list of all accounts.
  • get_currencies(): Get the list of all currencies/commodities.
  • get_payees(): Get the list of all payees.
  • get_tags(): Get the list of all tags.
  • get_links(): Get the list of all links.
  • query_journal(account, time, tags, links, payee, narration, extra_filter): Filter journal entries.
  • run_bql(query): Execute raw Beancount Query Language queries.
  • add_transaction(date, payee, narration, postings, tags, links, metadata, flag): Add a new transaction entry. Note: Review the transaction details carefully before execution.

Future Plans

  • Support some kind of write access to the ledger so that you can add transactions easily via your mcp client. (add_transaction added but still WIP)

Usage

Can be used with Claude Desktop or other MCP clients.

Metadata

Release files for beancount-fava-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 beancount-fava-mcp 0.1.1
File Size Uploaded Provenance
beancount_fava_mcp-0.1.1.tar.gz 11.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for beancount-fava-mcp 0.1.1
File Interpreter ABI Platform
beancount_fava_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / beancount_fava_mcp-0.1.1.tar.gz

Download URL beancount_fava_mcp-0.1.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
be20d620a3c1443f442dd08bf8556fe743c47cb70aa21e4283bc6f5403945a5b
BLAKE2b-256 checksum
How to use checksums
38b33a95aa50509cfc914016dbff1fb85b8a95e864597d9cc7e8033c567bfb2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

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

Download URL beancount_fava_mcp-0.1.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d29ab41999a35db2ed3ae897fd6c2408a95c000ae1ee7b7e888aa3acea375abc
BLAKE2b-256 checksum
How to use checksums
7ce2d0070f425b1463521cb5e146a1f39897ad214771465430268cd5c06de979
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for beancount-fava-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.

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