New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

mcp-console-hub

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcp-console-hub

MCP server that captures browser console logs and streams them to your IDE's AI agent in real-time

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
6
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source
MCP Console Hub

mcp-console-hub

Your browser's DevTools, streamed to your IDE's AI agent.

npm downloads MCP Node License

What It Captures

DevTools TabWhat's CapturedDetails
Consoleconsole.error/warn/log/info/debugWith stack traces for errors/warnings
ConsoleUnhandled exceptionswindow.onerror with file + line + column
ConsolePromise rejectionsunhandledrejection with stack
NetworkAll fetch/XHR requestsMethod, URL, status, duration, headers, body preview, size
NetworkFailed requests4xx, 5xx, connection errors with details
ApplicationlocalStorageAll key-value pairs
ApplicationsessionStorageAll key-value pairs
ApplicationCookiesName, value, domain, path
ApplicationIndexedDBDatabase names
PerformanceNavigation timingTTFB, DOM loaded, load complete, DNS, connect
PerformanceResource loadingJS, CSS, images, fonts with duration + size
PerformanceMemoryHeap size (Chrome only)
PerformanceMarks & MeasuresCustom performance marks

Zero code changes. One bookmarklet. Works with any web app.

Quick Start

1. Configure your IDE

Cursor
{
  "mcpServers": {
    "mcp-console-hub": {
      "command": "npx",
      "args": ["-y", "mcp-console-hub@latest"]
    }
  }
}
VSCode
{
  "servers": {
    "mcp-console-hub": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-console-hub@latest"]
    }
  }
}
Claude Code
claude mcp add mcp-console-hub npx -y mcp-console-hub@latest
Antigravity / Windsurf / OpenCode
{
  "mcpServers": {
    "mcp-console-hub": {
      "command": "npx",
      "args": ["-y", "mcp-console-hub@latest"]
    }
  }
}

2. Connect your browser

Open http://localhost:3200 — drag the bookmarklet to your bookmarks bar.

Navigate to any web app. Click the bookmarklet.

3. Ask your AI agent

@mcp-console-hub Diagnose all errors and suggest fixes
@mcp-console-hub Show all network failures
@mcp-console-hub Read localStorage and explain the app state
@mcp-console-hub Audit page performance
@mcp-console-hub Fix errors by priority — most critical first

MCP Tools (24 tools)

Console (7 tools)

ToolDescription
query_consoleFilter by level, source, text, time, stack
get_entry_contextFull context with parsed stack frames + timeline
get_error_chainsDetect cascading errors (root cause analysis)
get_repeated_patternsFind recurring messages
parse_stack_traceStructured frames: function, file, line, col
find_by_fileFind all errors from a specific source file
get_unhandled_errorsRuntime exceptions + promise rejections

Network (4 tools)

ToolDescription
query_networkFilter by method, status, URL, duration
get_network_detailFull request/response: headers, body, timing
get_network_errorsAll 4xx, 5xx, and connection failures
get_slow_requestsRequests above duration threshold

Storage (3 tools)

ToolDescription
read_storageAll storage: localStorage, sessionStorage, cookies, IndexedDB
read_storage_keyRead specific key with auto JSON parse
get_cookiesList/search cookies

Performance (2 tools)

ToolDescription
get_performanceNavigation timing, resources, memory, marks
get_slow_resourcesFind slow-loading JS, CSS, images, fonts

General (4 tools)

ToolDescription
get_console_statsAggregated statistics
get_page_infoPage URL, user agent, all data availability
get_timelineChronological event sequence
clear_consoleClear all captured data

Export (1 tool)

ToolDescription
export_reportFull DevTools report as JSON or Markdown

MCP Prompts (7 prompts)

PromptTriggerDescription
diagnose/diagnoseFull analysis of errors + network + performance
fix_by_priority/fix_by_priorityPrioritized fix list: Critical > High > Medium
suggest_solution/suggest_solutionConcrete code fix for the most recent error
debug_network/debug_networkAnalyze failures, CORS issues, auth errors
read_app_state/read_app_stateAnalyze storage to understand app state
performance_audit/performance_auditPage load audit with optimization suggestions
fix_entry/fix_entryStep-by-step fix for the latest error

MCP Resources (12 resources)

URIDescription
console://entriesAll console entries
console://errorsError-level only
console://warningsWarning-level only
console://timelineChronological timeline
console://summaryAggregated stats
network://requestsAll network requests
network://errorsFailed requests
network://slowSlow requests (>1s)
storage://snapshotFull storage snapshot
storage://cookiesCookies only
performance://dataAll performance data
devtools://pagePage info + data availability

How It Works

Browser (any web app)              MCP Console Hub                     IDE AI Agent
+-----------------+               +--------------------+              +----------------+
| Bookmarklet     |  WebSocket    |                    |    stdio     |                |
| captures:       |==============>|  Console Store     |<===========>|  24 MCP Tools  |
|                 |  :3201        |  Network Store     |              |  12 Resources  |
| - console.*     |               |  Storage Snapshot  |              |  7 Prompts     |
| - window.onerror|  HTTP POST    |  Performance Data  |              |                |
| - fetch/XHR     |-------------->|                    |              |  Cursor        |
| - localStorage  |  :3200        |  File-backed       |              |  VSCode        |
| - cookies       |               |  (.store/)         |              |  Claude Code   |
| - performance   |               |                    |              |  Antigravity   |
+-----------------+               +--------------------+              +----------------+
  zero code changes                  npx mcp-console-hub               IDE MCP config

Ports & Environment

PortProtocolPurpose
3200HTTPConnector page + health + ingestion
3201WebSocketReal-time data streaming
VariableDefaultDescription
MCP_CONSOLE_HUB_PORT3200HTTP port
MCP_CONSOLE_HUB_WS_PORT3201WebSocket port
MCP_CONSOLE_HUB_STORE_PATHautoCustom store file path

License

MIT — see LICENSE

Built by nano-step — Copyright © 2026 Hoai Nho Nguyen

Keywords

mcp

FAQs

Package last updated on 21 Mar 2026

Related posts