Skip to content

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.

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.

  1. Restart Cursor after adding config
  2. Check MCP status in settings panel
  3. Verify extension shows “Connected” in popup