wealthapi-mcp
OfficialClick on "Install 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., "@wealthapi-mcpHow is my portfolio performing this year?"
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.
wealthapi-mcp
A small Model Context Protocol (MCP) server that lets Claude (or any MCP-compatible assistant) answer everyday portfolio questions about your wealthAPI account:
"What did I spend the most money on last month?" "How is my portfolio performing this year?" "Show me my five biggest positions." "Which of my investments lost the most value?"
It runs locally on your machine. Your bearer token never leaves your computer.
What is an MCP server?
MCP is an open protocol that lets an AI assistant call tools you control. The assistant
runs in one process (e.g. Claude Desktop); the MCP server runs as a separate process you
launch. They talk to each other over stdio using JSON-RPC: the assistant writes a
tools/call message to the server's stdin, the server runs the tool and writes the
result back to its stdout. That's the whole protocol.
Note the distinction: this is an MCP server, not an MCP plugin. There is no such thing as an MCP plugin — plugins (e.g. Claude Code plugins) extend the assistant itself, while an MCP server is a standalone process the assistant connects to over the protocol. Any MCP-compatible client (Claude Desktop, Claude Code, others) can use this server.
Concretely, this repo is a Node script. When Claude Desktop starts it, the script registers its tools, waits for tool calls, and when one arrives, makes an HTTPS request to the wealthAPI REST API on your behalf and returns a text summary. No state, no database, no server to maintain.
Read more at https://modelcontextprotocol.io.
Related MCP server: portfolio-mcp
The tools
Auth is a wealthAPI API token (wapi_key_…) carrying the read scopes (accounts:read,
investments:read, transactions:read, profile:read). All tools are read-only.
Accounts & cash flow
Tool | Wraps | Answers |
|
| "What accounts do I have?" |
|
| "Show my cash balance history" |
|
| "What is my portfolio worth (today / over time)?" |
|
| "What did I spend most on last month?" |
|
| "What subscriptions / fixed costs do I have?" |
|
| "Show my buys / sells / dividends" |
|
| "Income vs spending per month" |
|
| "What's my savings rate?" |
Portfolio & performance
Tool | Wraps | Answers |
|
| "What do I own and what is it worth?" |
|
| "Best / worst performers" |
|
| "How did my portfolio do this year?" |
|
| "How diversified am I by region / sector / asset type?" |
|
| "How risky is my portfolio?" |
|
| "What did I realize this year?" (tax season) |
Dividends
Tool | Wraps | Answers |
|
| "How much dividend income did I get per year / month?" |
|
| "When are my next dividend payments?" |
|
| "What's my dividend yield?" |
Market data & profile
Tool | Wraps | Answers |
|
| "Find Apple / this ISIN" |
|
| "What's the current price?" |
|
| "Is this stock expensive?" (P/E, P/B, F-Score) |
|
| "Which account is this?" |
The server also registers prompts (monthly_review, savings_rate_check,
subscription_audit, fixed_costs_summary, financial_health_check) that chain these
tools into guided analyses.
Tool registration is gated by SUPPORTED_TOOLS/SUPPORTED_PROMPTS in src/index.ts —
remove a name there to disable it without deleting code.
Install
You need Node 20+ and pnpm.
git clone git@github.com:wealthAPI-eu/wealthapi-mcp.git
cd wealthapi-mcp
pnpm install
pnpm buildGet a personal bearer token from wealthAPI (your account → API settings).
Add the server to Claude Desktop's config
(~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"wealthapi": {
"command": "node",
"args": ["/absolute/path/to/wealthapi-mcp/build/index.js"],
"env": {
"BEARER_TOKEN": "paste-your-token-here"
}
}
}
}Restart Claude Desktop. The active tools will appear in the tools panel of any chat, and you can ask portfolio questions in plain English.
How to add a new tool
The canonical example lives in src/tools/accounts.ts — list_accounts is ~50 lines
and shows the whole pattern.
Create or open the relevant file under
src/tools/and write aregister*Tools(server, client)function that callsserver.registerTool(...). Each call takes a name, a{ description, inputSchema }object (Zod for the input schema), and an async handler that returns{ content: [{ type: "text", text }] }.Import and call your
register*Toolsfromsrc/index.ts.pnpm buildand restart Claude Desktop.
That's it. No code generation, no registration files, no boilerplate.
Layout
src/
index.ts Bootstrap: McpServer + StdioServerTransport + register*Tools(...)
config.ts Reads BEARER_TOKEN from env; API base URL is fixed to production
api/
client.ts fetch wrapper: GET/POST, query strings, retry on 5xx/429
types.ts TS interfaces for API response shapes
tools/
accounts.ts list_accounts, get_account_balances, get_portfolio_valuation
allocation.ts get_portfolio_allocation
cash-flow.ts get_cash_flow_summary, get_savings_rate, detect_recurring_transactions
dividends.ts get_dividend_history, get_dividend_calendar, get_portfolio_yield
investments.ts list_investments, get_gainers_and_losers
performance.ts get_portfolio_performance, get_realized_gains
risk.ts get_risk_metrics
securities.ts search_symbols, get_quotes, get_security_fundamentals
transactions.ts list_transactions, list_bookings
user.ts whoami
util/
logger.ts Pino → stderr (stdout is reserved for MCP)
format.ts formatCurrency, formatDate, formatTable
test/
api/
client.test.ts Vitest unit test for the query-string builder
tools/
*.test.ts Unit tests for the pure aggregation helpersRun tests
pnpm testMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceA read-only MCP server that provides access to Charles Schwab account data and market information, including portfolio positions, real-time quotes, options chains, price history, and account balances through AI assistants.Last updated9MIT
- AlicenseAqualityCmaintenanceA portfolio analysis MCP server that enables AI agents to manage investment portfolios, fetch financial data from Yahoo Finance and CoinGecko, and perform advanced analysis like weight optimization and Monte Carlo simulations. It utilizes reference-based caching to efficiently handle large datasets without bloating the LLM's context window.Last updated261MIT
- Alicense-qualityDmaintenanceMCP server for Interactive Brokers TWS API that enables AI assistants to retrieve portfolio, account information, and real-time market prices.Last updated22Apache 2.0
- AlicenseAqualityAmaintenanceThis MCP server connects AI assistants to a Public.com brokerage account, enabling natural language trading of stocks, options, and crypto, along with portfolio management, quotes, and orders.Last updated3566Apache 2.0
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wealthAPI-eu/wealthapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server