py-ynab-mcp
A Model Context Protocol server for YNAB (You Need A Budget). Talk to your budget from Claude, Cursor, or any MCP client.
Features
- Query budgets, accounts, categories, transactions, payees, and months
- Get single-resource details (account, category, payee, transaction)
- Create, update, and delete transactions (single and bulk)
- Create categories; update or clear targets, metadata, and budgets
- Rename payees
- Manage scheduled transactions (full CRUD)
- Budget settings and user info
Install
uvx py-ynab-mcp
Or with pip:
pip install py-ynab-mcp
Setup
- Get a YNAB Personal Access Token
- Add to your MCP client config:
{
"mcpServers": {
"ynab": {
"command": "uvx",
"args": ["py-ynab-mcp"],
"env": {
"YNAB_ACCESS_TOKEN": "your-token-here"
}
}
}
}
Why this project?
There are several YNAB MCP servers out there:
| Project | Language | License |
|---|---|---|
| calebl/ynab-mcp-server | TypeScript | MIT |
| mattweg/ynab-mcp | JavaScript | MIT |
| chrisguidry/you-need-an-mcp | Python | No license |
| py-ynab-mcp | Python | MIT |
We wanted an MIT-licensed Python implementation with full API coverage and thorough test coverage. At the time of writing, the only Python option had no OSS license, so we built this one.
YNAB API Coverage
Read
- User info, budget settings
- Budgets, accounts, categories, payees, months (list and single)
- Transactions with filtering by account, category, or payee
- Scheduled transactions (list and single)
Write
- Create, update, delete transactions (single and bulk)
- Create categories; update or clear targets, metadata, and budgets
- Rename payees
- Create, update, delete scheduled transactions
Not available in YNAB API
- Create/delete budgets or accounts; delete categories
- Create/delete payees (auto-created via transactions)
- Transaction import
Development
# Clone and install
git clone https://github.com/duganth/py-ynab-mcp.git
cd py-ynab-mcp
uv sync
# Run tests
uv run pytest
# Lint and type check
uv run ruff check .
uv run mypy src/
License
MIT
Metadata
Release files for py-ynab-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py_ynab_mcp-0.3.0.tar.gz | 125.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_ynab_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 148.7 kB
Release files / py_ynab_mcp-0.3.0.tar.gz
| Download URL | py_ynab_mcp-0.3.0.tar.gz |
|---|---|
| Size | 125.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cb47749305d945bfa4d6471b7acc7cc860500879363b30134483e97271bde53
|
|
BLAKE2b-256 checksum How to use checksums |
586e7b17f7e7044697d5f7108c5d14bb69d2d86641e060219e663615c0bfcf80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / py_ynab_mcp-0.3.0-py3-none-any.whl
| Download URL | py_ynab_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ac6caa95ceb6518c86031c3f3aa148e937c6dd6696536bb6f6a206dd7b263a5
|
|
BLAKE2b-256 checksum How to use checksums |
5a9eea6788329051c5f57c756500fbb23ecbbaaf8a1d965149e38c2b2057b249
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logSecurity for py-ynab-mcp 0.3.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for py_ynab_mcp-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logA 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.