---
title: 'How to Connect Gasoline to Windsurf'
description: 'Simple beginner setup for connecting Windsurf to BlazeTorch AI DevTools through MCP.'
canonical: https://cookwithgasoline.com/articles/how-to-connect-gasoline-to-windsurf/
docs_version: 'v0.8.1'
docs_channel: 'latest'
last_verified_version: '0.8.0'
last_verified_date: 'Fri Mar 06 2026 00:00:00 GMT+0000 (Coordinated Universal Time)'
normalized_tags: ['beginner', 'windsurf', 'mcp', 'setup', 'articles', 'connect', 'gasoline']
related_guides: ['/guides/debug-webapps/', '/guides/api-validation/', '/reference/observe/']
---

If you use Windsurf and want real browser evidence during development, this guide is for you.

<!-- more -->

## Quick Terms

- **MCP (Model Context Protocol):** A tool integration standard for AI assistants. https://modelcontextprotocol.io/specification/
- **Runtime evidence:** What actually happened in the browser (errors, requests, page state).

## Step 1: Check Gasoline availability

```bash
npx -y gasoline-mcp --help
```

## Step 2: Add Gasoline to your Windsurf MCP servers

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

## Step 3: Restart Windsurf

Windsurf needs a restart to load new MCP entries.

## Step 4: Run your first checks

```js
observe({what: "errors"})
observe({what: "logs", min_level: "error"})
```

## Step 5: Create a concrete artifact

```js
generate({what: "reproduction"})
```

This gives your team a reproducible script instead of vague notes.

## Image and Diagram Callouts

> [Image Idea] Windsurf MCP config with Gasoline server entry.

> [Diagram Idea] Windsurf request -> Gasoline tools -> bug artifact output.
