Purpose
mcp-firefly-iii gives AI assistants access to a personal Firefly III bookkeeping instance, and can be used to answer questions such as "where did I spend the most last month", "find uncategorized transactions in August and suggest categories", and "show subscriptions whose amounts have increased". Each user runs with their own Firefly III instance and their own token; there is no hosted backend or relay service.
Main capabilities
- 5 meta-tools instead of 152:
firefly_query、firefly_mutate、firefly_destructive, as well as thefirefly_list_operationsandfirefly_get_schemaused to discover operations. A typed registry maps each Firefly endpoint to these tools, preventing the tool list from overwhelming the model. - CLI in the same package:
firefly-cliruns the same operations in the terminal, outputting brief text rather than a tool catalog, which suits agents with a shell and scripts; every write is preview-only by default, and--confirmis required to execute it. - Writes support dry_run: returns the exact request including resolved record IDs without sending it.
- Bulk write protection: filter-based updates must provide
max_matches, and are rejected before the first write if the scan is incomplete; multi-split transaction groups are rejected outright to prevent amounts from being merged. - Read/write/destructive operations are authorized separately and enforced: under stdio this is controlled by the Firefly token; under HTTP it is controlled by OAuth scopes or a static token.
- Built-in OAuth 2.1 authorization server: for Claude web, Claude mobile, and ChatGPT, with no need to install Keycloak or Authentik separately.
- Docker image: supports linux/amd64 and linux/arm64; the documentation pipeline self-checks to keep the tool catalog in sync with the code.
- Version check: checks for a new version once a day and, if one exists, prints a notice to stderr once; can be disabled with
MCP_UPDATE_CHECK=false.
Usage
Prerequisites: a running Firefly III instance and a personal access token (Firefly III → Options → Profile → OAuth → Create New Personal Access Token); Node.js 20.6+ (not required when using Docker).
1. stdio (Claude Code, Claude Desktop, Cursor)
- Claude Desktop: download
firefly-mcp-<version>.mcpbfrom the latest release and open it, then fill in the Firefly III URL and token as prompted; the token is stored in the system keychain. - Automatic configuration:
npx -y @yakupemreyerli/firefly-mcp setup, which asks for the address and token, verifies availability, and configures Claude Code and Claude Desktop; for other clients it prints the configuration for pasting. - You can also write the MCP configuration file manually.
2. Remote HTTP with a static token
Suitable for callers such as n8n and automation that cannot complete the browser OAuth flow. After setting MCP_HTTP_TOKEN , run npx -y -p @yakupemreyerli/firefly-mcp firefly-mcp-http. Each /mcp request must carry Authorization: Bearer <token>; a single token has all permissions, with no per-connection scope partitioning.
3. Remote HTTP with OAuth (Claude web, mobile, ChatGPT)
Set MCP_AUTH_PASSWORD , the server itself acts as an OAuth 2.1 authorization server, handling client registration, PKCE, and token exchange. If Firefly III uses Docker Compose, you can run the installation script in the directory containing its compose file to generate compose.firefly-mcp.yml and firefly-mcp.env(permissions 600), generate a login password, and print reverse proxy configuration lines (Caddy, Traefik, Nginx Proxy Manager, or Cloudflare Tunnel). After startup, use doctor to check the login mode, public address, whether login persists after restart, and whether the server can access Firefly III with a token; each line should show PASS.
Client connection: In Claude, go to Settings → Connectors → Add custom connector and enter https://mcp.example.com/mcp; keep authentication set to automatic detection. In ChatGPT, enter the same URL in the custom connector/MCP interface and select OAuth. Then enter MCP_AUTH_PASSWORDin the Firefly login page in your browser. This connection will receive all three scopes (firefly:read、firefly:write、firefly:destructive); if you need a truly read-only connection, use a read-only Firefly personal access token instead.
For manual configuration:MCP_RESOURCE_URL must be the external source address (no path); if it does not match the internal address or the /mcp connection URL, token audience validation will fail;MCP_AUTH_STATE_DIR must be on a persistent volume, otherwise every restart will cause all clients to lose authorization.
Prebuilt image: You can replace compose.example.yml in build: . with image: ghcr.io/yakupemreyerli/mcp-firefly-iii:1.4.0; single-container run:docker run -d --env-file .env -p 3000:3000 ghcr.io/yakupemreyerli/mcp-firefly-iii:1.4.0. Startup is refused if either of the two authentication modes is missing;/mcp requires TLS in front of it, and/health is exposed for container probes.
Use cases
- Query and organize personal financial data in natural language in Claude Code, Claude Desktop, and Cursor.
- Call via HTTP static token in automation platforms such as n8n.
- Connect to a self-hosted server via OAuth in Claude web/mobile or ChatGPT.
- Scripts and agents perform the same operations via
firefly-cli.
Limitations
- Requires a self-hosted and running Firefly III instance and a personal access token.
- Remote HTTP mode requires a public HTTPS address and a reverse proxy;
/mcpmust have TLS in front of it. - Static token mode is a single token with full permissions, with no per-connection scopes.
- The OAuth login page grants all three scopes and cannot subdivide read-only permissions on that page.
- The server itself does not send data to third parties, but it cannot control how the connected AI client or model handles responses.
- Tests are simulated tests and do not access the network;
npm run smoke:liveis a maintainer tool, read-only, and not included in the release package. - Licensed under MIT; the flame piggy bank logo in the banner and docs/assets/ belongs to Firefly III itself and is not covered by this license; this project is not produced or endorsed by Firefly III.