LamPyridのロゴ

LamPyrid

コミュニティ
RadCod3

A simple MCP server for Firefly III

公開者RadCod3
リポジトリLamPyrid
言語Python
フォーク
5
スター
23
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスAGPL-3.0
リンク
  • ツールをAIワークフローに接続

    LamPyridは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには23件のスターと5件のフォークがあります。

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)

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:

bash
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
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:

yaml
# docker-compose.yml
services:
  lampyrid:
    image: ghcr.io/radcod3/lampyrid:latest
    ports:
      - "3000:3000"
    env_file:
      - .env
    restart: unless-stopped
bash
# .env
FIREFLY_BASE_URL=https://your-firefly-instance.com
FIREFLY_TOKEN=your-api-token
MCP_TRANSPORT=http
bash
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

VariableDescription
FIREFLY_BASE_URLURL of your Firefly III instance
FIREFLY_TOKENPersonal access token for API authentication

Server Options

VariableDefaultDescription
MCP_TRANSPORTstdioTransport protocol: stdio, http, or sse
MCP_HOST0.0.0.0Host binding for HTTP/SSE transports
MCP_PORT3000Port binding for HTTP/SSE transports
LOGGING_LEVELINFOLogging verbosity: DEBUG/INFO/WARNING/ERROR/CRITICAL

Authentication (Optional)

Recommended for remote deployments. Currently supports Google OAuth.

VariableDescription
GOOGLE_CLIENT_IDGoogle OAuth 2.0 client ID
GOOGLE_CLIENT_SECRETGoogle OAuth 2.0 client secret
SERVER_BASE_URLYour 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:

VariableDescription
JWT_SIGNING_KEYJWT signing key (generate: python -c "import secrets; print(secrets.token_urlsafe(32))")
OAUTH_STORAGE_ENCRYPTION_KEYFernet key (generate: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")
OAUTH_STORAGE_PATHStorage path (default: /app/data/oauth for Docker)

Available Tools

Account Management (3 tools)

ToolDescription
list_accountsList accounts by type (asset, expense, revenue, etc.)
search_accountsSearch accounts by name with optional type filtering
get_accountGet detailed information for a single account

Transaction Management (10 tools)

ToolDescription
get_transactionsRetrieve transactions with time range and type filtering
search_transactionsSearch transactions by description or text fields
get_transactionGet detailed information for a single transaction
create_withdrawalCreate withdrawal transactions with budget allocation
create_depositCreate deposit transactions
create_transferCreate transfer transactions between accounts
create_bulk_transactionsCreate multiple transactions in a single operation
update_transactionUpdate existing transaction details
bulk_update_transactionsUpdate multiple transactions in a single operation
delete_transactionDelete transactions by ID

Budget Management (6 tools)

ToolDescription
list_budgetsList all budgets with optional filtering
get_budgetGet detailed budget information
get_budget_spendingAnalyze spending for specific budgets and periods
get_budget_summaryComprehensive summary of all budgets with spending
get_available_budgetCheck available budget amounts for periods
create_budgetCreate new budgets with auto-budget options

Docker

Available Images

TagDescription
latestLatest stable release (recommended)
edgeMain branch (latest features, may be unstable)
0.3.0, 0.3, 0Specific versions

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

bash
docker pull ghcr.io/radcod3/lampyrid:latest

Volume Permissions

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

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

Development

bash
# 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.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "radcod3-lampyrid": {
      "command": "",
      "args": []
    }
  }
}

LamPyridのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度LamPyridに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

LamPyridをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. LamPyridのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "radcod3-lampyrid": {
      "command": "npx",
      "args": [
        "-y",
        "lampyrid"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてLamPyridのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. LamPyridのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
LamPyridを使ってこのタスクを手伝ってもらえますか?
LamPyrid
はい、読みました。
LamPyridで調べた結果をお伝えします。

よくある質問

LamPyrid MCPサーバーは何に使いますか?

LamPyridは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでLamPyrid MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでLamPyridを利用できます。

TypingMindでLamPyrid MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。LamPyridを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

LamPyrid MCPをTypingMindに接続するにはどうすればよいですか?

LamPyridはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでLamPyrid MCPのどのようなツールを利用できますか?

LamPyridはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

LamPyrid MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。LamPyridで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇