Chrome Course MCP
Provides read-only market data and portfolio reconnaissance for Coinbase Advanced Trade by mirroring the browser tab's WebSocket frames via Chrome DevTools Protocol.
Click 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., "@Chrome Course MCP Collect Brightspace course GAM_623 materials into my documents folder"
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.
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.
Related MCP server: browser-devtools-mcp
Prerequisites
Node ≥ 20
Windows host with Google Chrome
A Coinbase account you can sign in to
Install deps:
npm installOne-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.ps1Open 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 |
| Fail-closed attach to the Advanced Trade tab; returns |
| Passive WS/SSE/poll/WebTransport diagnostic. Attaches before same-tab navigation, checks page and worker targets, and writes a |
| One-shot deep recon → |
| Prefers sequenced WS frames when available. If unavailable, uses loud DOM fallback only, with degraded provenance and no sequence-gap claims. |
| Reads the in-memory ring buffer (counts, last tick/trade, recent N events). |
| Reads balances + open orders from the DOM (not an API). |
| Execution scaffold. |
| Reads the PAPER position/P&L ledger and advisory half-Kelly sizing output. |
| Stubbed third LIVE factor; records the phrase but never arms live submission. |
| 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 |
| Read-only recon/data. |
|
|
| Not wired. Requires config flag + env var + |
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 upThe 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.
Available Tools
22 toolschrome_clickB
Click an element by CSS selector or visible text. Useful for control panels and file-manager buttons.
Inputs: text, exact, tabId, waitMs, +4 more.
chrome_evalB
Evaluate JavaScript in the selected tab. Use for small, explicit inspection or panel automation snippets.
Inputs: expression (required), tabId, waitMs, debugUrl, +2 more.
chrome_extract_mediaC
Extract media, document, iframe, and link candidates from a selected Chrome tab.
Inputs: tabId, debugUrl, urlContains, titleContains.
chrome_launchB
Launch a Chrome window with the DevTools Protocol enabled, or open a new tab if it is already running.
Inputs: url, waitMs, debugUrl, extraArgs, +2 more.
chrome_open_tabA
Open a new tab through an existing Chrome DevTools Protocol endpoint.
Inputs: url, debugUrl.
chrome_pressB
Send a keyboard key to the selected page, optionally after focusing an element.
Inputs: key (required), tabId, waitMs, debugUrl, +3 more.
chrome_screenshotC
Capture a PNG screenshot of the selected page.
Inputs: outputPath (required), tabId, debugUrl, fullPage, +2 more.
chrome_selectA
Set a select dropdown by CSS selector or label text, matching option value or visible text.
Inputs: value (required), label, tabId, waitMs, +4 more.
chrome_snapshotB
Summarize the selected page with visible text, links, buttons, inputs, selects, and forms for automation planning.
Inputs: tabId, debugUrl, maxElements, urlContains, +2 more.
chrome_tabsA
List Chrome tabs exposed by the local Chrome DevTools Protocol endpoint.
Inputs: debugUrl.
chrome_typeC
Type into an input or textarea by CSS selector, label text, placeholder, name, id, or aria-label.
Inputs: value (required), clear, label, tabId, +6 more.
coinbase_attachA
Attach (fail-closed) to an already-open, already-signed-in Coinbase Advanced Trade tab in the debug profile. Returns { attached, signedIn, tab, probeResults }. Never falls back to an unrelated tab.
Inputs: debugUrl, urlContains.
coinbase_confirm_liveA
Stubbed LIVE ladder third factor. Records an explicit confirmation phrase for audit but never arms or submits live orders.
Inputs: phrase.
coinbase_diagnose_transportB
Passive transport diagnostic for Coinbase real-time data. Attaches before same-tab navigation, observes WS/SSE/poll/WebTransport on page and worker targets, writes a recon network-map + WS TAP VIABLE verdict. Never clicks or opens a Coinbase socket.
Inputs: debugUrl, durationMs, outputRoot, urlContains.
coinbase_market_streamA
Mirror the page's own Coinbase WebSocket frames over CDP for durationMs, normalize into Tick/L2Update/Trade/Candle (decimal.js), fan out to an in-memory ring buffer + append-only JSONL journal, and detect sequence gaps. Read-only; opens no socket of its own.
Inputs: debugUrl, durationMs, urlContains.
coinbase_paper_ledgerA
Read the in-memory PAPER trading ledger: running position, realized/unrealized P&L, recent simulated fills, and advisory half-Kelly sizing from measured PAPER outcomes. Read-only.
Inputs: no named parameters.
coinbase_place_orderA
EXECUTION SCAFFOLD (dryRun hardcoded true). Validates a would-be order against config risk limits (mode/killSwitch/maxNotionalUsd). OBSERVE_ONLY rejects all; PAPER logs a simulated fill at best bid/ask. NEVER clicks the order form. No real order is ever placed in this pass.
Inputs: side (required), type (required), clientOrderId (required), dryRun, +4 more.
coinbase_portfolio_snapshotB
Read balances + open orders directly from the Advanced Trade DOM (never from an API), using the discovered selectors with a stability-ranked fallback chain. Read-only.
Inputs: debugUrl, urlContains.
coinbase_reconA
One-shot deep reconnaissance of the live Advanced Trade page. Writes ./recon/-/ (dom-map.json, network-map.json, behavioral.json, screenshots/, RECON_REPORT.md). Read-only; never submits an order.
Inputs: debugUrl, outputRoot, urlContains, sampleSeconds, +1 more.
coinbase_reconcile_preview_intentA
Pure preview-vs-intent diff for future safety checks. Accepts intended order fields and a preview-shaped object; performs no clicking or DOM interaction.
Inputs: intent, preview.
coinbase_snapshot_stateA
Return the current in-memory ring-buffer state collected by coinbase_market_stream (counts, last tick/trade, recent N events).
Inputs: n.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Each tool has a clearly distinct purpose within its domain (Chrome automation or Coinbase trading). There is no overlap; descriptions clearly differentiate similar actions like 'chrome_click' and 'chrome_select' or 'coinbase_recon' and 'coinbase_attach'.
All tools follow a consistent prefix_naming convention: 'chrome_verb' for Chrome tools and 'coinbase_verb_noun' for Coinbase tools. The use of snake_case is uniform, and the pattern is predictable across the entire set.
22 tools is on the higher side but still reasonable given the combination of two distinct domains (Chrome automation and Coinbase trading). Each tool serves a specific purpose, though some users might find the Coinbase tools excessive for a 'Chrome Course' server.
The Chrome automation tools cover essential actions (navigation, clicking, typing, JS evaluation, screenshots, tabs), though a few common operations like scrolling are missing. The Coinbase tools provide extensive coverage for trading research (market streaming, portfolio reading, dry-run orders, diagnostics), making the overall surface fairly complete for its intended use.
Maintenance
Related MCP Connectors
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Undetectable cloud browser sessions for AI agents and scrapers. Navigate, extract, click, captcha.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Automate cloud Chrome—navigate, click, type, screenshot, run code, record screen video
Related MCP Servers
- AlicenseBqualityDmaintenanceA local MCP server that enables Codex to inspect and interact with Chrome tabs through the Chrome DevTools Protocol, primarily for collecting authorized Brightspace course materials into local folders.16MIT
- AlicenseNot gradedqualityDmaintenanceEnables reading browser DevTools data (tabs, console errors, network requests, screenshots, DOM, CSS, JS execution) via Chrome DevTools Protocol.5,213 npmMIT
- AlicenseBqualityBmaintenanceEnables AI agents and developers to automate real Chrome/Chromium browsers through the Chrome DevTools Protocol, with token-efficient snapshots, multi-action batching, shadow DOM traversal, system-page control, extension management, and network/WebSocket inspection.811MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to query course catalogs, assignments, exams, activities, and learning progress through a local Chrome CDP session, refresh and inspect saved snapshots, and open task entries while leaving login, verification, and submission actions manual.MIT