ConsoleSpy for Cursor
STDIOA tool that captures browser console logs and makes them available in Cursor IDE.
A tool that captures browser console logs and makes them available in Cursor IDE.
A tool that captures browser console logs and makes them available in Cursor IDE through the Model Context Protocol (MCP).
This tool consists of:
Clone this repository:
git clone https://github.com/mgsrevolver/consolespy.git cd consolespy
Install dependencies:
npm install
Run the setup script to configure the MCP connection for Cursor:
./setup.sh
Install the extension from the Chrome Web Store
OR
Load the extension in developer mode:
chrome://extensions/
extension
folder from this repositoryStart the console log server:
node mcp-server.js
In 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
After running the setup script, you still need to manually add the MCP server in Cursor:
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 port
In console-spy-mcp.js
, update the URL to match your new port:
const CONSOLE_SERVER_URL = 'http://localhost:3333/mcp'; // Change 3333 to your port
In the browser extension's content.js
, update the server URL:
const serverUrl = 'http://localhost:3333/console-logs'; // Change 3333 to your port
If 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.