Chrome Console Log MCP Server
Click on "Install 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 Console Log MCP Servershow me the console logs"
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.
Chrome Console Log MCP Server
Capture browser console logs via the Chrome DevTools Protocol and expose them to an MCP client over SSE.
Useful for getting console log for extensions that run outside of the main browser window!
Install
npm install -g @onlyhumn/chrome-console-log-mcp-serverOr run without installing:
npx @onlyhumn/chrome-console-log-mcp-server --match "YOUR_URL_SUBSTRING"From a clone:
npm install
node server.js --match "YOUR_URL_SUBSTRING"Related MCP server: Simple Console MCP
Usage
Start the browser with remote debugging:
/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --remote-debugging-port=9222Start the server (requires
--match):npx @onlyhumn/chrome-console-log-mcp-server --match "YOUR_URL_SUBSTRING"Examples:
npx @onlyhumn/chrome-console-log-mcp-server --match "localhost:3000" npx @onlyhumn/chrome-console-log-mcp-server --match "vlt-panel.html"Configure your MCP client:
Type:
sseURL:
http://localhost:8766/sse
Open or focus a page whose URL contains the match string. The server prints
Attached to ...when it finds a match. Use thegetConsoleLogstool to read captured output.
Flags
Flag | Default | Meaning |
| required | URL substring for CDP targets |
|
| CDP remote debugging port |
|
| HTTP port for MCP SSE |
|
| log directory |
|
| rotate threshold |
|
| rotated |
|
| CDP target rescan interval (ms) |
Logs
Console events are appended to /tmp/chrome-console-logs/current.jsonl. When the file exceeds the rotate threshold it is gzipped and pruned so only the newest --log-keep archives remain.
Releasing
Publishes run from GitHub Actions on v* tags. The tag must match package.json "version".
Ensure the npm org/user owns the
@onlyhumnscope.First publish only: from a machine logged into npm (
npm login), runnpm publish --access publiconce so the package exists, or create the package on npmjs.com if your account allows it.On the package page → Trusted Publisher (values are case-sensitive; must match GitHub OIDC claims):
Repository:
ONLYHUMN/chrome-console-log-mcp-server(not lowercaseonlyhumn/...)Workflow filename:
publish.ymlLeave Environment blank (workflow does not set one)
Bump
"version"inpackage.json, commit, push tomaster.Tag and push:
git tag v1.0.1 git push origin v1.0.1
A Trusted Publishing failure often shows up as a misleading E404 from npm publish.
Troubleshooting
Browser must be started with
--remote-debugging-port=9222(or the port you pass to--port)--matchis required; without it the process exits immediatelyConfirm the server printed
Attached to ...for your pageMCP client URL should be
http://localhost:8766/sse(or your--mcp-port)
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ONLYHUMN/chrome-console-log-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server