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.

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.
~ $ 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=trueThe 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.
~ $ fc quote NIFTY ~ $ fc chart RELIANCE --interval 1D # concept only: not built or released
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_patternsand 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
fccommand line is a concept, not released.