LamPyrid
Provides comprehensive tools for interacting with Firefly III personal finance software, enabling account management, transaction CRUD and bulk operations, budget analysis, and financial insights through the Firefly III API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LamPyrid how much did I spend on groceries this month?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LamPyrid
A Model Context Protocol (MCP) server providing comprehensive tools for interacting with Firefly III personal finance software. LamPyrid enables automated personal finance workflows and analysis through 22 MCP tools with support for account management, transaction operations, budget management, and financial insights.
What is Firefly III? Firefly III is a free and open-source personal finance manager that helps you track expenses, income, budgets, and more. LamPyrid provides an MCP interface to automate interactions with your Firefly III instance.
Features
Account Management: List, search, and retrieve account information across all Firefly III account types
Transaction Operations: Full CRUD operations for withdrawals, deposits, and transfers
Bulk Operations: Efficient bulk transaction creation and updates
Budget Management: Budget analysis with spending tracking and allocation
Docker Support: Production-ready multi-platform images (amd64/arm64)
Related MCP server: Firefly III MCP Server
Prerequisites
Access to a Firefly III instance with a Personal Access Token
For local installation: Python 3.14+ and uv
For Docker: Docker installed on your system
Adding to Claude
Option 1: Local Setup (Claude Desktop)
Clone and install LamPyrid:
git clone https://github.com/RadCod3/LamPyrid.git
cd LamPyrid
uv syncAdd to your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"lampyrid": {
"command": "uv",
"args": ["run", "--project", "/path/to/LamPyrid", "lampyrid"],
"env": {
"FIREFLY_BASE_URL": "https://your-firefly-instance.com",
"FIREFLY_TOKEN": "your-personal-access-token"
}
}
}
}Restart Claude Desktop to enable LamPyrid tools.
Option 2: Remote Setup (Claude Connector)
When hosted on a remote server, LamPyrid can be added as a Claude Connector, allowing you to use it across all Claude interfaces including Claude mobile apps (iOS/Android), Claude web, and Claude Desktop.
1. Deploy LamPyrid to a remote server:
# docker-compose.yml
services:
lampyrid:
image: ghcr.io/radcod3/lampyrid:latest
ports:
- "3000:3000"
env_file:
- .env
restart: unless-stopped# .env
FIREFLY_BASE_URL=https://your-firefly-instance.com
FIREFLY_TOKEN=your-api-token
MCP_TRANSPORT=httpdocker compose up -d2. Add as Claude Connector:
Go to Claude Settings > Connectors > Add connector
Enter your server URL:
https://your-server-url.com/mcpLamPyrid is now available on all your Claude devices!
Security Note: If hosting on a public server, it is strongly recommended to enable authentication. LamPyrid currently supports Google OAuth - see the Authentication section below.
Configuration
Required
Variable | Description |
| URL of your Firefly III instance |
| Personal access token for API authentication |
Server Options
Variable | Default | Description |
|
| Transport protocol: |
|
| Host binding for HTTP/SSE transports |
|
| Port binding for HTTP/SSE transports |
|
| Logging verbosity: DEBUG/INFO/WARNING/ERROR/CRITICAL |
Authentication (Optional)
Recommended for remote deployments. Currently supports Google OAuth.
Variable | Description |
| Google OAuth 2.0 client ID |
| Google OAuth 2.0 client secret |
| Your server's public URL (e.g., |
Setting up Google OAuth:
Go to Google Cloud Console
Create or select a project
Navigate to APIs & Services > OAuth consent screen and configure
Go to Credentials > Create Credentials > OAuth client ID
Application type: Web application
Add authorized redirect URI:
{SERVER_BASE_URL}/auth/callbackCopy the Client ID and Client Secret to your environment
Token Persistence (Optional)
Enable persistent authentication across server restarts:
Variable | Description |
| JWT signing key (generate: |
| Fernet key (generate: |
| Storage path (default: |
Available Tools
Account Management (3 tools)
Tool | Description |
| List accounts by type (asset, expense, revenue, etc.) |
| Search accounts by name with optional type filtering |
| Get detailed information for a single account |
Transaction Management (10 tools)
Tool | Description |
| Retrieve transactions with time range and type filtering |
| Search transactions by description or text fields |
| Get detailed information for a single transaction |
| Create withdrawal transactions with budget allocation |
| Create deposit transactions |
| Create transfer transactions between accounts |
| Create multiple transactions in a single operation |
| Update existing transaction details |
| Update multiple transactions in a single operation |
| Delete transactions by ID |
Budget Management (6 tools)
Tool | Description |
| List all budgets with optional filtering |
| Get detailed budget information |
| Analyze spending for specific budgets and periods |
| Comprehensive summary of all budgets with spending |
| Check available budget amounts for periods |
| Create new budgets with auto-budget options |
Docker
Available Images
Tag | Description |
| Latest stable release (recommended) |
| Main branch (latest features, may be unstable) |
| Specific versions |
All images support linux/amd64 and linux/arm64 platforms.
docker pull ghcr.io/radcod3/lampyrid:latestVolume Permissions
If you encounter permission errors with OAuth storage, set the correct ownership:
mkdir -p ./data/oauth
sudo chown -R 65532:65532 ./data/oauthDevelopment
# Install dependencies
uv sync
# Format and lint
uv run ruff format
uv run ruff check --fix
# Run the server
uv run lampyrid
# Run tests
uv run pytestContributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch:
git checkout -b feat/your-featureMake changes following the code style (run
uv run ruff format && uv run ruff check --fix)Submit a pull request
License
GNU Affero General Public License v3.0 (AGPL-3.0) - see LICENSE.
Support
For issues and feature requests, use the GitHub issue tracker.
Available Tools
35 toolsbulk_update_transactionsBulk Update TransactionsA
Efficiently update multiple transactions in one operation.
Continues on error and returns partial results with error details. Raises exception only if ALL updates fail.
Inputs: req (required). Returns: Result of a bulk transaction update operation.
create_budgetCreate BudgetB
Create a new budget for expense tracking and financial planning.
Budgets help organize spending by category. Use auto-budget options for automatic allocation each period (daily/weekly/monthly/etc).
Inputs: req (required). Returns: Simplified budget model for MCP responses.
create_bulk_transactionsCreate Bulk TransactionsA
Efficiently create multiple transactions in one operation.
By default (atomic=True), rolls back all transactions if any fail. Set atomic=False to continue on error and return partial results.
Inputs: req (required). Returns: Result of a bulk transaction creation operation.
create_depositCreate DepositB
Record income and money received.
Represents salary, refunds, gifts, or any money coming into your asset accounts from external sources.
Inputs: req (required). Returns: Simplified transaction model for MCP responses.
create_transferCreate TransferA
Move money between your own accounts.
Use for transferring to savings, paying credit cards from checking, or consolidating funds.
Inputs: req (required). Returns: Simplified transaction model for MCP responses.
create_withdrawalCreate WithdrawalA
Record expenses and spending.
Money leaves your asset accounts to pay for goods, services, or cash withdrawals. Can be assigned to budgets for expense tracking.
Inputs: req (required). Returns: Simplified transaction model for MCP responses.
delete_budget_limitDelete Budget LimitADestructive
Remove the spendable amount set for a budget for a specific period.
The period defaults to the current month if no dates are given. Identify the budget by budget_id or budget_name. Fails if no limit exists for that period.
Inputs: req (required). Returns: result
delete_transactionDelete TransactionADestructive
Permanently remove a transaction.
Use to correct mistakes, remove duplicates, or delete test data. This action cannot be undone.
Inputs: req (required). Returns: result
execute_ruleA
Execute a rule to apply changes to matching transactions.
WARNING: This is a destructive operation that modifies your transactions.
Always use test_rule first to preview what will be changed
Requires confirm=True to prevent accidental execution
Execution happens asynchronously - changes may take a moment
Date ranges are REQUIRED - no defaults are applied
Rule execution in Firefly III is asynchronous. The rule will be queued for processing and applied in the background. Check your transactions later to confirm the changes have been applied.
Inputs: req (required). Returns: Result of executing a rule.
get_accountGet AccountARead-onlyIdempotent
Retrieve detailed account information including current balance and currency.
Use this to verify account details before transactions.
Inputs: req (required). Returns: Simplified account model for MCP responses.
get_available_budgetGet Available BudgetARead-onlyIdempotent
Check unallocated budget available for new budgets or unexpected expenses.
Shows money set aside but not assigned to specific budgets.
Inputs: req (required). Returns: Available budget information for a period.
get_budgetGet BudgetBRead-onlyIdempotent
Retrieve detailed budget information including name, status, and notes.
Use this to verify budget details before assigning transactions.
Inputs: req (required). Returns: Simplified budget model for MCP responses.
get_budget_spendingGet Budget SpendingARead-onlyIdempotent
Analyze spending against a budget.
Includes amount spent, remaining budget, and percentage used. Essential for budget monitoring and overspending alerts.
Inputs: req (required). Returns: Budget spending information for a specific period.
get_budget_summaryGet Budget SummaryBRead-onlyIdempotent
Comprehensive overview of all budget performance with totals and spending analysis.
Perfect for monthly reviews and financial dashboards.
Inputs: req (required). Returns: Summary of all budgets with spending information.
get_categoryGet CategoryARead-onlyIdempotent
Retrieve a single category, optionally with spending for a period.
Provide start_date and end_date together to include the total spent and earned in this category over that period.
Inputs: req (required). Returns: Simplified category model for MCP responses.
get_expense_insightGet Expense InsightARead-onlyIdempotent
Analyze expenses for a time period with optional grouping.
Get total expenses or break them down by expense account (vendor/payee), asset account (source), or budget. When grouping by budget, optionally includes unbudgeted expenses as a separate entry.
Use cases:
See total spending for a month
Identify top expense categories/vendors
Track which accounts have the most outflow
Analyze budget utilization vs unbudgeted spending
Inputs: req (required). Returns: Result of expense insight analysis.
get_financial_summaryGet Financial SummaryARead-onlyIdempotent
Get a complete financial overview for a time period.
Returns expense, income, and transfer totals along with net position (income minus expenses). Makes parallel API calls for efficiency.
Use cases:
Quick financial health check
Monthly/yearly overview
Dashboard summary data
Inputs: req (required). Returns: Complete financial summary with expense, income, and transfer totals.
get_income_insightGet Income InsightARead-onlyIdempotent
Analyze income for a time period with optional grouping.
Get total income or break it down by revenue account (source) or asset account (receiving account).
Use cases:
See total income for a month
Identify income sources
Track which accounts receive the most income
Inputs: req (required). Returns: Result of income insight analysis.
get_ruleA
Retrieve a single rule by ID with all its triggers and actions.
Returns the complete rule configuration including triggers (conditions) and actions (what to do when the rule matches).
Inputs: req (required). Returns: Simplified rule model for MCP responses.
get_tagGet TagARead-onlyIdempotent
Retrieve a single tag by its name or numeric ID.
Inputs: req (required). Returns: Simplified tag model for MCP responses.
get_transactionGet TransactionARead-onlyIdempotent
Retrieve complete transaction details.
Use this to verify transaction information before updates or to examine specific transactions.
Inputs: req (required). Returns: Simplified transaction model for MCP responses.
get_transactionsGet TransactionsBRead-onlyIdempotent
Retrieve transaction history with flexible filtering and pagination.
Essential for financial analysis, spending pattern review, and account activity monitoring.
Inputs: req (required). Returns: Response model for transaction listings.
get_transfer_insightGet Transfer InsightARead-onlyIdempotent
Analyze transfers for a time period with optional account breakdown.
Get total transfers or break them down by asset account with in/out amounts for each account.
Use cases:
See total transfer activity
Understand money flow between accounts
Track savings/investment transfers
Inputs: req (required). Returns: Result of transfer insight analysis.
list_accountsList AccountsARead-onlyIdempotent
Retrieve accounts from Firefly III.
Use 'asset' for checking/savings accounts, 'expense' for spending accounts, 'revenue' for income sources. Essential for finding account IDs before creating transactions.
Inputs: req (required). Returns: result
list_budget_limitsList Budget LimitsARead-onlyIdempotent
List the amounts (limits) set for a budget, with amount spent for each period.
Identify the budget by budget_id or budget_name. Optionally restrict to a date range.
Inputs: req (required). Returns: result
list_budgetsList BudgetsBRead-onlyIdempotent
Retrieve your budgets for expense tracking and financial planning.
Filter by active status to see current or all budgets.
Inputs: req (required). Returns: result
list_categoriesList CategoriesARead-onlyIdempotent
List all categories.
Categories are a finer-grained classification of transactions (e.g. "vegetables", "personal hygiene") that complement budgets. Use this to find category IDs/names before assigning them to transactions.
Inputs: no named parameters. Returns: result
list_tagsList TagsARead-onlyIdempotent
List all tags.
Tags are cross-cutting labels that group transactions across budgets, categories, and time (e.g. a trip, a project, a tax year). Use this to discover existing tags before assigning or searching by them.
Inputs: no named parameters. Returns: result
search_accountsSearch AccountsARead-onlyIdempotent
Find accounts by partial name matching.
Useful when you know the account name but not the ID. Supports filtering by account type.
Inputs: req (required). Returns: result
search_rulesA
Search your rules using multiple filter criteria.
Since Firefly III doesn't have a built-in rule search API, this tool fetches all rules and filters them client-side using keyword matching and regex patterns for maximum flexibility.
Provide at least one search criterion. All criteria are combined with AND logic.
Inputs: req (required). Returns: result
search_transactionsSearch TransactionsARead-onlyIdempotent
Search transactions with powerful filtering options.
Supports free-text search, type filtering (withdrawal/deposit/transfer), amount ranges, date ranges, categories, budgets, and account matching. All filters combine with AND logic for precise results.
Inputs: req (required). Returns: Response model for transaction listings.
set_budget_limitSet Budget LimitAIdempotent
Set the spendable amount for an existing budget for a specific period.
The period defaults to the current month if no dates are given. Creates the limit, or updates it if one already exists for that period (so calling it again simply adjusts the amount). Identify the budget by budget_id or budget_name.
Inputs: req (required). Returns: A budget limit: the spendable amount set for a budget over a specific period.
test_ruleA
Preview which transactions a rule would match WITHOUT applying changes.
Use this before executing a rule to see what would be affected. This is a read-only operation - no transactions are modified.
Returns the list of matching transactions that would be changed if the rule is executed.
Inputs: req (required). Returns: Result of testing a rule (preview mode).
update_ruleB
Update an existing rule's configuration.
You can update any combination of:
Basic settings (title, description, active status)
Logic control (strict mode, stop processing)
Triggers (conditions that must match)
Actions (changes to apply)
Note: The 'prohibited' field on triggers is read-only and cannot be modified.
Inputs: req (required). Returns: Simplified rule model for MCP responses.
update_transactionUpdate TransactionB
Modify transaction details such as amounts, descriptions, dates, accounts, etc.
Useful for correcting imported data or updating incomplete information.
Inputs: req (required). Returns: Simplified transaction model for MCP responses.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
Most tools target distinct resource+action pairs (e.g. create_deposit vs create_withdrawal vs create_transfer). However, get_transactions and search_transactions heavily overlap in purpose (both retrieve transaction history with flexible filtering), and get_financial_summary partially duplicates the aggregate insight tools. Descriptions mitigate most of this, keeping it coherent overall.
Names consistently follow a snake_case verb_noun pattern (list_accounts, get_budget, search_rules, delete_budget_limit, execute_rule). The verb conventions (create/get/list/search/update/delete/set/test/execute) are applied predictably across all domains, with only benign prefixes like bulk_update_.
At 35 tools this is on the heavy side, though the scope spans transactions, accounts, budgets, categories, tags, insights, and rules, so most tools earn their place. It still leans toward over-provisioning given several domains are covered read-only, making some tools feel redundant.
Transactions have full CRUD plus bulk/search, but accounts lack create/update/delete, budgets lack update/delete, rules lack create, and categories/tags are read-only (list/get only). These are notable gaps that could dead-end an agent trying to fully manage the finance system.
Maintenance
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Log, query, and edit expenses, budgets, and accounts in Manilo (formerly Ledgy) from any MCP-compatible AI assistant.
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Personal finance for AI agents: accounts, budgets, goals, 9-strategy debt payoff, reports. OAuth 2.1
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI tools to interact with Firefly III personal finance management instances through a cloud-deployed MCP server. Supports financial operations like account management, transactions, budgeting, and reporting with configurable tool presets.19 npm-
- AlicenseAqualityDmaintenanceIntegrates with Firefly III personal finance software to enable natural language management of transactions, accounts, budgets, and categories. Supports recording expenses, checking balances, and organizing financial data through conversational AI.2311 npmMIT
- AlicenseCqualityCmaintenanceProvides comprehensive AI-agnostic access to all Firefly III personal finance features via 66 tools, enabling natural language management of accounts, transactions, budgets, and more.6624MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage personal finances through Firefly III, supporting tasks like recording transactions, managing budgets, and generating financial summaries.10 npmMIT