plaid-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@plaid-mcp show me my account balances and recent transactions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
plaid-mcp
A local-first, Cloudflare-Workers-ready TypeScript Model Context Protocol (MCP) server for querying your personal banking accounts, transactions, recurring bills, liabilities, and investments via Plaid.
Agent Self-Setup (Zero-Friction)
Want your AI coding agent (Antigravity, Claude Code, Codex, Cursor, etc.) to install and wire this up for you automatically? Paste this into your agent:
Set up
https://github.com/cikasfm/plaid-mcpfor me following the Agent Runbook in its README.
Agent Runbook
If you are an AI agent setting up plaid-mcp for the user, follow these steps in order:
Prerequisites check
Verify Node.js
>= 18(node -v) andnpmare available.Choose an install directory (default:
~/dev/plaid-mcp).
Clone, install, and build
git clone https://github.com/cikasfm/plaid-mcp.git ~/dev/plaid-mcp cd ~/dev/plaid-mcp npm install npm run buildConfigure Plaid credentials securely (DO NOT ask the user to paste secrets in chat)
Ask the user to copy their Plaid
client_idandsecretfrom the Plaid Dashboard and run these commands locally in their own terminal (keeps secrets out of chat history, git, and MCP config files):macOS (
pbpaste):mkdir -p ~/.plaid-mcp && chmod 700 ~/.plaid-mcp # After copying PLAID_CLIENT_ID: printf 'PLAID_CLIENT_ID=%s\n' "$(pbpaste | tr -d '\r\n')" > ~/.plaid-mcp/.env # After copying PLAID_SECRET (use PLAID_ENV=sandbox to test first, or production for live banks): printf 'PLAID_SECRET=%s\nPLAID_ENV=production\nPLAID_PRODUCTS=transactions\nPLAID_COUNTRY_CODES=US\n' "$(pbpaste | tr -d '\r\n')" >> ~/.plaid-mcp/.env chmod 600 ~/.plaid-mcp/.envLinux / Windows: Instruct the user to copy
.env.exampleto~/.plaid-mcp/.env, fill inPLAID_CLIENT_ID,PLAID_SECRET, andPLAID_ENV(productionorsandbox), and restrict permissions (chmod 600 ~/.plaid-mcp/.env).Optional: If the user wants brokerage holdings (
get_investments) or APR/loan details (get_liabilities) and has those products enabled in Plaid, setPLAID_PRODUCTS=transactions,investments,liabilities.
Link bank accounts via local Plaid Link
Once the user confirms
~/.plaid-mcp/.envis written, start the local Link helper in the background:node ~/dev/plaid-mcp/dist/link.js(For quick Sandbox testing without a browser, run
node ~/dev/plaid-mcp/dist/link.js --sandboxinstead.)Tell the user to open
http://localhost:8787, click Connect Bank via Plaid Link, and link all desired institutions.Tokens are saved locally to
~/.plaid-mcp/tokens.json(0600).Important: Once the user says they are done linking banks, stop the background
link.jsserver so the local token-exchange endpoint is not left running.
Register
plaid-mcpin the user's MCP configMerge the following entry into the existing
mcpServersobject (do not overwrite other servers):Antigravity:
~/.gemini/config/mcp_config.jsonClaude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.jsonCursor:
~/.cursor/mcp.json
{ "mcpServers": { "plaid-mcp": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/plaid-mcp/dist/index.js"] } } }(Replace
/ABSOLUTE/PATH/TO/plaid-mcpwith the resolved absolute path—never use~inargs.)Verify end-to-end
Run
node ~/dev/plaid-mcp/dist/link.js --listto confirm all linked institutions are saved.Once the MCP client loads
plaid-mcp, calllist_institutionsandget_accountsto verify live balances and present a clean summary to the user.
Related MCP server: Pluggy Finance MCP
Tools Exposed
Tool | Description |
| List connected banks / Plaid Items |
| List all accounts with balances (uses |
| Query & filter transactions by date, institution, account, merchant, category, and amount |
| Aggregate spend & income by category, month, and top merchants (excludes internal transfers & overdraft protection transfers by default) |
| Incremental |
| Recurring bills, subscriptions, and paychecks |
| Credit card APRs, minimum payments, and loan balances (if enabled) |
| Brokerage holdings and securities (if enabled) |
Manual CLI Reference
# Link one or more banks in your browser (http://localhost:8787)
npm run link
# Instantly link Plaid's sandbox test bank (requires PLAID_ENV=sandbox)
npm run link -- --sandbox
# List currently linked banks
npm run link -- --list
# Remove a linked bank
npm run link -- --remove <item_id>Architecture & Cloudflare Workers Readiness
src/plaid-client.ts— Pure Web-standardfetchPlaid REST client (zero Node-only dependencies).src/server.ts— Runtime-agnosticMcpServerfactory (createPlaidMcpServer(client, store)).src/types.ts— PluggableTokenStoreinterface so local JSON storage (src/store.ts) can be swapped for Cloudflare KV / D1 / Durable Objects without changing any MCP tool logic.src/index.ts— Local Stdio MCP entrypoint.src/link.ts— Local browser Plaid Link helper with OAuth redirect support (/oauth-return).
To deploy to Cloudflare Workers:
Implement
TokenStorebacked by Cloudflare KV or D1.Mount
createPlaidMcpServer(client, kvStore)behind Cloudflare'sagents(McpAgent) or Streamable HTTP transport with OAuth/Bearer auth.
Security Notes
All API keys (
~/.plaid-mcp/.env) and Plaidaccess_tokens (~/.plaid-mcp/tokens.json) are stored strictly outside this repository with0600permissions.All MCP tools are read-only—they cannot initiate transfers, payments, or trades.
Never commit
.envortokens.json.
Available Tools
8 toolsget_accountsC
List all linked bank, credit card, loan, and investment accounts with their balances.
Inputs: institution, realtime_balance.
get_investmentsA
Fetch investment holdings and securities across linked brokerage accounts (requires the investments product to be enabled for the linked item).
Inputs: institution.
get_liabilitiesA
Fetch credit card APRs, minimum payments, statement balances, mortgages, and student loans (requires the liabilities product to be enabled for the linked item).
Inputs: institution.
get_recurring_transactionsB
List detected recurring inflows (paychecks, deposits) and recurring outflows (subscriptions, utilities, rent, bills).
Inputs: institution.
get_spending_summaryA
Aggregate spending and income by category, month, and top merchants over a date range. Ideal for building financial reports, cash-flow analysis, and recommendations without flooding context with raw transactions.
Inputs: end_date, start_date, institution, top_merchants, +1 more.
get_transactionsA
Fetch and filter bank/credit card transactions across linked accounts for a date range. Note: in Plaid, positive amounts are outflows/expenses and negative amounts are inflows/income/refunds.
Inputs: limit, category, end_date, account_id, +6 more.
list_institutionsA
List all connected financial institutions (Plaid Items) available for querying in the current Plaid environment.
Inputs: no named parameters.
sync_transactionsA
Run Plaid's incremental /transactions/sync for one or all linked institutions and persist the updated sync cursor.
Inputs: institution, reset_cursor.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The four transaction-related tools are cleanly separated: get_transactions fetches raw data, get_spending_summary aggregates it, sync_transactions manages the incremental cursor, and get_recurring_transactions detects subscriptions/paychecks. Each tool targets a distinct resource or operation with no genuine overlap.
All names are snake_case with a verb_noun structure (get_accounts, sync_transactions, list_institutions), which is highly predictable. The minor blemish is mixing 'get_' and 'list_' for retrieval operations (list_institutions vs get_accounts), but this is a small deviation.
Eight tools is well within the sweet spot and each maps to a concrete Plaid data domain (accounts, transactions, spending, recurring, liabilities, investments). No tool feels redundant or filler.
The read/query surface is broad: institutions, accounts, raw and aggregated transactions, incremental sync, recurring streams, liabilities, and investments. Gaps exist around item lifecycle (creating a link token, removing/disconnecting an item) and the higher-level /identity or balance endpoints, but core analysis workflows are covered.
Maintenance
Related MCP Connectors
Read-only bank & investment accounts via Plaid: balances, holdings, transactions, SQL analytics.
Read-only access to your bank, investment, and crypto accounts: balances, transactions, holdings.
Read-only cash flow, spending, subscriptions and transaction search from your US and Canadian banks.
Read-only access to your Finch finances: accounts, transactions, spending, net worth, goals.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables read-only access to personal bank accounts via the TrueLayer API, allowing querying of accounts, balances, transactions, and generating financial analytics such as spending by category, subscriptions, and monthly summaries.91MIT
- FlicenseBqualityCmaintenanceProvides read-only access to personal financial data via Pluggy, including accounts, transactions, investments, credit cards, and aggregations like total balance, monthly expenses, and net worth.18-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to query linked bank and credit card accounts through Plaid, covering balances, transaction search, recurring charges, liabilities, and investment holdings. All access is read-only and runs locally, so no tool can move money or change anything at a bank.MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only access to connected personal and business bank and credit card accounts for cash flow analysis, expense and subscription tracking, transaction search, and finance reviews.MIT