Skip to main content
Glama
LamPyrid
by RadCod3

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 sync

Add to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %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=http
docker compose up -d

2. Add as Claude Connector:

  1. Go to Claude Settings > Connectors > Add connector

  2. Enter your server URL: https://your-server-url.com/mcp

  3. LamPyrid 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

FIREFLY_BASE_URL

URL of your Firefly III instance

FIREFLY_TOKEN

Personal access token for API authentication

Server Options

Variable

Default

Description

MCP_TRANSPORT

stdio

Transport protocol: stdio, http, or sse

MCP_HOST

0.0.0.0

Host binding for HTTP/SSE transports

MCP_PORT

3000

Port binding for HTTP/SSE transports

LOGGING_LEVEL

INFO

Logging verbosity: DEBUG/INFO/WARNING/ERROR/CRITICAL

Authentication (Optional)

Recommended for remote deployments. Currently supports Google OAuth.

Variable

Description

GOOGLE_CLIENT_ID

Google OAuth 2.0 client ID

GOOGLE_CLIENT_SECRET

Google OAuth 2.0 client secret

SERVER_BASE_URL

Your server's public URL (e.g., https://lampyrid.example.com)

Setting up Google OAuth:

  1. Go to Google Cloud Console

  2. Create or select a project

  3. Navigate to APIs & Services > OAuth consent screen and configure

  4. Go to Credentials > Create Credentials > OAuth client ID

  5. Application type: Web application

  6. Add authorized redirect URI: {SERVER_BASE_URL}/auth/callback

  7. Copy the Client ID and Client Secret to your environment

Token Persistence (Optional)

Enable persistent authentication across server restarts:

Variable

Description

JWT_SIGNING_KEY

JWT signing key (generate: python -c "import secrets; print(secrets.token_urlsafe(32))")

OAUTH_STORAGE_ENCRYPTION_KEY

Fernet key (generate: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")

OAUTH_STORAGE_PATH

Storage path (default: /app/data/oauth for Docker)

Available Tools

Account Management (3 tools)

Tool

Description

list_accounts

List accounts by type (asset, expense, revenue, etc.)

search_accounts

Search accounts by name with optional type filtering

get_account

Get detailed information for a single account

Transaction Management (10 tools)

Tool

Description

get_transactions

Retrieve transactions with time range and type filtering

search_transactions

Search transactions by description or text fields

get_transaction

Get detailed information for a single transaction

create_withdrawal

Create withdrawal transactions with budget allocation

create_deposit

Create deposit transactions

create_transfer

Create transfer transactions between accounts

create_bulk_transactions

Create multiple transactions in a single operation

update_transaction

Update existing transaction details

bulk_update_transactions

Update multiple transactions in a single operation

delete_transaction

Delete transactions by ID

Budget Management (6 tools)

Tool

Description

list_budgets

List all budgets with optional filtering

get_budget

Get detailed budget information

get_budget_spending

Analyze spending for specific budgets and periods

get_budget_summary

Comprehensive summary of all budgets with spending

get_available_budget

Check available budget amounts for periods

create_budget

Create new budgets with auto-budget options

Docker

Available Images

Tag

Description

latest

Latest stable release (recommended)

edge

Main branch (latest features, may be unstable)

0.3.0, 0.3, 0

Specific versions

All images support linux/amd64 and linux/arm64 platforms.

docker pull ghcr.io/radcod3/lampyrid:latest

Volume Permissions

If you encounter permission errors with OAuth storage, set the correct ownership:

mkdir -p ./data/oauth
sudo chown -R 65532:65532 ./data/oauth

Development

# 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 pytest

Contributing

Contributions are welcome! Please:

  1. Fork the repository

  2. Create a feature branch: git checkout -b feat/your-feature

  3. Make changes following the code style (run uv run ruff format && uv run ruff check --fix)

  4. 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 tools
bulk_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 LimitA
Destructive

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 TransactionA
Destructive

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 AccountA
Read-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 BudgetA
Read-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 BudgetB
Read-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 SpendingA
Read-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 SummaryB
Read-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 CategoryA
Read-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 InsightA
Read-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 SummaryA
Read-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 InsightA
Read-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 TagA
Read-onlyIdempotent

Retrieve a single tag by its name or numeric ID.

Inputs: req (required). Returns: Simplified tag model for MCP responses.

get_transactionGet TransactionA
Read-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 TransactionsB
Read-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 InsightA
Read-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 AccountsA
Read-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 LimitsA
Read-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 BudgetsB
Read-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 CategoriesA
Read-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 TagsA
Read-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 AccountsA
Read-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 TransactionsA
Read-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 LimitA
Idempotent

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

    A3.5/5.0

    Scored across 35 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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_.

    Tool Count3/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables 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
      -
    • A
      license
      A
      quality
      D
      maintenance
      Integrates 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.
      23
      11 npm
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      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.
      66
      24
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to manage personal finances through Firefly III, supporting tasks like recording transactions, managing budgets, and generating financial summaries.
      10 npm
      MIT