
Wealthapi
eu.wealthapi由 wealthapi.eu 发布v0.1.0更新于 Oct 24, 2026
Read-only MCP server for wealthAPI: portfolio, cash-flow, and dividend insights for AI assistants.
概览
让助手以只读方式回答 wealthAPI 账户问题:账户、现金流、投资组合表现、股息与行情数据。
- 可以做什么
- 这是一个本地 stdio 服务器,把 wealthAPI REST API 封装为只读工具。涵盖账户与余额、交易与周期性支出、现金流汇总与储蓄率、投资组合估值、配置、表现、风险指标与已实现收益、股息历史、日历与收益率,以及代码搜索、报价和基本面数据。它还注册了月度回顾、储蓄率检查、订阅审计等引导式提示。
- 适用场景
- 当你希望助手直接回答关于自己 wealthAPI 账户的日常理财问题,例如支出、投资组合表现、最大持仓、股息收入或分散程度,而不必手动导出数据时使用。
- 运行要求
- 作为本地 Node.js 进程运行(从源码构建需 Node 20+ 和 pnpm),需在 Claude Desktop 等桌面 MCP 客户端中配置。需要 wealthAPI 个人 API 令牌,通过 BEARER_TOKEN 环境变量提供,并具备账户、投资、交易和资料的读取权限。需要访问 wealthAPI API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Wealthapi,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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.
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
Portfolio & performance
Dividends
Market data & profile
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.
Get 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):
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
Run tests
来源:README.md,提交 d3596ef
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分