Skip to content

How to Connect Gasoline to Cursor

Cursor is excellent for writing code. Gasoline makes Cursor workflows browser-aware.

Here is the fastest setup path.

Step 1: Confirm Gasoline command is available

Section titled “Step 1: Confirm Gasoline command is available”
Terminal window
npx -y gasoline-mcp --help

Step 2: Add Gasoline as an MCP server in Cursor

Section titled “Step 2: Add Gasoline as an MCP server in Cursor”

Use this config block:

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

Restart so Cursor reloads MCP servers.

observe({what: "errors"})
observe({what: "network_bodies", status_min: 400})
generate({what: "test", test_name: "first-cursor-gasoline-check"})

Now you have a repeatable baseline, not a one-off debugging session.

[Image Idea] Cursor MCP settings showing a connected gasoline server.

[Diagram Idea] Cursor edit loop with runtime checks between each change.