SuperAPIAI Directory

personal-finance-mcp

github.com · AI developer platforms

Self-hosted, read-only access to bank, credit card, loan and brokerage accounts via Plaid: balances, transactions, recurring charges, liabilities and holdings.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

personal-finance-mcp is a self-hosted, read-only MCP (Model Context Protocol) server designed to connect personal bank, credit card, loan, and brokerage accounts to MCP clients (such as Claude Code) via Plaid, allowing users to query their own financial data using natural language. This project is unofficial, is not affiliated with Plaid Inc., and serves only as a self-hosted client that communicates with the Plaid API using the user's own credentials.

Purpose

The main purpose of this project is to allow users to query their own financial information directly through an MCP client without relying on third-party aggregators (such as Monarch, Mint, etc.). Users can ask questions such as "What is the total balance of all my accounts?" "Show transactions over $100 in the past 30 days." "What subscriptions am I still paying for?" "How much did I spend on groceries last month?" "Which banks need re-authentication?"

Main capabilities

The server provides 9 read-only tools, each returning data in the format {<data>: [...], "warnings": [...]}, so a problem with a single bank connection does not affect the entire query. The tools cover data such as balances, transactions, recurring expenses, liabilities, and holdings. None of the tools modify the state of any institution.

How to use

The following conditions must be met before use: Python 3.11+, a Plaid account (free Trial plan, supports 10 Items), and an MCP client.

  1. At https://dashboard.plaid.com/signup sign up and choose the Trial plan (free, 10 Items).
  2. In Team Settings → Products, enable Transactions, Liabilities, Investments.
  3. In Team Settings → API, copy the client_id and production secret.
  4. Connect each bank: run link_helper.py once, open http://localhost:8765,点击“Link a bank", and complete Plaid Link. The terminal will print a line like PLAID_TOKEN_CHASE=access-prod-xxx..., paste it into .env, and repeat this step for each bank.
  5. Add it to Claude Code and try "list my accounts" to confirm.

For deployments that need to be accessible from anywhere:

  • Docker (already 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, VPS): set the environment variables from .env.example, expose /mcp over HTTPS, and add authentication.
  • Prefect Horizon (used by the author, $0 recurring cost): see docs/DEPLOYMENT.md for the full steps.

Suitable scenarios

Suitable for users who want to self-host read-only access to personal financial data and query it using natural language. Especially suitable for developers or technical users using MCP clients such as Claude Code.

Limitations and security considerations

  • Single-tenant: each deployment is for one person only, do not share it.
  • Read-only: no tool modifies the state of any institution, do not add any tool that would modify state.
  • Tokens are stored in environment variables, never written to disk, and .env is included in gitignore.
  • Users are responsible for Plaid compliance themselves; the user is the customer under the Plaid account.
  • The MCP endpoint must be protected with authentication (OAuth 2.1, Cloudflare Access, or bind to a private network only), otherwise an exposed endpoint will leak all linked accounts.
  • Check before each deployment: .env has never been committed, there are no real tokens in history, there is an authentication gateway in front of the MCP endpoint (or it is limited to localhost), HORIZON=1 is set in the deployment environment to block link_helper.py, and check get_institutions_status() every few weeks to understand re-authentication needs.

TroubleshootingExclusions

  • The tool returns empty data but there is actually data: the Plaid products were not enabled when linking the bank. Relink and enable Transactions + Liabilities + Investments. The tool will show PRODUCTS_NOT_SUPPORTED in warnings.
  • get_institutions_status() shows re_auth_required: the bank's Plaid session has expired. Run link_helper.py in update mode; the existing access token remains unchanged. See docs/DEPLOYMENT.md.
  • Plaid Link shows the bank as "not supported" (common with Amex): this is usually an INSTITUTION_REGISTRATION_REQUIRED issue; OAuth banks require per-institution registration in the Plaid Dashboard first. See docs/TROUBLESHOOTING.md.

Project Structure

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

For more in-depth information (including why /transactions/get is used instead of /transactions/sync), see docs/ARCHITECTURE.md. For contribution guidelines, see CONTRIBUTING.md. The project scope is deliberately kept narrow: read-only, single-tenant, Plaid-based.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools