@romaco/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., "@@romaco/mcpanalyze AAPL daily"
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.
@romaco/mcp
MCP server for romaco-charts. Control your trading chart from Claude, Cursor, or any MCP-compatible AI agent.
npx @romaco/mcpPhilosophy
Romaco MCP is compression-first. Tools return features and decisions, not raw OHLCV. Every tool's typical output is under 2 KB. Raw payloads (full chart state, snapshots, all-bar indicator series) exist but are gated behind acknowledgeHighTokenCost: true — the agent must consciously opt in and the user must explicitly request raw data.
The rule: the agent never computes, it always queries. An agent reasoning over features cannot hallucinate prices; an agent given a 70 KB raw OHLCV dump will burn its context window before it can finish a thought.
Cost table
Tool | Default | Gated raw (with |
| ~3–5 KB compressed MarketSummary | — |
| <2 KB computed bull/bear debate + verdict + setup | enhanced server-side thesis (Pro) |
| <500 B | — |
| <2 KB (trimmed hits) | full hits with anchor |
| <5 KB (setup log + summary) | — |
| <200 B ack | — |
| <1 KB | — |
| ~4.5 KB static catalog | — |
| <1 KB | — |
| ~1 KB snapshot | ~80 KB full payload |
| <1 KB range summary | ~70 KB raw OHLCV |
| <500 B last/prev/delta/state | ~10 KB per-bar series |
| error (must ack) | 300–800 KB base64 image |
| <100 B ack messages | — |
Related MCP server: tradingview-mcp
30-second start
# 1. Install
npm install -g @romaco/mcp
# 2. Wire it into Claude Code (run from your project root)
cat > .mcp.json <<'EOF'
{ "mcpServers": { "romaco": { "command": "romaco-mcp" } } }
EOFThen start Claude Code and prompt:
Use
romaco_setup_chartto analyze AAPL daily with thetrend_analysispreset.
That's it. The MCP server fetches yfinance data (with disk cache + cookie/crumb handshake), runs full technical analysis, and returns a compressed MarketSummary (~500 tokens) to Claude. No 429s, no manual auth.
Live chart control (optional)
To let Claude drive a real chart — drawings, indicators, alerts visible in your browser — mount <McpBridge /> next to your TradingTerminal:
import { TradingTerminal, McpBridge, type TradingTerminalRef } from 'romaco-charts/react';
import { useRef } from 'react';
function App() {
const ref = useRef<TradingTerminalRef | null>(null);
return (
<>
<TradingTerminal ref={ref} data={candles} symbol="AAPL" />
<McpBridge chartRef={ref} />
</>
);
}See examples/pro-volatility-scanner for a complete setup. With <McpBridge /> mounted, the chart-bridge tools (add_indicator, add_drawing, add_alert, capture_snapshot, …) become available.
Data cache
Every successful yfinance fetch is cached to ~/.romaco/cache/ with per-timeframe TTL (1m→1min, 1h→1h, 1d→24h, …). A grid of N widgets requesting the same symbol triggers one upstream fetch. Wipe the cache anytime with rm -rf ~/.romaco/cache, or override the location with ROMACO_CACHE_DIR=/tmp/cache.
What it does
Exposes 20+ MCP tools in two categories:
Headless tools — work without a browser, load data and run analysis server-side:
romaco_setup_chart— one-command setup: load + preset + analyze (recommended first call)romaco_load_candles— fetch OHLCV from Yahoo Finance (free) or pass your own arrayromaco_analyze_market— full technical analysis: trend, S/R levels, RSI/MACD/divergences, volatility, patternsromaco_thesis— computed bull/bear debate → verdict (long/short/stand_aside) + confidence + entry/stop/target setup; stands aside when R/R is poor (won't fake a signal)romaco_find_levels— support/resistance via K-means + Volume Profile (POC/VAH/VAL)romaco_detect_patterns— H&S, double top/bottom, triangles, flagsromaco_calculate_position_size— pure-math risk-based position sizing with R/R + breakeven win-rateromaco_list_templates— catalog of drawing templates (trendline, fib, channels, …)
Chart-bridge tools — control a live Romaco chart in the browser:
romaco_add_indicator— EMA, RSI, MACD, Bollinger, ATR, 29+ indicatorsromaco_add_drawing— trendlines, Fibonacci, horizontal lines, channels, rectanglesromaco_add_alert— price alerts with direction (above/below/cross)romaco_capture_snapshot— PNG/JPEG base64 for vision LLMsromaco_open_paper_position— simulated long/short with SL/TPromaco_get_chart_context— complete chart state as JSONromaco_get_visible_candles— OHLCV in current viewportromaco_set_zoom/romaco_reset_view— zoom controlromaco_clear_drawings— remove all drawingsromaco_list_panes— enumerate main + subpanel panes (e.g. RSI subpanel id)romaco_get_indicator_values— read computed indicator series (by id or name)romaco_go_to_timestamp— scrub viewport to a given timestamp
Install
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"romaco": {
"command": "npx",
"args": ["-y", "@romaco/mcp"]
}
}
}Restart Claude Desktop.
Claude Code
claude mcp add romaco -- npx -y @romaco/mcpOr add to your project's .mcp.json:
{
"mcpServers": {
"romaco": {
"command": "npx",
"args": ["-y", "@romaco/mcp"]
}
}
}Cursor / other MCP clients
Any client that supports stdio MCP servers works. Point it at npx @romaco/mcp.
Usage
Headless analysis (no browser needed)
Load 500 candles of AAPL 1h from yfinance, then analyze the market.Claude will call:
romaco_load_candles→ fetches from Yahoo Financeromaco_analyze_market→ returns compressed MarketSummary (~500 tokens)romaco_find_levels→ S/R zones, POC, VAH, VALReasons over the features → tells you what it sees
Live chart control (with browser)
Add <McpBridge /> to your chart app:
import { TradingTerminal, McpBridge } from 'romaco-charts/react';
function App() {
const ref = useRef(null);
return (
<>
<TradingTerminal ref={ref} symbol="AAPL" timeframe="1h" datafeed={myDatafeed} />
<McpBridge chartRef={ref} />
</>
);
}Then from Claude:
Add EMA 20 and RSI 14 to the chart, draw a Fibonacci from the last swing low to swing high,
and capture a snapshot so I can see it.Data sources
Source | Auth | Coverage |
| None (default) | Stocks, ETFs, crypto, FX, indices — delayed data |
| None | Pass your own OHLCV array inline |
Bring your own key (BYOK) — Coming in v1.1: Alpaca, Polygon.io, FMP.
Configuration
Option | Default | How to set |
WebSocket port |
|
|
| (none → free) | API key from romaco.io — unlocks Pro |
|
| ROA-I backend; prod: |
# Custom port
npx @romaco/mcp --port 3200
# Or via env
ROMACO_MCP_PORT=3200 npx @romaco/mcpSet the same port in <McpBridge port={3200} />.
Free vs Pro (ROA-I)
This MCP is the free hook. It runs fully standalone — analysis is computed locally and limited by whatever model your agent uses.
Free | Pro ( | |
Data |
| same |
Analysis | computed locally ( | delegated to ROA-I in the backend |
Tools | the tools listed here | + ROA-I's exclusive backend tools (deep math, reasoning agent) |
With a ROMACO_TOKEN set, analysis tools (starting with romaco_analyze_market)
forward the heavy compute to ROA-I at ROMACO_API_URL. No token, or backend
unreachable → it falls back to local compute, so the free path never breaks.
Get a key at romaco.io. See .env.example.
Example prompts
Institutional analysis:
"Load TSLA 4h from yfinance, analyze the market, find key levels, detect any chart patterns, then draw the Fibonacci retracement of the last swing on the chart and add an alert at the 0.618 level."
Conditional automation:
"Load AAPL 15m, run full analysis. If RSI shows bullish divergence and price is near a support level, open a paper long 100 shares with stop loss at the VAL of the Volume Profile."
Pattern scanner:
"Load SPY 1d and detect patterns. For any head & shoulders found, tell me the target price and invalidation level."
Requirements
Node.js >= 18
For chart-bridge tools: romaco-charts >= 1.0.0-beta.6 with
<McpBridge />in your app
Links
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/romaco-labs/romaco-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server