Personal Finance Mcp

io.github.JosueM1109由 GitHub 帳號 JosueM1109 發布v1.0.0更新於 Nov 3, 2026

Self-hosted, read-only MCP server that connects your banks and investments via Plaid.

發布方自己的服務:Finance Foundation

已驗證STDIO僅桌面資料庫金融

概覽

AI 產生的概覽

自架、唯讀的 MCP 伺服器,透過 Plaid 連結你自己的銀行、信用卡、貸款與券商帳戶,讓助理回答個人財務問題。

可以做什麼
  • 列出所有已連結機構的帳戶,並取得即時目前餘額與可用餘額
  • 依日期區間查詢交易,並依商家、名稱或交易對象搜尋
  • 辨識訂閱等週期性收入與支出
  • 讀取信用卡、學貸、房貸等負債的利率與還款資訊
  • 查看投資持股以及買入、賣出與股利紀錄
  • 檢查各已連結機構的狀態,標示需要重新驗證的銀行
適用情境
當你希望助理用自然語言回答關於自己餘額、支出、訂閱、負債與投資的問題,且不想依賴第三方彙整服務,並願意自行部署、逐一連結銀行時適用。
執行需求
以本機 Python 3.11+ 程序執行(或使用提供的 Docker 映像),透過 HTTP 連接埠提供 MCP 服務。需要一個已啟用 Transactions、Liabilities 與 Investments 產品的 Plaid 帳戶,以及 PLAID_CLIENT_ID 與 PLAID_SECRET,並以 PLAID_ENV 選擇 production 或 sandbox。每家銀行須透過內附的本機 link helper 連結一次,產生的存取權杖需存入環境變數。
安裝前請注意
伺服器持有 Plaid 憑證與各銀行的存取權杖,可讀取所有已連結帳戶;務必避免提交到版本庫,且不要在沒有驗證機制或私有網路保護下暴露端點。設計上為單一使用者、唯讀,不應加入轉帳或修改資料的工具。你需自行承擔身為 Plaid 客戶的法遵責任,帳戶資料會傳送至 Plaid 的 API。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Personal Finance Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

personal-finance-mcp

[License: MIT] [Python 3.11+] [MCP]

Unofficial. This project is not affiliated with, endorsed by, or sponsored by Plaid Inc. "Plaid" is a trademark of Plaid Inc. This is a self-hosted client that talks to Plaid's API using credentials you supply.

A self-hosted, read-only MCP server that connects your banks, credit cards, loans, and brokerage accounts (via Plaid) to an MCP client like Claude Code. Ask questions about your own finances in plain English — no third-party aggregator (Monarch, Mint, etc.) involved.

What you can ask

  • "What's my total balance across all accounts?"
  • "Show me transactions over $100 in the last 30 days."
  • "Which subscriptions am I still paying for?"
  • "How much did I spend on groceries last month?"
  • "Any bank that needs re-authentication?"

Example session (illustrative):

you    : What did I spend on groceries last month?claude : [calls get_transactions]         $487.23 across 14 transactions. Top merchants:         Whole Foods ($198), Trader Joe's ($156), Safeway ($89).
you    : Any subscriptions I'm still paying for?claude : [calls get_recurring_transactions]         7 active recurring outflows totaling $142/mo:         Netflix ($15.99), Spotify ($11.99), NYT ($4), ...

Tools

All 9 tools are read-only. Each returns {<data>: [...], "warnings": [...]} so one broken bank doesn't break the whole query.

ToolWhat it does
list_accountsEvery account across every linked bank, with balances
get_balancesLive current + available balances (optionally filtered by account)
get_transactionsTransactions in a date range (up to 2 years back)
search_transactionsKeyword search across merchant / name / counterparty
get_recurring_transactionsDetected recurring inflow + outflow streams
get_liabilitiesCredit cards, student loans, mortgages with APRs and payment details
get_investment_holdingsCurrent holdings with symbol + security metadata
get_investment_transactionsBuy / sell / dividend history in a date range
get_institutions_statusHealth of each linked bank (surfaces re-auth needs)

Quickstart

Requires Python 3.11+, a Plaid account (free Trial plan), and an MCP client.

1. Plaid setup

  1. Sign up at https://dashboard.plaid.com/signup → choose the Trial plan (free, 10 Items).
  2. Team Settings → Products: enable Transactions, Liabilities, Investments.
  3. Team Settings → API: copy your client_id and production secret.

2. Install

bash
git clone https://github.com/JosueM1109/personal-finance-mcp.gitcd personal-finance-mcppython3.11 -m venv .venv && source .venv/bin/activatepip install -r requirements.txtcp .env.example .env   # then fill in PLAID_CLIENT_ID and PLAID_SECRETpytest -v              # sanity check

3. Link each bank

Run once per bank you want to connect:

bash
uvicorn link_helper:app --port 8765

Open http://localhost:8765, click Link a bank, complete Plaid Link. The terminal prints a line like PLAID_TOKEN_CHASE=access-prod-xxx... — paste it into .env and repeat for each bank.

4. Run it

bash
python server.py   # serves on http://localhost:8000/mcp

5. Add to Claude Code

bash
claude mcp add --transport http personal-finance http://localhost:8000/mcp

Try "list my accounts" to confirm.

Deployment

For a deployment you can use from anywhere:

  • Docker (included): docker build -t personal-finance-mcp . && docker run --rm -p 8000:8000 --env-file .env personal-finance-mcp
  • Any Python host (Fly.io, Railway, Raspberry Pi + Tailscale, a VPS): set the env vars from .env.example, expose /mcp over HTTPS, gate it with auth.
  • Prefect Horizon (what the author uses — $0 recurring cost): see docs/DEPLOYMENT.md for the full walkthrough.

Gate the endpoint. An exposed MCP endpoint with your tokens leaks every linked account. Use OAuth 2.1, Cloudflare Access, or bind to a private network only.

Security

  • Single-tenant. One deployment per person. Don't share.
  • Read-only. No tool mutates state at any institution. Don't add any that do.
  • Tokens live in env vars, never on disk. .env is gitignored.
  • You own Plaid compliance. You're the Plaid customer under your own account.

Before each deploy:

  • .env never committed: git log --all -- .env returns nothing
  • No real tokens in history: git log -S'access-prod-' --all returns only placeholders
  • Auth gate in front of the MCP endpoint (or localhost-only)
  • HORIZON=1 (or similar) set in deployment env, blocking link_helper.py there
  • Check get_institutions_status() every few weeks for re-auth needs

Troubleshooting

Tool returns empty despite real data. Plaid products weren't enabled when you linked the bank. Re-link with Transactions + Liabilities + Investments active. The tool surfaces PRODUCTS_NOT_SUPPORTED in warnings when this is the cause.

get_institutions_status() shows re_auth_required. The bank's Plaid session expired. Run link_helper.py in update mode — your existing access token stays the same. See docs/DEPLOYMENT.md.

Plaid Link shows a bank as "unsupported" (common with Amex). Usually an INSTITUTION_REGISTRATION_REQUIRED issue — OAuth banks need per-institution registration in the Plaid dashboard first. See docs/TROUBLESHOOTING.md.

More issues: docs/TROUBLESHOOTING.md.

Architecture

  • server.py — FastMCP server, 9 read-only tools.
  • plaid_client.py — Plaid SDK wrapper: SecretStr token redaction, 5-minute per-Item health cache, response shaping, structured error mapping.
  • link_helper.py — Local-only FastAPI app for Plaid Link. Refuses to run if HORIZON=1 is set.

Deeper dive (including why /transactions/get over /transactions/sync): docs/ARCHITECTURE.md.

Contributing

See CONTRIBUTING.md. Scope is deliberately narrow: read-only, single-tenant, Plaid-backed.

來源:README.md,提交 33e0343

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Finance 整合