skip to content

Actual Budget

An agent for the household budget, for requests such as “how much did we spend on groceries this month?”.

MCP server github.com/agigante80/actual-mcp-server
Transport Streamable HTTP
Authentication bearer

In Compose, beside the server of Ambrogio:

services:
actual-mcp:
image: ghcr.io/agigante80/actual-mcp-server:0.40.0
environment:
ACTUAL_SERVER_URL: http://<actual-host>:5006
ACTUAL_PASSWORD: ${ACTUAL_SERVER_PASSWORD:?}
ACTUAL_BUDGET_SYNC_ID: ${ACTUAL_BUDGET_SYNC_ID:?}
MCP_BRIDGE_DATA_DIR: /app/data
MCP_BRIDGE_PORT: "3600"
MCP_BRIDGE_BIND_HOST: 0.0.0.0
MCP_SSE_AUTHORIZATION: ${ACTUAL_BUDGET_MCP_TOKEN:?}
volumes:
- actual-mcp-data:/app/data
volumes:
actual-mcp-data:

It serves Streamable HTTP on port 3600 at /http, not /mcp, so the server of Ambrogio reaches it at http://actual-mcp:3600/http, the name of its Compose service on a network the two share; from another host, use the name or address of the host that runs it, with the same port and path.

ACTUAL_PASSWORD is the server password of Actual Budget, and ACTUAL_BUDGET_SYNC_ID the Sync ID of the budget, shown in Actual Budget under Settings, Show advanced settings. The volume keeps the local copy of the budget that the MCP server works on.

  1. Run the MCP server, as Run the MCP server shows.

  2. Choose the token that the MCP server accepts, a random value such as the output of openssl rand -hex 32, of at least 32 characters: the same value goes to the MCP server, as MCP_SSE_AUTHORIZATION above, and to Ambrogio. Write it in .env as ACTUAL_BUDGET_MCP_TOKEN, and pass the variable to the server of Ambrogio in compose.yaml:

    services:
    server:
    environment:
    ACTUAL_BUDGET_MCP_TOKEN: ${ACTUAL_BUDGET_MCP_TOKEN:?}
  3. Add the agent file agents/actual-budget.json, with the address of the Streamable HTTP endpoint of the MCP server in mcp.url:

    {
    "description": "Answers the household's requests about the household budget, with the tools of Actual Budget.",
    "instructions": "You handle the household's requests about the household budget with the tools of Actual Budget. Requests may come from speech recognition and contain misheard words; interpret them in context. Answer briefly.",
    "llm": {
    "provider": "mistral",
    "model": "mistral-medium-latest",
    "apiKeyEnv": "MISTRAL_API_KEY"
    },
    "maxToolCalls": 4,
    "mcp": {
    "url": "http://actual-mcp:3600/http",
    "auth": {
    "type": "bearer",
    "tokenEnv": "ACTUAL_BUDGET_MCP_TOKEN"
    }
    }
    }
  4. Restart with docker compose up -d.

Authentication: a bearer token, which the agent file names through the variable ACTUAL_BUDGET_MCP_TOKEN. The description, the instructions, the language model and maxToolCalls are an example: adapt them to the household. See Agents for every field of the file.