About chart-context
chart-context is a read-only MCP server for AI agents that need live chart and workspace details from the MyLinedChart desktop app. It runs locally and redacts account identifiers and credentials from returned context.
Key features
- 01Read current chart and workspace summary
- 02Retrieve recent OHLCV candles
- 03Inspect chart drawings and price levels
- 04View configured indicator settings
- 05Check IBKR and market-data provider status
Use cases
- 01Provide an agent with current chart context
- 02Review recent candle data through an agent
- 03Check connection and feed status without exposing credentials
MCP support
The MCP server exposes five read-only tools for chart context, candles, drawings, indicators, and provider status. It requires the MyLinedChart desktop app and runs on the same machine.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @mylinedchart/mcp-chart-contextMLC_CONTEXT_FILEOptional override path to the MyLinedChart agent-context.json file. The server auto-detects the default location; set this only if your app data is in a non-standard location.Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
5Saved tool list · updated 2w ago
This tool takes no parameters.
Details
From the project README@mylinedchart/mcp-chart-context
Read-only MCP server giving AI agents read-only access to your live MyLinedChart desktop chart and workspace context. Requires the MyLinedChart desktop app. Full docs: mylinedchart.com/mcp
Tools
| Tool | Purpose |
|---|---|
get_chart_context | Returns the current MyLinedChart chart and workspace summary: symbol, timeframe, range, provider, connection state, feed type, candle/drawing/indicator counts, diagnostics ID, and data freshness. Read-only. |
get_candles | Returns the most-recent OHLCV candle bars for the current chart. Fields: timestamp (epoch ms), open, high, low, close, volume. Read-only. |
get_drawings | Returns all drawings and price levels for the current chart symbol: trend lines, horizontal levels, note labels, and other overlays. Read-only. |
get_indicators | Returns the configured indicators for the current chart: name, calculation parameters, placement (main/lower), and visibility. Does NOT include series data. Read-only. |
get_provider_status | Returns IBKR connector and market-data provider status: connection state, MarketDataStatus code, feed type (delayed/live), diagnostics ID, and last-updated. Never exposes account IDs, credentials, or bridge URLs. Read-only. |
Privacy & safety
- Read-only. No mutations, no order entry, no trading.
- Local. The server runs on your machine alongside the desktop app. Nothing leaves your machine.
- Redacted. Account IDs, credentials, bridge URLs, and session tokens are stripped before any context is returned.
Install
npm install -g @mylinedchart/mcp-chart-context
Node 18 or later required.
Usage
Add to your AI agent's MCP config (claude_desktop_config.json or ~/.claude/settings.json):
{
"mcpServers": {
"mylinedchart": {
"command": "mlc-mcp"
}
}
}
Then:
- Download and open the MyLinedChart desktop app (mylinedchart.com/resources/downloads).
- Enable the MCP server in-app (Settings → MCP).
- Load a chart. Your AI agent can now call the five read-only tools above.
Override the context file path
MLC_CONTEXT_FILE=/custom/path/agent-context.json mlc-mcp
Links
- Product: mylinedchart.com
- MCP docs: mylinedchart.com/mcp
- Downloads: mylinedchart.com/resources/downloads
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.