Firefly III
An agent for the household budget, for requests such as “how much did we spend on groceries this month?”.
| MCP server | github.com/YakupEmreYerli/mcp-firefly-iii |
| Transport | Streamable HTTP |
| Authentication | bearer |
Run the MCP server
Section titled “Run the MCP server”In Compose, beside the server of Ambrogio:
services: firefly-mcp: image: ghcr.io/yakupemreyerli/mcp-firefly-iii:1.3.0 environment: FIREFLY_API_URL: http://<firefly-host>:8080 FIREFLY_API_TOKEN: ${FIREFLY_API_TOKEN:?} MCP_HTTP_HOST: 0.0.0.0 MCP_HTTP_PORT: "3000" MCP_HTTP_TOKEN: ${FIREFLY_III_MCP_TOKEN:?} MCP_UPDATE_CHECK: "false"It serves Streamable HTTP on port 3000 at /mcp, so the server of Ambrogio reaches it at http://firefly-mcp:3000/mcp, 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.
FIREFLY_API_TOKEN is how the MCP server signs in to Firefly III: a personal access token, created
in Firefly III under Options, Profile, OAuth, Create New Personal Access Token.
Configure the connector
Section titled “Configure the connector”-
Run the MCP server, as Run the MCP server shows.
-
Choose the token that the MCP server accepts, a random value such as the output of
openssl rand -hex 32: the same value goes to the MCP server, asMCP_HTTP_TOKENabove, and to Ambrogio. Write it in.envasFIREFLY_III_MCP_TOKEN, and pass the variable to the server of Ambrogio incompose.yaml:services:server:environment:FIREFLY_III_MCP_TOKEN: ${FIREFLY_III_MCP_TOKEN:?} -
Add the agent file
agents/firefly-iii.json, with the address of the Streamable HTTP endpoint of the MCP server inmcp.url:{"description": "Answers the household's requests about the household budget, with the tools of Firefly III.","instructions": "You handle the household's requests about the household budget with the tools of Firefly III. 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://firefly-mcp:3000/mcp","auth": {"type": "bearer","tokenEnv": "FIREFLY_III_MCP_TOKEN"}}} -
Restart with
docker compose up -d.
Authentication: a bearer token, which the agent file names through the variable FIREFLY_III_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.