Copilot Money MCP
Copilot Money MCPサーバー
ローカルのCopilot Moneyデータを使用して、AIで個人の財務状況を照会・管理する
免責事項
これは独立したコミュニティ主導のプロジェクトであり、Copilot Moneyやその親会社とは一切関係がなく、承認や提携も受けていません。 このツールは、ローカルにキャッシュされたデータに対してAIによるクエリを可能にするために、独立した開発者によって作成されました。「Copilot Money」は、それぞれの所有者の商標です。
Related MCP server: LunchMoney MCP Server
概要
AIアシスタントがあなたのCopilot Moneyの個人財務データにアクセスできるようにするMCPサーバーです。Mac上のローカルにキャッシュされたFirestoreデータベース(LevelDB + Protocol Buffers)から読み取ります。読み取りは100%ローカルで行われ、ネットワークリクエストは一切発生しません。
支出、投資、予算、目標などに関する17種類の読み取りツールを備えており、取引、口座、保有資産、残高、カテゴリ、定期的な支払い、予算、目標、投資パフォーマンスを照会できます。
プライバシー第一
私たちは、あなたのデータを収集、保存、または本プロジェクトが運営するサーバーへ送信することは一切ありません(そのようなサーバー自体が存在しません)。詳細はプライバシーポリシーをご覧ください。
分析、テレメトリ、追跡は一切行いません
読み取りは完全にローカルで行われ、ネットワークリクエストはゼロです
オープンソース — コードを自身で検証可能です
[!IMPORTANT] AIプロバイダーに関する注意点。 このサーバー自体はローカルで動作し、本プロジェクトが運営するサーバーへデータを送信することはありませんが、接続先のAIアシスタント(Claude、ChatGPT、Geminiなど)は、質問に回答する過程であなたのCopilot Moneyデータを確認することになります。 つまり、あなたの財務データは、選択したモデルのプロバイダー(Anthropic、OpenAI、Googleなど)に送信され、処理されることになります。これは、そのプロバイダー自身のプライバシーポリシーおよびデータ保持条件に従います。
このMCPサーバーをホスト型AIモデルで使用することで、あなたは自身の財務データをそのAIプロバイダーと共有することに同意したことになります。 このトレードオフを許容できる場合のみ、このツールを使用してください。そうでない場合は、公式のCopilot Money統合を待つか、完全にローカルで動作するモデルの使用を検討してください。
クイックスタート
前提条件
Node.js 18+ (Claude Desktopに同梱されています)
Copilot Money (macOS App Store版)
Claude Desktop、Cursor、またはMCP互換クライアント
Claude Desktopでのインストール
Releasesから最新の
.mcpbバンドルをダウンロードします.mcpbファイルをダブルクリックしてClaude DesktopにインストールしますClaude Desktopを再起動します
財務に関する質問を始めてください!
npmでのインストール
npm install -g copilot-money-mcp次に、Claude Desktopの設定ファイル(~/Library/Application Support/Claude/claude_desktop_config.json)に追加します:
{
"mcpServers": {
"copilot-money": {
"command": "copilot-money-mcp"
}
}
}Cursorでのインストール
パッケージをグローバルにインストールします:
npm install -g copilot-money-mcpCursorの設定(
Cmd + ,)を開き、Features > MCP Serversを選択しますサーバー設定を追加します:
{
"mcpServers": {
"copilot-money": {
"command": "copilot-money-mcp"
}
}
}できること
支出分析
「先月、外食にいくら使った?」
「過去30日間のAmazonでの購入をすべて表示して」
「今年の上位5つの支出カテゴリは何?」
get_transactions、get_categoriesを使用し、日付範囲、テキスト検索、カテゴリフィルタを活用します。
口座概要
「全口座の純資産はいくら?」
「過去6ヶ月間の当座預金口座の残高を月次で表示して」
「注意が必要な銀行接続はどれ?」
get_accounts、get_balance_history、get_connection_statusを使用します。
投資ポートフォリオ
「現在の保有資産と合計リターンは?」
「過去1年間のAAPLの価格履歴を表示して」
「今四半期の時間加重収益率は?」
get_holdings、get_investment_prices、get_securities、get_investment_performance、get_twr_returnsを使用します。
予算と目標
「今月の予算は順調?」
「緊急資金の進捗はどう?」
「過去6ヶ月間の目標達成履歴を表示して」
get_budgets、get_goals、get_goal_historyを使用します。
サブスクリプションと定期支払い
「どんなサブスクリプションを支払っている?」
「毎月の定期的な支払いにいくら使っている?」
get_recurring_transactionsを使用します。
利用可能なツール
読み取りツール (17)
ツール | 説明 |
| 取引をフィルタリングして照会(日付範囲、カテゴリ、加盟店、金額、口座、場所、テキスト検索、特殊タイプ(海外、返金、重複、HSA対象))。 |
| 残高付きの全口座をリスト化し、タイプ(当座、普通、クレジット、投資)でフィルタリング。純資産計算を含む。 |
| 取引数と支出合計を含むカテゴリをリスト化。リスト、ツリー、検索ビューをサポート。 |
| 頻度、コスト、次回予定日を含むサブスクリプションや定期的な支払いを特定。 |
| 支出と制限額の比較を含む予算を取得。 |
| 目標金額、進捗、月々の拠出額を含む財務目標を取得。 |
| 日次データと拠出記録を含む、目標の月次進捗スナップショット。 |
| 時間経過に伴う口座の日次残高スナップショット。日次、週次、月次の粒度をサポート。 |
| ティッカー、数量、価格、取得原価、合計リターンを含む現在の投資保有資産。 |
| 株式、ETF、投資信託、暗号資産の履歴価格データ(日次+高頻度)。 |
| 比率、日付、倍率を含む株式分割履歴。 |
| 証券ごとの投資パフォーマンスデータ。 |
| 投資保有資産の月次時間加重収益率(TWR)データ。 |
| 証券マスターデータ(ティッカー、名称、タイプ、価格、識別子(ISIN/CUSIP))。 |
| リンクされた金融機関の同期状態(最終同期タイムスタンプやエラーを含む)。 |
| ローカルキャッシュのメタデータ(日付範囲、取引数、キャッシュの経過時間)。 |
| ディスクからデータを再読み込み。キャッシュは5分ごとに自動更新されます。 |
設定
キャッシュTTL
サーバーはデータをメモリ内に5分間キャッシュします。環境変数で設定可能です:
# Set cache TTL to 10 minutes
COPILOT_CACHE_TTL_MINUTES=10 copilot-money-mcp
# Disable caching (always reload from disk)
COPILOT_CACHE_TTL_MINUTES=0 copilot-money-mcprefresh_databaseツールを使用して手動で更新することも可能です。
デコードタイムアウト
大規模なデータベース(500MB以上)の場合、デコードタイムアウト(デフォルト:90秒)を増やしてください:
# Via environment variable
DECODE_TIMEOUT_MS=600000 copilot-money-mcp
# Via CLI flag
copilot-money-mcp --timeout 6000001GBを超えるデータベースの場合は、Node.jsのメモリも増やしてください:
{
"mcpServers": {
"copilot-money": {
"command": "node",
"args": [
"--max-old-space-size=4096",
"/path/to/copilot-money-mcp/dist/cli.js",
"--timeout", "600000"
]
}
}
}サポートされている日付期間
periodパラメータは以下のショートカットをサポートしています:
this_month last_month last_7_days last_30_days last_90_days ytd this_year last_year
既知の制限事項
ローカルキャッシュへの依存
このサーバーはクラウドではなく、Copilot MoneyのローカルFirestoreキャッシュから読み取ります。Firestoreのオフライン永続化機能は、アプリがこれまでに取得したすべてのドキュメントをキャッシュするため、ローカルデータベースには通常、アプリで閲覧したすべての取引、口座、予算、目標、その他のデータが含まれています。デフォルトのFirestoreキャッシュサイズは100MB(数万件の取引に十分)であり、古いドキュメントは制限を超えた場合にのみLRUガベージコレクションによって削除されます。
キャッシュされるデータを最大化するには: Copilot Moneyアプリを開き、データ(取引履歴、口座、予算)を閲覧して、それらが取得されローカルにキャッシュされるようにしてください。
トラブルシューティング
データベースが見つからない
「Database not available」と表示される場合:
Copilot Moneyがインストールされており、データが同期されていることを確認してください
データベースの場所を確認してください:
~/Library/Containers/com.copilot.production/Data/Library/Application Support/firestore/__FIRAPP_DEFAULT/copilot-production-22904/mainディレクトリ内に
.ldbファイルが存在することを確認してくださいカスタムパスを指定してください:
copilot-money-mcp --db-path /path/to/database
デコードワーカーがタイムアウトした
「Decode worker timed out」と表示される場合:
タイムアウトを増やしてください:
copilot-money-mcp --timeout 300000(5分)1GB以上のデータベースの場合は、Node.jsのメモリも増やしてください:
node --max-old-space-size=4096 dist/cli.js --timeout 300000
取引が見つからない
Copilot Moneyアプリを開き、同期を待ってください
データベース構造が変更された可能性があります — Issueを作成してください
貢献
開発環境のセットアップ、アーキテクチャ、新しいツールの追加方法についてはCONTRIBUTING.mdを参照してください。
ライセンス
MITライセンス - 詳細はLICENSEを参照してください。
謝辞
Available Tools
14 toolsget_accountsARead-only
Get all accounts with balances, plus summary fields: total_balance (net worth = assets minus liabilities), total_assets, and total_liabilities. Optionally filter by account type (checking, savings, credit, investment). Checks both account_type and subtype fields for better filtering (e.g., finds checking accounts even when account_type is 'depository'). By default, hidden accounts are excluded. name is your Copilot nickname when set, else the provider label — it is user-editable, so key on account_id, never on name. Default rows are terse: account_id, name, account_type, subtype, current_balance, institution_name, iso_currency_code, item_id, plus user_hidden / user_deleted when set (the flags include_hidden controls). That drops the other ~35 document fields. PARTIAL list of what goes, not exhaustive: the embedded holdings array (get_holdings covers it), institution logo images plus their logo_content_type (base64-encoded, several KB each — this PAIR is where the removed include_logos flag went, and the flag gated both, so request them together), mask (the last-4 digits humans identify an account by), available_balance, limit, institution_id, creation_timestamp (when the account was created in Copilot, YYYY-MM-DD — written only on newer rows, so absent means unknown, not old), the denormalized official_name / original_* name dupes, and user_id. Any document field is requestable by name: fields: ["default", "mask", "available_balance"], or "all" / "*" for full rows. include_logos was removed in v3.0.0 — passing it now raises an error naming this migration.
Inputs: fields, account_type, include_hidden.
get_balance_historyARead-only
Get daily balance snapshots for accounts over time. Each entry returns current_balance, available_balance, limit, account_id, and account_name. The response also includes an accounts array listing the distinct account IDs in the paginated page. Requires a granularity parameter (daily, weekly, monthly) to control response size. Weekly and monthly modes downsample by keeping the last data point per period. Filter by account_id and date range.
Inputs: granularity (required), limit, offset, end_date, +2 more.
get_budgetsARead-only
Get budgets from Copilot's native budget tracking. Returns the current-month effective budget per category plus the full amounts map of per-month overrides for history lookups. For parent categories, the returned amount is the resolved total (children + rollovers) that Copilot displays in the Budgets view. Totals use the current-month effective amount.
Inputs: active_only.
get_cache_infoARead-only
Get information about the local data cache, including the date range of cached transactions and total count. Useful for understanding data availability before running historical queries. This tool reads from a local cache that may not contain your complete transaction history. Also reports decode_health: per-collection counts of documents dropped on schema validation failure (a "degraded" status means some cached documents are missing from results).
Inputs: no named parameters.
get_categoriesARead-only
Unified category retrieval tool. Supports multiple views: list (default) - user categories with transaction counts/amounts for a time period; tree - user categories as hierarchical tree; search - search user categories by keyword. Use parent_id to get subcategories. For list view, use period (e.g., "this_month") or start_date/end_date to filter by date. Includes all categories, even those with $0 spent (matching UI behavior).
Inputs: view, query, period, end_date, +2 more.
get_connection_statusARead-only
Get connection status for all linked financial institutions. Shows per-institution sync health including last successful update timestamps for transactions and investments, login requirements, and error states. Use this to check when accounts were last synced or to identify connections needing attention. Also reports decode_health: per-collection counts of cached documents dropped on schema validation failure (a "degraded" status means some documents are missing from results). Also reports scheduled_smoke: the last scheduled API-drift check with timestamp, or null if the weekly job is not installed. Only "fail" means the API drifted; "auth-missing" and "incomplete" mean drift is unknown.
Inputs: no named parameters.
get_goal_historyARead-only
Get monthly progress snapshots for financial goals. Returns current_amount, target_amount, daily data points, and contribution records per month. Filter by goal_id or month range (YYYY-MM). Cache-only: no live-mode (--live-reads) counterpart exists because Copilot's GraphQL endpoint does not expose goal data, so this tool always returns cached LevelDB data regardless of the --live-reads flag.
Inputs: limit, offset, goal_id, end_month, +1 more.
get_goalsARead-only
Get financial goals from Copilot's native goal tracking. Retrieves user-defined savings goals, debt payoff targets, and investment goals. Returns goal details including target amounts, monthly contributions, status (active/paused), start dates, and tracking configuration. Calculates total target amount across all goals. Cache-only: no live-mode (--live-reads) counterpart exists because Copilot's GraphQL endpoint does not expose goal data, so this tool always returns cached LevelDB data regardless of the --live-reads flag.
Inputs: active_only.
get_holdingsARead-only
Get current investment holdings with position-level detail. Returns ticker, name, quantity, current price, equity value, average cost, and total return per holding. Joins data from account holdings, securities, and optionally historical snapshots. Filter by account or ticker symbol. Note: cost_basis may be unavailable for cash-equivalent positions. Positions on hidden and merged accounts are EXCLUDED by default, matching get_accounts — pass include_hidden: true for them. Do NOT sum holdings as portfolio value: unvested stock-plan shares are reported as holdings, so the sum can far exceed the investment balance; with --live-reads use get_investment_balance_live for the total.
Inputs: limit, offset, account_id, ticker_symbol, +2 more.
get_investment_pricesARead-only
Get investment price history for portfolio tracking. Returns one row per (security, period) for stocks, ETFs, mutual funds, and crypto. Filter by ticker symbol, date range, or price type (daily/hf). By default each row is TERSE: the security, the period, and its latest price (latest_price / latest_at) — enough to answer "what is this worth". The full price series (prices, an epoch-millis map) is most of a full row and roughly quadruples response size, so it is omitted unless requested via fields; ask for it only when you need the time series itself, not a current value.
Inputs: limit, fields, offset, end_date, +3 more.
get_investment_splitsARead-only
Get stock split events from the local Firestore cache. Returns one row per (security, effective_date) with the adjustment multiplier (e.g. 0.1 for a 10-for-1 split — multiply pre-split prices/quantities by this value to convert to the post-split equivalent). Joined with the securities collection so each row includes ticker and name. IMPORTANT: prices returned by get_investment_prices and get_investment_prices_live are ALREADY split-adjusted by Copilot. Use this tool only when you need the split events themselves (e.g., for narrative or historical-analysis purposes) — you do NOT need to apply these multipliers to the prices yourself. Securities that have never split are not included in the output. Coverage is limited to securities Copilot currently syncs in your local cache (typically currently-held or recently-held).
Inputs: limit, offset, end_date, start_date, +1 more.
get_recurring_transactionsARead-only
Identify recurring/subscription charges. Combines two data sources: (1) Pattern analysis - finds transactions from same merchant with similar amounts, returns estimated frequency, confidence score, and next expected date. (2) Copilot's native subscription tracking - returns user-confirmed subscriptions stored in the app. Both sources are included by default for comprehensive coverage. Rows in the pattern-analysis recurring array are terse by default: merchant, normalized_merchant, occurrences, average_amount, total_amount, frequency, confidence, category_name, last_date, next_expected_date. That excludes the matched transactions array (already reachable via get_transactions) and confidence_reason (prose explaining the score) — see fields for how to get either back.
Inputs: name, fields, period, end_date, +4 more.
get_transactionsARead-only
Reads from the local LevelDB cache, which may lag behind Copilot's server if the macOS app hasn't synced recently. For real-time data use --live-reads with get_transactions_live. Unified transaction retrieval tool. Supports multiple modes: (1) Filter-based: Use period, date range, category, merchant, amount filters. (2) Single lookup: Provide transaction_id to get one transaction. (3) Text search: Use query for free-text merchant search. (4) Special types: Use transaction_type for foreign, refunds, credits, duplicates, hsa_eligible, tagged. (5) Location-based: Use city or lat/lon with radius_km. (6) Tag filter: Use tag to find transactions with a specific tag. Rows are TERSE by default: transaction_id, date, amount, name, category_name, account_id, item_id, pending, excluded, internal_transfer. excluded answers "is this row excluded from spending?" — the raw per-transaction flag OR the row's category being user-excluded, the same union exclude_excluded filters on — so it is true for a row Copilot never stamped individually. It is therefore nearly always false in a default response, since exclude_excluded already removed those rows; it carries information only when you pass exclude_excluded: false. A cache row carries ~30 fields and most callers need a handful, so the rest are excluded unless asked for. PARTIAL list of what that drops, not exhaustive: Plaid metadata (plaid_category_id, plaid_category_strings, plaid_deleted), internal IDs (category_id, recurring_id, goal_id, parent_transaction_id, children_transaction_ids, user_id), enrichment and intelligence fields (normalized_merchant — still the normalized merchant name when requested — intelligence_suggested_category_ids, suggestion_ids, original_name), tag_ids, review state (user_reviewed, user_note, user_changed_type — true only when a human re-typed the row, so do not second-guess its type), location (city, region, country, lat/lon), and flags like is_amazon/from_investment. amazon is worth naming because nothing else hints it exists: on rows Copilot matched to an Amazon order it carries the receipt — {order_id, items: [{id, name, link, price, quantity}], other: {giftWrapping, rewards, savings, shipping, tax}} — so fields: ["default", "amazon"] answers "what was in this order" without an exported CSV. Ask for any of them by name with fields: ["default", "tag_ids"], or take the whole document with fields: ["all"] (or "*"). category_name is always resolved to a human-readable name. compact was removed in v3.0.0 — passing it now raises an error naming this migration.
Inputs: lat, lon, tag, city, +22 more.
refresh_databaseARead-only
Refresh the in-memory cache by reloading data from the local Copilot Money database. Use this when the user has recently synced new transactions in the Copilot Money app, or when you suspect the cached data is stale. The cache also auto-refreshes every 5 minutes. Returns the updated cache info after refresh.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct resource (transactions, accounts, holdings, budgets, goals, categories, splits, connection/cache status), and the descriptions steer callers correctly for the closest pairs (get_goals vs get_goal_history, get_accounts vs get_balance_history, get_cache_info vs get_connection_status). The main ambiguity comes from get_transactions being a six-mode mega-tool and from multiple tools referencing absent `_live` counterparts (get_transactions_live, get_investment_prices_live, get_investment_balance_live), which an agent cannot call.
All tools use snake_case with a get_<resource> pattern, and the single exception (refresh_database) still follows the verb_noun convention. Resource names are predictable and parallel across domains (get_goals/get_goal_history, get_holdings/get_investment_prices).
14 tools is well within the sweet spot for a personal-finance server covering transactions, accounts, investments, budgets, goals, and cache management. Each tool maps to a real domain object and none look redundant or padding.
Read coverage is thorough across every major domain: accounts, transactions (with search/filter/location/tag modes), balance history, budgets, categories, goals plus goal history, holdings, prices, splits, recurring charges, and cache/connection health. The gap is the absence of any mutation tools (edit transaction category, adjust budget/goal, create tags), so agents can analyze but not change anything.
Maintenance
Related MCP Connectors
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
The Ramp MCP server enables users to securely connect Ramp with AI assistants like ChatGPT and Claude to query financial data and take actions using natural language. It transforms Ramp's developer API into a SQL interface that LLMs can query, allowing admins to analyze spend trends, identify cost savings, and run complex SQL analyses on comprehensive datasets (transactions, purchase orders, vendors, users), while all users can manage cards, view transactions, request reimbursements, and get expense policy answers.
Read-only finance MCP server. Connects your banks, cards, payment apps, books and payroll into one ledger for your AI. Can't move money. Open source (AGPL-3.0), free during beta.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that provides AI assistants access to stock market data including financial statements, stock prices, and market news through a Model Context Protocol interface.112,331MIT
- AlicenseAqualityBmaintenanceAn MCP server implementation that provides programmatic access to personal finance data through LunchMoney's API, enabling AI assistants to manage transactions, budgets, categories, and assets.59394 npm115MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Splitwise expenses with atomic duplicate prevention, smart fuzzy matching, and support for flexible split ratios between two people.MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to perform comprehensive Microsoft Excel operations including data analysis, cell editing, advanced formatting, and VBA execution on Windows systems. It provides a structured workflow for managing workbooks and worksheets through a dedicated Model Context Protocol interface.54MIT