Configuration

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gasoline": {
      "command": "npx",
      "args": ["gasoline-mcp", "--mcp"]
    }
  }
}

Or use Cursor’s UI: Settings → MCP Servers → Add Server:

{
  "gasoline": {
    "command": "npx",
    "args": ["gasoline-mcp", "--mcp"]
  }
}

Usage

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

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