personal-finance-mcp-server
personal-finance-mcp-server
personal-finance-service 用のリモートMCPサーバー:
ビジネスオペレーション(グループ、支払い方法、支出)をMCPツールとして公開し、Keycloakで認証します。Kiro/Claude(インタラクティブログイン)またはクラウド上のヘッドレスエージェント(M2Mログイン)から使用することを想定しています。
要件
Docker + Docker Compose
personal-finance-serviceが実行中であること(そのリポジトリでdocker compose up -d) — このサーバーはそのKeycloakとAPIに接続しますが、それらを起動するわけではありません。
Related MCP server: MCP Agent - AI Expense Tracker
実行方法
cp .env.example .env
# completar KEYCLOAK_CLIENT_SECRET con el secret de mcp-personal-finance-server
# (ver "Setup de Keycloak" en AGENTS.md si todavía no existen los clients)
docker compose up -d --buildGET http://localhost:8000/healthPOST http://localhost:8000/mcp—Authorization: Bearer <jwt>が必要
KiroでのMCP設定
{
"mcpServers": {
"personal-finance-remote": {
"url": "http://localhost:8000/mcp",
"oauth": {
"clientId": "mcp-personal-finance-client",
"scopes": []
}
}
}
}初回使用時、KiroはKeycloakへのログイン用にブラウザを開きます — personal-finance-service で既に使用しているユーザー名/パスワードを使用してください。
利用可能なツール
Tool | 機能 |
| ユーザーのグループを一覧表示 |
| グループを作成 |
| グループのメンバーを一覧表示 |
| ユーザーの支払い方法を一覧表示 |
| 支払い方法を作成 |
| 支払い方法を変更 |
| 支払い方法を削除 |
| 支出をフィルター付きで一覧表示 |
| 支出を登録(分割払いおよび/または分割) |
| カードの分割払い支出の次回分割分を生成 |
| 支出の完全な詳細 |
| 支出を変更 |
| 支出を削除 |
personal-finance-service のAPIキー管理(作成/一覧/削除)は、意図的にツールとして公開されていません — AGENTS.md を参照してください。
ヘッドレスエージェント(M2M)
背後に人間のユーザーがいないエージェント(インタラクティブログインができない)の場合、KiroのフローではなくClient Credentials Grantを使用してください:
curl -X POST http://localhost:8080/realms/personal-finance/protocol/openid-connect/token \
-d "grant_type=client_credentials&client_id=mcp-personal-finance-agent&client_secret=$AGENT_CLIENT_SECRET" \
| jq -r .access_tokenその access_token を POST /mcp に対するBearerとして使用してください。エージェントはさらに、環境に UPSTREAM_API_KEY を設定する必要があります — 実際のユーザーがあらかじめ生成したPersonal Finance API Key(personal-finance-service の POST /api-keys)です。なぜなら、そのトークンはそのAPIの実際のユーザーを表していないからです。
詳細
AGENTS.md を参照 — 設計上の決定、既知のギャップ、そして認証パススルーが機能する理由(そしていつ機能しなくなるか)。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Agentic rails for complex workflows with receipts, fees, and MCP tool access.
Paid MCP tools behind one endpoint. Agents pay per call in USDC on Base via x402.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
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.17 npm-
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to manage personal expenses through natural language conversations. Supports adding, searching, and analyzing transactions with automatic categorization and financial insights.3MIT
- AlicenseBqualityBmaintenanceEnables agent-friendly access to Monarch Money finances, including accounts, transactions, budgets, cash flow, and mutations through structured MCP tools.33MIT
- FlicenseCqualityCmaintenanceEnables users to add expenses, retrieve expenses by date range, and get spending summaries by category through MCP tools.4-