Chrome Course MCP
Enables browsing and collecting course materials from Brightspace through Chrome DevTools Protocol, allowing snapshotting, downloading media, and automating page navigation.
README
coinbase-mcp-ghost
A local, read-only Model Context Protocol (MCP) server that attaches — as a "ghost" — to an already-open, already-signed-in Coinbase Advanced Trade tab over the Chrome DevTools Protocol (CDP), and performs market-data and portfolio reconnaissance. It opens no socket of its own, holds no credentials, and places no orders. Pass 2 also adds an inert signal layer, PAPER P&L ledger, preview reconciliation, and a stubbed LIVE confirmation tool. Pass 3 adds transport diagnostics and explicit data provenance on every market event and derived value.
Forked from
chrome-course-mcp(a Brightspace page collector). The JSON-RPC stdio shell and theChromeSessionCDP client are reused as-is and extended.
Why "ghost"
The MCP never logs in, never sees your password/2FA, never touches the Coinbase
REST API, never copies cookies/JWTs out of Chrome, and never opens a second
WebSocket. It simply mirrors what your signed-in browser tab already
receives (Network.webSocketFrameReceived over CDP). That means:
- No auth flow to break or leak.
- No duplicate connection and no rate-limit risk — you see exactly what
the page sees. If Chrome does not expose WS frames for the current Coinbase
build,
coinbase_market_streammarksdomFallback:trueand samples the live-changing rendered order book instead; still no Coinbase API, SDK, or socket is opened by this MCP. DOM fallback events are explicitlysource:"dom",hasSequence:false,confidence:"low", anddegraded:true. - Fail-closed: if no Advanced Trade tab is open in the dedicated debug profile, every tool refuses to run rather than acting on an unrelated tab.
Prerequisites
- Node ≥ 20
- Windows host with Google Chrome
- A Coinbase account you can sign in to
Install deps:
npm install
One-time Coinbase login flow (dedicated debug profile)
The MCP only ever attaches to a dedicated Chrome profile launched with the DevTools port open — never your everyday profile.
# Launches Chrome on --remote-debugging-port=9222 with a dedicated profile
# (%LOCALAPPDATA%\CoinbaseMCPProfile) and opens Coinbase.
powershell -ExecutionPolicy Bypass -File scripts\launch-chrome-coinbase.ps1
- Open either
https://www.coinbase.com/advanced-portfolioorhttps://www.coinbase.com/advanced-trade/spot/BTC-USD. - Log in to Coinbase in this window once (complete any 2FA).
- Close the window normally when you're done — the profile persists the session, so next launch you're usually still signed in.
Leave this window open while you use the MCP.
MCP client config (Codex / Claude / any MCP host)
{
"mcpServers": {
"coinbase-mcp-ghost": {
"command": "node",
"args": ["./src/index.js"],
"cwd": "C:\\path\\to\\CoinBase-MCP-Ghost"
// or, if installed globally / linked:
// "command": "coinbase-mcp"
}
}
}
This mirrors the old
chrome-course-mcpblock but with the new bin/path.
Tools
Generic Chrome primitives (kept): chrome_launch, chrome_open_tab,
chrome_tabs, chrome_navigate, chrome_snapshot, chrome_click,
chrome_type, chrome_select, chrome_press, chrome_screenshot,
chrome_eval, chrome_extract_media.
Coinbase recon/data tools (new, read-only):
| Tool | What it does |
|---|---|
coinbase_attach |
Fail-closed attach to the Advanced Trade tab; returns { attached, signedIn, tab, probeResults }. Other Coinbase tools refuse when signedIn === false. |
coinbase_diagnose_transport |
Passive WS/SSE/poll/WebTransport diagnostic. Attaches before same-tab navigation, checks page and worker targets, and writes a WS TAP VIABLE verdict. |
coinbase_recon |
One-shot deep recon → recon/<symbol>-<ts>/ (dom-map.json, network-map.json, behavioral.json, screenshots/, RECON_REPORT.md). Never submits an order. |
coinbase_market_stream |
Prefers sequenced WS frames when available. If unavailable, uses loud DOM fallback only, with degraded provenance and no sequence-gap claims. |
coinbase_snapshot_state |
Reads the in-memory ring buffer (counts, last tick/trade, recent N events). |
coinbase_portfolio_snapshot |
Reads balances + open orders from the DOM (not an API). |
coinbase_place_order |
Execution scaffold. dryRun hardcoded true. Validates against risk limits; OBSERVE_ONLY rejects all, PAPER logs a simulated fill. Never clicks the order form. |
coinbase_paper_ledger |
Reads the PAPER position/P&L ledger and advisory half-Kelly sizing output. |
coinbase_confirm_live |
Stubbed third LIVE factor; records the phrase but never arms live submission. |
coinbase_reconcile_preview_intent |
Pure intended-order vs preview-shaped diff. No clicking, no DOM interaction. |
Safety model
Config lives in config/default.json (env vars CMCP_* override):
{ "mode": "OBSERVE_ONLY", "symbol": "BTC-USD",
"debugUrl": "http://127.0.0.1:9222",
"tabUrlContains": ["coinbase.com/advanced-trade", "coinbase.com/advanced-portfolio"],
"maxNotionalUsd": 0, "killSwitch": true }
| Mode | Behavior |
|---|---|
OBSERVE_ONLY (default) |
Read-only recon/data. place_order rejects everything. |
PAPER |
place_order logs a simulatedFill at the live best bid/ask. Still no DOM click. |
LIVE |
Not wired. Requires config flag + env var + coinbase_confirm_live, but the confirmation remains stubbed and cannot arm real submission. |
The kill switch (killSwitch: true, default) is a manual circuit breaker
checked first on every order path. maxNotionalUsd: 0 means even simulated
fills above $0 are rejected until you deliberately raise it.
See EXECUTION_DESIGN.md for the full execution design and kill-switch flow,
and knowledge-base/ for the strategy rationale distilled from the
reference library.
Verify
npm run check # syntax-checks every source + test file
npm run smoke # offline core invariants always run;
# the live CDP suite runs automatically if a debug tab is up
The live smoke suite asserts: coinbase_attach → signedIn === true;
coinbase_market_stream 30s → live tick/L2/signal data and 0 gaps;
coinbase_portfolio_snapshot balances parse; coinbase_place_order (dryRun)
returns a structured response (+ a journal line in PAPER mode).
Pass 2 live recon is in recon/btc-usd-2026-06-10T20-48-37-731Z/. In that run,
CDP exposed no Coinbase WS frames, while the rendered BTC-USD order book changed
live; the network map records that explicitly.
Pass 3 transport diagnostic is in recon/btc-usd-2026-06-10T21-26-02-366Z/.
Verdict: WS TAP VIABLE: NO for this Chrome/Coinbase build. Early attach
before navigation captured no WebSocket, EventSource message, or WebTransport
frames on page or worker targets; it did observe Coinbase brokerage
REST/text/event-stream endpoints. Because those stream bodies are not exposed
as sequenced exchange frames through CDP here, downstream signals remain
degraded when sourced from DOM fallback.
What's NOT in this pass
- No trading. No
Place Order/Preview Orderclick anywhere. - No credentials / auth. No API keys, JWTs, HMAC, or cookie extraction.
- No Coinbase SDK or REST client dependency.
- No second WebSocket. We mirror the page's own feed.
Design references live in knowledge-base/: Harris for order-book
microstructure, Grinold-Kahn and Chan for IC/Kelly sizing, Lopez de Prado for
overfitting discipline, Kahneman for operator bias guardrails, and Kleppmann for
append-only stream handling.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。