Openalgo MCP Server

From-scratch, dependency-free canvas charting engine for OpenAlgo: professional-grade interactive rendering plus advanced on-chart trading.

Local serverstdioPython

What is the Openalgo MCP server?

From-scratch, dependency-free canvas charting engine for OpenAlgo: professional-grade interactive rendering plus advanced on-chart trading. The openalgo mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 4 defined tools rather than through you.

What it actually does

Professional interactive charts, indicators, drawing tools, order flow, and on-chart trading — six lazy-loaded tiers, zero runtime dependencies, ~33 KB Brotli for the base engine.

Its toolset

Everything the assistant can do here goes through one of these:

  • Indicators — chart.addIndicator('bollinger'); // overlays the price pane const macd = chart.addIndicator('macd', { fastPeriod: 8 }); // gets its own pane
  • Trading — Order, position, and bracket lines with live P&L, one-click and drag-to-modify, OCO, validation, an order state machine, analyzer (sandbox) mode
  • State — chart.getState() / chart.restoreState() capture the viewport, grid, panes, price scales, indicator instances, and drawings as one JSON payload —
  • Data — OpenAlgo REST history + WebSocket ticks with auto-reconnect and resubscribe, live candle aggregation, tick/volume bars, a unified chart.on(...) event

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at openalgo-charts on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Plenty of file and storage access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Openalgo's toolset — Indicators, Trading, State and 1 more — is a fair guide to whether it matches your workflow. It is maintained by marketcalls; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the openalgo mcp server does with a few real requests.

Available tools

ToolWhat it does
Indicatorschart.addIndicator('bollinger'); // overlays the price pane const macd = chart.addIndicator('macd', { fastPeriod: 8 }); // gets its own pane macd.setSettings({ 'macd:width': 2, 'macd:lineStyle': 'dashed' });
TradingOrder, position, and bracket lines with live P&L, one-click and drag-to-modify, OCO, validation, an order state machine, analyzer (sandbox) mode, and a depth-of-market ladder (5 to 200 levels).
Statechart.getState() / chart.restoreState() capture the viewport, grid, panes, price scales, indicator instances, and drawings as one JSON payload — saved layouts and templates with no extra storage plumbing.
DataOpenAlgo REST history + WebSocket ticks with auto-reconnect and resubscribe, live candle aggregation, tick/volume bars, a unified chart.on(...) event bus, markers and signals, earnings/dividend/expiry event markers, and

How to install the Openalgo MCP server

{
  "mcpServers": {
    "openalgo": {
      "command": "npx",
      "args": ["-y", "openalgo-charts"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Openalgo to Indicators.
  • Use Openalgo to Trading.
  • Use Openalgo to State.

Frequently asked questions

It connects Openalgo to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (Indicators, Trading, State, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Openalgo directly.