openfolio-ro-mcp
v0.1.6OpenFolio read-only MCP: stdio (npx) or import createServer for HTTP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ro_catalog OpenFolio RO catalog
Discovery: JSON of all OpenFolio read-only HTTP APIs (path + summary) and the MCP tools. Call this when unsure which RO endpoint exists. Auth is X-API-Key on the server; the MCP process already has the key. No inputs.
ro_holdings Broker holdings
Current broker holdings from OpenFolio RO GET /api/external/ro/holdings: symbol, quantity, cost, market value, PnL per Longbridge/Futu/IBKR. No credentials or webhooks. Use for "现在仓位/持仓怎样". No inputs.
ro_grid Percent-grid positions
All %-grid positions with performance from GET /api/external/ro/grid (webhook_url stripped). Use for 网格赚了没 / 哪些网格开着. One grid's trades/chart are HTTP-only (see ro_catalog). No inputs.
ro_grid_sweeps Portfolio grid sweep
Portfolio 30-day %-grid param sweep from GET /api/external/ro/grid/sweeps (same engine as 组合扫参). Best trigger/callback, grid PnL, in_holdings, last price. Not live grids (use ro_grid). No candles/fills. Needs token capability grid. No inputs.
ro_logs Server logs
OpenFolio GET /api/external/ro/logs. Must pass module (e.g. grid, scheduler, fetcher) or search (substring in message/data). Default 50 rows, max 100. Use for 查某某报错/最近日志. Do not call with empty filters.
| Parameter | Type | Description |
|---|---|---|
level | string | Filter by log level |
limit | integer | Row cap, default 50 |
module | string | Log module, e.g. grid, scheduler, fetcher |
offset | integer | Pagination offset |
search | string | Substring match on message or data JSON |
ro_calendar FJ economic calendar
OpenFolio FJ economic calendar from GET /api/external/ro/calendar (calendar_events). Default next 2 days, min_importance 0 (keeps low-ImpID US CPI-like rows; include_us_macro keeps them even when min_importance is raised). event_types: economic,earnings,other. Needs feeds. Prefer this over scraping FinancialJuice.
| Parameter | Type | Description |
|---|---|---|
days | integer | Upcoming days from now when from/to omitted; default 2 |
event_types | string | Comma list: economic,earnings,other; omit = all |
from | string | ISO start (UTC); overrides days |
include_us_macro | boolean | Keep US CPI/NFP/FOMC-like titles when min_importance > 0; default true |
limit | integer | Row cap, default 200 |
min_importance | integer | Economic floor 0–3; default 0 |
to | string | ISO end (UTC); overrides days |
ro_fj_news FJ headlines
OpenFolio FinancialJuice headlines from GET /api/external/ro/fj-news: id, headline, headline_cn, category, source, published_at. Default 10, max 50. Needs feeds. Prefer this over scraping FinancialJuice.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Row cap, default 10 |
ro_mrmc MRMC dip/sell signals
OpenFolio MRMC stored alerts only. Returns watchlist (symbols + configured TFs) and DXDX/DBJGXC rows the scheduler already wrote. Scan is every 10 min during US regular + extended hours (weekly TF skipped). No live quote scan. .vix/VIX → .VIX.US. type=buy is dip. Codex: poll this; notify when alerts.total increases or a new bar_time appears.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Alert cap, default 50 |
offset | integer | Pagination offset |
symbol | string | Ticker; .vix / VIX / .VIX.US all work |
timeframe | string | 日/D/小时/60/2h/4h/30/15/周. Maps to stored TF keys |
type | string | buy = DXDX dip, sell = DBJGXC |