Universal Firefly III AI Bridge
Provides comprehensive AI-agnostic access to all Firefly III personal finance features via 66 tools, enabling natural language management of accounts, transactions, budgets, and more.
README
Universal Firefly III AI Bridge (v3.0.0)
A professional-grade, AI-agnostic bridge providing exhaustive 100% API coverage for connecting AI assistants to your Firefly III personal finance instance.
66 tools covering every major Firefly III capability: accounts, transactions, budgets, bills, recurring rules, automation, insights, attachments, currencies, and more.
Compatibility
| AI Platform | Protocol | Connection | Setup Guide |
|---|---|---|---|
| Claude Code | MCP (Native) | stdio | CLAUDE.md |
| Claude Desktop | MCP (Native) | stdio | CLAUDE.md |
| Gemini CLI | MCP Extension | stdio | gemini.md |
| Cursor / VS Code | MCP | stdio or SSE | Manual setup below |
| ChatGPT | OpenAPI Actions | REST / JSON | /openapi.json endpoint |
| Custom Apps | REST API | HTTP | /api/<tool> endpoints |
Installation
Prerequisites
- Node.js v18 or later
- A running Firefly III instance
- A Personal Access Token from Firefly III
(Profile → OAuth → Personal Access Tokens → Create new token)
Clone and install
git clone https://github.com/fabianonetto/mcp-server-firefly-iii.git
cd mcp-server-firefly-iii
npm install
Setup by Platform
Claude Code (Recommended)
Claude Code uses .mcp.json in the project directory for MCP server configuration. Credentials go in a separate .env file so no secrets are ever in config files.
1. Create .env in the repo root (gitignored — never committed):
FIREFLY_URL=http://your-host:PORT
FIREFLY_TOKEN=your_personal_access_token
Get your token: Firefly III → Profile → OAuth → Personal Access Tokens → Create new token
2. Create .mcp.json in the repo root (gitignored — never committed):
{
"mcpServers": {
"firefly-iii": {
"command": "node",
"args": ["./index.js"]
}
}
}
The server reads credentials from .env automatically. No secrets in .mcp.json.
3. Start Claude Code from the repo directory:
claude
The server starts automatically. Claude Code will prompt you to approve it on first launch (once only).
4. Verify the connection by asking:
Use the get_about tool
You should receive your Firefly III version and API information.
Using from other projects:
Copy both .env and .mcp.json to any other project directory, changing ./index.js to the absolute path:
"args": ["/absolute/path/to/mcp-server-firefly-iii/index.js"]
See CLAUDE.md for the full guide including auto-approval configuration.
Claude Desktop
Add the server to your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"firefly-iii": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-firefly-iii/index.js"],
"env": {
"FIREFLY_URL": "http://your-host:PORT",
"FIREFLY_TOKEN": "your_personal_access_token"
}
}
}
}
Restart Claude Desktop after saving.
Gemini CLI Extension (One-command install)
gemini extensions install https://github.com/fabianonetto/mcp-server-firefly-iii
Then configure your instance:
gemini config set extensions.firefly-iii-universal-bridge.settings.FIREFLY_URL "http://your-host:PORT"
gemini config set extensions.firefly-iii-universal-bridge.settings.FIREFLY_TOKEN "your_token"
See gemini.md for the full guide.
Docker (Official Image)
The official image is available on GitHub Packages: ghcr.io/fabianonetto/mcp-server-firefly-iii.
Run as a service (SSE Mode)
Ideal for ChatGPT Actions, Cursor (SSE), or custom integrations.
docker run -d \
--name firefly-mcp \
-p 3001:3001 \
-e FIREFLY_URL="http://your-firefly-instance" \
-e FIREFLY_TOKEN="your_personal_access_token" \
-e PORT=3001 \
ghcr.io/fabianonetto/mcp-server-firefly-iii:latest
Run with Claude Desktop (stdio Mode)
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"firefly-iii": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "FIREFLY_URL=http://your-host:PORT",
"-e", "FIREFLY_TOKEN=your_token",
"ghcr.io/fabianonetto/mcp-server-firefly-iii:latest"
]
}
}
}
Cursor / VS Code (MCP Extension)
Add to your MCP config (.cursor/mcp.json or equivalent):
{
"mcpServers": {
"firefly-iii": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-firefly-iii/index.js"],
"env": {
"FIREFLY_URL": "http://your-host:PORT",
"FIREFLY_TOKEN": "your_personal_access_token"
}
}
}
}
HTTP / SSE Mode (ChatGPT Actions, Custom Apps)
Start the server with a port to enable the REST and SSE endpoints:
FIREFLY_URL=http://your-host:PORT FIREFLY_TOKEN=your_token PORT=3000 node index.js
Available endpoints:
| Endpoint | Description |
|---|---|
GET /sse |
SSE transport for MCP clients |
POST /messages |
MCP message handler |
POST /api/<tool_name> |
Direct REST call to any tool |
GET /openapi.json |
OpenAPI 3.0 spec (import into ChatGPT Actions) |
Tool Categories
| Category | Tools | Description |
|---|---|---|
| Core | 1 | System info & connectivity |
| Accounts | 5 | Full CRUD for all account types |
| Transactions | 7 | CRUD, split transactions, search |
| Budgets | 8 | Budgets + monetary limits |
| Bills & Piggy Banks | 7 | Bill tracking + savings goals |
| Automation | 11 | Rules, rule groups, webhooks |
| Recurring | 5 | Recurring transaction rules |
| System | 8 | Currencies + user preferences |
| Insights | 7 | Attachments, charts, net worth, spending |
| Meta | 4 | Categories + tags |
| Object Groups | 2 | Account/piggy bank organization |
| Admin | 1 | Data export |
| Total | 66 |
Documentation
| Document | Description |
|---|---|
| docs/API.md | Complete reference for all 66 tools and their input schemas |
| docs/PROMPTS.md | Prompt examples for common financial tasks |
| docs/USE_CASES.md | Strategic guides: tax assistant, subscription auditor, receipt manager |
| docs/TESTING.md | Test suite documentation (78 tests, all tools covered) |
| CLAUDE.md | Claude Code & Claude Desktop setup guide |
| gemini.md | Gemini CLI extension guide |
Running Tests
npm test
78 tests covering all 66 tools. No live Firefly III instance required — all API calls are mocked. See docs/TESTING.md for details.
Security
- Use a VPN or SSH tunnel if exposing the server to the internet.
- Keep your
FIREFLY_TOKENsecret. Never commit.mcp.jsonor.envfiles. - See SECURITY.md for the full security policy.
Roadmap
- [x] v1.x — Initial connectivity
- [x] v2.x — Exhaustive API coverage (CRUD & core admin)
- [x] v3.x — Power user features (splits, insights, automation)
- [x] v3.1.0 — Official Docker image & CI/CD
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。