FC · SPEC
INDICATORS109DRAWING TOOLS75CHART TYPES18PATTERNS19 + 19PROBABILITY MODELS5CHARTS PER SCREEN1–81-MIN HISTORY2 YRSDAILY HISTORYSINCE 1996ORDER TYPES8PAYOFF PRESETS12SCRIPT FUNCTIONS250PRICE₹0.00ADS0│
16 · Agents and API

Built for people and programs.

An MCP server lets AI agents such as Claude Code read and drive a chart. The charting engine is also a library you can embed.

freecharts.org/chart/demo data
Chart with support and resistance zones drawn by the analysis.find_levels action, with the ChartAI panel open.
Zones like these are drawn by the analysis.find_levels action, which an agent can call. Demo data.

Connect an agent

Ask the worker for a token, register the MCP URL with your client using the token as a bearer header, and open the chart URL it returns so a page is connected. Tool names are action names with dots replaced by underscores.

You can also run the server locally over stdio from the chart-mcp package.

terminalsketch
~ $ curl https://mcp.freecharts.org/token
{ "token": "...", "chartUrl": "...", "mcpUrl": "https://mcp.freecharts.org/mcp",
  "claudeCode": "claude mcp add --transport http chart ..." }

~ $ claude mcp add --transport http chart \
      https://mcp.freecharts.org/mcp --header "Authorization: Bearer <token>"
# open the chartUrl in a browser so a chart page is connected, then ask:
> find support and resistance and draw it
  analysis.find_levels  draw=true
A sketch of the flow the worker describes, not a recording. Use your own token.

The fc command line

We are exploring a small command line that prints quotes and ASCII charts. It is an idea, not a product. Agents should use the MCP server.

conceptconcept
~ $ fc quote NIFTY
~ $ fc chart RELIANCE --interval 1D

# concept only: not built or released
A concept for quotes and ASCII charts in the terminal. It does not exist yet.

What it does

  • MCP over HTTP at mcp.freecharts.org: GET /token returns a fresh token, a connect command and a chart URL.
  • A chart page connects with the token and the agent drives that page. The token is the only credential, so keep it private.
  • The chart-mcp package documents 56 tools plus bridge_status: chart (16), data (6), layout (3), indicators (6), drawings (5), alerts (3), trading (8) and replay (9). Other packages add actions at runtime.
  • Examples: chart_set_symbol, data_get_bars, indicator_add, drawing_add, replay_step, data_get_screenshot.
  • Actions such as analysis.find_levels, analysis.detect_patterns and the journal actions are exposed to ChartAI the same way.
  • Resources: chart://state, chart://bars, chart://actions.
  • The engine has no runtime dependencies, a broker connector contract, and feature flags to switch modules on or off.

Honest limits

  • Trading tools act on whichever account the chart is connected to. With a signed-in Pocketful session that means real orders: the app asks you to confirm each new order on screen. Use the simulated demo (?broker=paper) unless you intend to trade.
  • Tools only work while a chart page with your token is open; otherwise calls return an error.
  • Remote MCP hosting is new; treat it as beta.
  • The fc command line is a concept, not released.