avenir-mcp

v0.8.0
io.github.mathbeal/avenir-mcp Checked 21 hours ago Published 1 month ago

Unofficial MCP server for YNAB: read-only by default, every change previewed and undoable.

Values you need

VariableWhat it is
YNAB_API_KEYrequired secret Your YNAB personal access token (YNAB > Account settings > Developer settings).
AVENIR_MCP_WRITEoptional Set to 1 to expose the write tools; read-only otherwise.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add avenir-mcp -e 'YNAB_API_KEY=<YNAB_API_KEY>' -- uvx avenir-mcp==0.8.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "avenir-mcp": {
      "args": [
        "avenir-mcp==0.8.0"
      ],
      "command": "uvx",
      "env": {
        "YNAB_API_KEY": "<YNAB_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "avenir-mcp": {
      "args": [
        "avenir-mcp==0.8.0"
      ],
      "command": "uvx",
      "env": {
        "YNAB_API_KEY": "<YNAB_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "YNAB_API_KEY",
      "id": "ynab-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "avenir-mcp": {
      "args": [
        "avenir-mcp==0.8.0"
      ],
      "command": "uvx",
      "env": {
        "YNAB_API_KEY": "${input:ynab-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.avenir-mcp]
command = "uvx"
args = ["avenir-mcp==0.8.0"]
env = { "YNAB_API_KEY" = "<YNAB_API_KEY>" }

For AI agents

  1. Ask the user for: YNAB_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: forecast_balance, get_age_of_money, list_plans, get_category_balances, get_monthly_summary, get_budget_vs_actual, get_spending_trends, list_category_groups, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json