ConsoleSpy: An MCP Server for Cursor
A tool that captures browser console logs and makes them available in Cursor IDE through the Model Context Protocol (MCP).
Overview
This tool consists of:
- A server that captures console logs from your browser
- An MCP server that makes these logs available to Cursor
- A browser extension that sends console logs to the server
Installation
Server Setup
Clone this repository:
git clone https://github.com/mgsrevolver/consolespy.git cd consolespyInstall dependencies:
npm installRun the setup script to configure the MCP connection for Cursor:
./setup.sh
Browser Extension Installation
Install the extension from the Chrome Web Store
OR
Load the extension in developer mode:
- Open Chrome and go to
chrome://extensions/ - Enable “Developer mode” (toggle in the top-right corner)
- Click “Load unpacked” and select the
extensionfolder from this repository
- Open Chrome and go to
Usage
Starting the Servers
Start the console log server:
node mcp-server.jsIn a separate terminal, start the MCP server:
npx supergateway --port 8766 --stdio "node console-spy-mcp.js"
Alternatively, you can use the start script to launch both servers at once:
./start-servers.sh
Configuring Cursor
After running the setup script, you still need to manually add the MCP server in Cursor:
- Go to Settings > Features > MCP in Cursor
- Add a new MCP server with:
- Name: ConsoleSpy
- Type: sse
- URL: http://localhost:8766/sse
Using the Extension
- Click the extension icon in your browser to toggle it on/off
- When enabled, all console logs from the current tab will be sent to the server
- In Cursor, you can now access these logs through the MCP interface
Customizing
Changing the Console Log Server Port
If you need to use a different port for the console log server (default is 3333), you’ll need to update the port in multiple places:
In
mcp-server.js, change the port variable:const port = 3333; // Change to your desired portIn
console-spy-mcp.js, update the URL to match your new port:const CONSOLE_SERVER_URL = 'http://localhost:3333/mcp'; // Change 3333 to your portIn the browser extension’s
content.js, update the server URL:const serverUrl = 'http://localhost:3333/console-logs'; // Change 3333 to your portIf using
start-servers.sh, update the port reference there as well.
Important: You must use the same port number in all locations. We recommend doing a global search for “3333” in the project files and replacing all instances with your desired port number to ensure consistency.
If you’re testing locally with another application already using port 3333, changing this port is essential for the tool to work correctly.
Troubleshooting
- Make sure both servers are running
- Verify the browser extension is enabled for the tab you’re debugging
- Check that you’ve added the MCP server in Cursor’s settings
- If logs aren’t appearing, try refreshing the page or restarting the servers
License
MIT License
ConsoleSpy
Project Details
- mgsrevolver/consolespy
- MIT License
- Last Updated: 4/3/2025
Categories
Recomended MCP Servers
Model Context Protocol (MCP) server for the Webflow Data API.
A MCP server implementation for hyperbrowser
Allows LLM agents to control a local chrome instance without taking screenshots
Withseismic MCP Server - Model Control Protocol, the ://WITHSEISMIC way
mcp server for tidb
Node based Notion MCP server
支持SSE,STDIO;不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展 Support for SSE, STDIO in MySQL MCP server mcp_mysql_server_pro is not just about MySQL CRUD operations,...
Web use, browser automation, scraping, and automation with Model Context Protocol (MCP) and Selenium.
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
✨ mem0 MCP Server: A modern memory system using mem0 for AI applications with model context protocl (MCP)...
A ready-to-use MCP (Model Context Protocol) server template for extending Cursor IDE with custom tools. Deploy your own...





