AI NATIVE ACCESS
Real-time market data for AI agents
Give your AI agent live stock, forex and crypto data. Query quotes, historical bars and order books with TickDB Skill, MCP Server or CLI, with setup and code examples.
A conversation with AI
You: What's the gold price now?
TickDB: Calling TickDB · get_ticker...
AI assistant: XAU/USD $2,341.20 ▲ +0.42% | 24h range $2,328 – $2,348
You: What's Tencent's PE ratio?
TickDB: Calling TickDB · get_market_metrics...
AI assistant: Tencent (700.HK) — Price HK$380.20 | PE(TTM) 18.7× | PB 3.4× | Market Cap HK$3.6T
Skill
Skill — Chat to Use, Zero Setup
Use TickDB directly in ChatGPT or Claude. Install the Skill and your AI auto-fetches a trial key to query live market data.
- Auto trial — no signup required
- 72 popular symbols free (forex, crypto, stocks)
- Works with any LLM that supports tools
- Version auto-update via ClawHub registry
Install command
ClawHub$ npx clawhub@latest install tickdb-market-data Chat to use · Zero config
For PMs, researchers, casual usersMCP
MCP Server — Persistent Integration
One config, hosted HTTPS endpoint — your AI coding assistant gets 13 market-data tools in one connection.
- Hosted at mcp.tickdb.ai — no self-hosting needed
- 13 standardized MCP tools
- HTTPS + Header auth (X-TickDB-Key)
- Compatible with all MCP protocol clients
Supported clients
Claude Code · Claude Desktop · Codex (OpenAI) · Cursor · Kiro · Zed · Cherry Studio
Connection configuration
JSON{
"mcpServers": {
"tickdb": {
"type": "http",
"url": "https://mcp.tickdb.ai/",
"headers": {
"X-TickDB-Key": "<YOUR_API_KEY>"
}
}
}
}https://mcp.tickdb.ai/Explore all MCP tools
get_tickerQuote snapshotsget_klineHistorical barsget_kline_latestLatest barsget_order_bookOrder booksget_recent_tradesRecent tradesget_available_symbolsAvailable symbolsget_kline_intervalsK-line intervalsget_stock_infoStock informationget_intradayIntraday dataget_trading_sessionsTrading sessionsget_trade_daysTrading calendarget_market_metricsMarket metricsget_capital_flowCapital flow
Client configuration locations
- Claude Code
~/.claude/settings.json- Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json- Codex (OpenAI)
~/.codex/config.json- Cursor
~/.cursor/mcp.json- Kiro
~/.kiro/settings/mcp.json- Zed
~/.config/zed/settings.json- Cherry Studio
Settings → MCP Servers → Add
CLI
CLI — Terminal & AI Agent Ready
Real-time market data from the command line. JSON and table output, 16 native commands. Perfect for scripts and autonomous agents.
- JSON & formatted table dual output
- 16 native commands (ticker, kline, depth, trades, stock-info, etc.)
- Bash-tool friendly — ideal for AI agent tool-use
- API key via flag, env var, or local config
Install command
Terminal$ npm install -g tickdb
$ tickdb config set-key <YOUR_KEY>
$ tickdb ticker BTCUSDT,XAUUSDCommon commands
tickdb ticker BTCUSDT,XAUUSD- Real-time price snapshots
tickdb kline AAPL.US -i 1d --limit 10- Historical K-line candles
tickdb depth BTCUSDT -l 10- Order book depth
tickdb metrics 700.HK- PE, PB, market cap
tickdb capital-flow 600519.SH- Capital flow analysis
Markets available to AI tools
TickDB covers 42,308 instruments. Skill, MCP and CLI share the market data APIs; access depends on your API key, plan and market permissions.
Compatible Platforms
- ChatGPT
- Claude
- Claude Code
- Claude Desktop
- Codex
- Cursor
- Kiro
- Zed
- Cherry Studio
- Cline
- Continue
- Custom Agents
Frequently asked questions
How can an AI assistant query real-time stock prices and market data?
Connect a compatible AI client to TickDB through Skill, MCP or CLI, then specify the market and instrument. For example, ask for the latest AAPL.US price and quote timestamp. The tool retrieves a market-data snapshot; check its timestamp and trading session rather than treating a model-generated answer as a live quote.
Can AI retrieve historical stock data and candlestick bars for research or backtesting?
Use get_kline or the CLI kline command to request historical bars by symbol and interval. Historical access depends on account permissions and available data. Bars are not historical tick-by-tick trades. For stock research or backtesting, record the time range and adjustment mode: none, forward or backward. The tools supply data; they do not run or validate a backtest automatically.
Can I try the AI market-data tools for free, and do I need an API key?
The Skill can obtain a trial key automatically, so you do not need to request a key in advance; requests still use authentication. The documented Skill trial covers 72 popular symbols. The current Free plan offers a 7-day trial for selected instruments, not unrestricted market access. Historical time ranges, depth and trades require the appropriate permissions. MCP uses X-TickDB-Key; CLI can use TICKDB_API_KEY. Check the current plan and the key’s entitlements.
How should I choose between TickDB Skill, MCP Server and CLI?
Choose Skill for supported conversational workflows, the hosted MCP Server for a persistent connection from a compatible client, or CLI for terminal scripts, CI/CD and AI agents with shell tools. The available integration depends on the client’s tool and transport support; these options do not give every chat interface identical installation steps or permissions.
How do MCP quote snapshots differ from WebSocket streaming?
A quote tool call returns a snapshot for that request. It does not establish a continuous WebSocket subscription. Use the TickDB WebSocket API when an application needs ongoing quote updates. Update availability depends on the instrument, trading session, account permissions and connection status.
Is the MCP server self-hosted or managed?
Managed. The endpoint at mcp.tickdb.ai is hosted by TickDB with HTTPS and header-based auth. No Docker or server setup needed.
Can I use the CLI in CI/CD pipelines?
Yes. Use --json flag for structured output. Pass the API key via TICKDB_API_KEY environment variable for non-interactive use.
Which AI clients support MCP?
Claude Code, Claude Desktop, Codex (OpenAI), Cursor, Kiro, Zed, Cherry Studio, and any client implementing the MCP HTTP transport protocol.
What markets and data types can AI query?
Forex & Metals (1,228), Indices (13,959), US Stocks (14,169), HK Stocks (3,299), China Stocks, ETFs & Bonds (7,516), Futures (1,312), Crypto (825) — 42,308 total symbols. Available tools can query quote snapshots, historical bars, order books, recent trades, stock information, trading sessions and calendars. Data types vary by market, tool and account permissions.
Connect AI to your market data workflow
Start with a market query, then connect research tools, applications or automated scripts.