Gasoline + Cursor
Gasoline is an open-source MCP server that gives Cursor’s AI real-time access to browser console logs, network errors, exceptions, WebSocket events, and live DOM state. Zero dependencies.
Configuration
Section titled “Configuration”Add to ~/.cursor/mcp.json:
{ "mcpServers": { "gasoline": { "command": "npx", "args": ["gasoline-mcp"] } }}Or use Cursor’s UI: Settings → MCP Servers → Add Server:
{ "gasoline": { "command": "npx", "args": ["gasoline-mcp"] }}After restarting Cursor, the AI can:
- See console errors and warnings
- Inspect failed network requests with response bodies
- Query the live DOM with CSS selectors
- Check WebSocket connection states
- Run accessibility audits
Ask: “What browser errors are happening?” — Cursor queries Gasoline automatically.
Troubleshooting
Section titled “Troubleshooting”- Restart Cursor after adding config
- Check MCP status in settings panel
- Verify extension shows “Connected” in popup