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 集成