Cuebook MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cuebook MCP Serverget market state for bitcoin"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Overview
Every trade starts with a cue. cuebook (alias: cbk) makes Cuebook
available wherever you already work: a terminal, a script, or an AI coding
agent.
Use focused commands for everyday tasks, or discover and call the full Tool surface at runtime:
resolve assets and inspect market state;
read sourced Cues, themes, events, filings, and disclosures;
explore reasoning graphs, positioning, calendars, and prediction markets;
inspect a virtual portfolio and preview paper orders;
return deterministic JSON for agents and automation.
No exchange API keys. No wallet credentials. No real-money execution.
Related MCP server: Yahoo Finance MCP Server
Cuebook Surfaces
Surface | Best for | Current contract |
Terminal use, scripts, automation, and direct Tool inspection | Live Tool discovery, structured JSON, OAuth connection management, and fail-closed write confirmation | |
Natural-language research and guided Frame creation in Codex | Two public entrypoints; internal research, rendering, and publication modules load on demand |
Both surfaces connect to Cuebook MCP. The server remains authoritative for the Tools and scopes available to each connection. Use the CLI when you want explicit commands and machine-readable output; use Skills when you want Cuebook to interview, research, compose, and visually express an idea.
Quick Start
Requirements
Node.js 20 or newer
A Cuebook account
Install
git clone https://github.com/cuebook-public/cuebook-cli.git
cd cuebook-cli
npm ci
npm run build
npm linkThis installs both cuebook and the shorter cbk alias.
Connect your account
cuebook auth loginYour browser opens Cuebook. Review the request and approve it to connect the CLI.
Make your first calls
cuebook tools list
cuebook assets search bitcoin
cuebook market state btc
cuebook cues latest --asset btcWhy Cuebook CLI
What an agent needs | How Cuebook CLI answers it |
A surface it can learn at runtime |
|
Commands it can compose without guessing | Focused verbs cover assets, market state, Cues, diagnostics, and paper trading |
Output it can parse reliably | Global |
Secure account access | OAuth 2.1, PKCE, and explicit browser approval |
Safe behavior around new capabilities | Known reads run normally; writes and unknown Tools require |
Network resilience without duplicate actions | Transient reads can retry; write calls never retry automatically |
The result is a small, self-describing command surface that works equally well for a person at the keyboard and an agent operating through a shell.
Commands
Command reference
Command | Purpose |
| Connect the CLI to your Cuebook account |
| Check the current connection |
| Remove local OAuth credentials |
| Manage connected Agents |
| Discover available Tools |
| Find an asset and its canonical ticker |
| Read the latest market snapshot |
| Read the newest Cues |
| Read Cues for one asset |
| Inspect your virtual portfolio |
| Preview a paper order |
| Call any available Tool |
| Diagnose authentication and connectivity |
Everyday examples
# Resolve an asset, then inspect its market state
cuebook assets search bitcoin
cuebook market state btc
# Read current market narratives
cuebook cues latest
cuebook cues latest --asset nvda --limit 5
# Preview a simulated order — nothing is placed
cuebook paper preview btc --side buy --notional-usd 100
# Read historical candles
cuebook call get_candles \
--input '{"ticker":"btc","interval":"1d"}'
# Read arguments from a JSON file
cuebook call get_reasoning_graph --file request.jsonWhat you can explore
Area | Capabilities |
Assets and market | Asset search, market snapshots, historical candles |
Cues and reasoning | Asset Cues, global timeline, themes, details, reasoning graphs |
Events and research | Events, market briefings, news clusters, search, filings, disclosures |
Positioning and catalysts | Positioning, market calendar, prediction markets, settlements |
Paper trading | Virtual portfolio, order preview, paper orders, position closing, order history |
The available surface can evolve. cuebook tools list shows the current Tool
names, descriptions, inputs, and safety classification granted to that
connection. The README does not promise a Tool that the server has not exposed.
Agent Workflows
Use the global --json flag whenever another program will consume the result:
cuebook --json assets search NVDA
cuebook --json cues latest --asset nvda
cuebook --json market state btc | jq -r '.data.quotes[0].price'Output contract
Exit code | Meaning |
| Command completed successfully |
| The command failed |
| Authorization or explicit write confirmation is required |
JSON errors use a stable envelope:
{
"error": {
"message": "Cuebook authorization is required.",
"hint": "Run: cuebook auth login"
}
}Generic Tool calls
cuebook call is the escape hatch for capabilities that do not yet have a
focused command:
cuebook call <tool> --input '{"key":"value"}'
cuebook call <tool> --file request.jsonAn agent can start with cuebook tools list, select a Tool, assemble its
arguments, and call it without relying on a hard-coded catalog.
Write Safety
Cuebook CLI fails closed around writes:
Known read operations run normally.
A write-capable or newly introduced Tool requires
--confirm.Confirmed writes are sent once and never retried automatically.
Paper-trading actions use virtual funds only.
# Blocked: explicit confirmation is missing
cuebook call place_paper_order --file order.json
# Sends one simulated paper order after review
cuebook call place_paper_order --file order.json --confirmConfirmation is an additional client-side guard. Cuebook still applies the permissions, limits, idempotency rules, and validation required for each Tool.
Cuebook CLI cannot place real trades, transfer money, access an exchange account, or request exchange and wallet secrets.
Authentication
cuebook auth login uses OAuth 2.1 with PKCE and opens Cuebook in your
browser. Access is granted only after you approve the connection.
Credentials are stored in an owner-only local file (
0600on Unix-like systems).Set
CUEBOOK_CONFIG_DIRto choose a different credential directory.Set
CUEBOOK_ACCESS_TOKENfor externally managed automation; the CLI never writes that value to disk.Each authorized CLI uses one Agent connection.
A Cuebook account can keep up to three active Agent connections.
Disconnect and release a slot
cuebook connectionsChoose Disconnect next to the connection you no longer use. Local logout removes credentials from the current machine; disconnecting in Cuebook also releases the Agent slot.
Configuration
Variable | Purpose |
| Use a different MCP endpoint |
| Use an externally managed Bearer Token |
| Choose the local credential directory |
| Print stack traces for CLI errors |
The default endpoint is https://cuebook.xyz/mcp.
Troubleshooting
Start with:
cuebook doctorSymptom | Resolution |
| Run |
Connection limit reached | Run |
OAuth callback port is busy | Run |
Persistent | Check TLS, proxy, VPN, and network access, then run |
Local logout did not free a slot | Disconnect the connection from |
cuebook doctor never prints OAuth tokens.
Development
npm ci
npm run checkThe quality gate runs Biome, TypeScript checks, automated tests, a production build, a CLI smoke test, and an npm package dry run. CI covers Node.js 20, 22, and 24.
Read CONTRIBUTING.md before opening a pull request and SECURITY.md before reporting a vulnerability.
License and Disclaimer
Cuebook CLI is available under the MIT License.
Cuebook provides market information, structured reasoning, and simulated tools. It does not provide investment advice. A Cue is not a recommendation to trade, and every decision remains yours.
This server cannot be deployed
Maintenance
Related MCP Connectors
Cross-asset market data and LLM inference for AI agents. Pay-per-call in USDC via x402.
A Model Context Protocol server exposing real-time and historical Colombo Stock Exchange (CSE) data to AI agents and LLM applications. Provides quotes and OHLCV price history, full financial statements (income, balance sheet, cash flow), pre-computed technicals (moving averages, RS ratings, volume signals), macroeconomic indicators, corporate actions, and rule-based screening across CSE stocks and sector indices, everything needed to build CSE-aware trading assistants, research tools, and market-analysis agents. This is the official MCP server of www.ceyloncharts.com
Market intelligence for AI agents. Real-time data, cross-market analysis, and regime detection.
Realtime financial context for AI agents: what changed, who is affected, and what to watch next. One suite covering news, events, guidance, filing changes, sentiment, stakeholders, and alerts. Information-efficient responses with evidence for every result. First-class point-in-time safety for backtests. Pairs well with web search and a market-data API. All data is our own.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides tools to get financial data (stock prices, company information) and generate financial visualizations through the Model Context Protocol.1011-
- AlicenseAqualityCmaintenanceProvides access to real-time stock prices, financial statements, news, and options data via the Model Context Protocol. It enables AI assistants to retrieve comprehensive market data, including historical prices and analyst recommendations, through a standardized interface.923 PyPI1MIT
- FlicenseAqualityDmaintenanceProvides financial data tools including stock prices, news, forex, fundamentals, and corporate actions via the Tiingo API through the Model Context Protocol.115-
- AlicenseNot gradedqualityBmaintenanceEnables LLMs and agentic workflows to access real-time and historical stock market data through the Model Context Protocol.211MIT