MCP Server Studio

Gaffer MCP server

Test analytics for AI agents: test history, flaky tests, failure clusters, coverage.

Registry name: sh.gaffer/mcp

Publisher
gaffer.sh
Runs
Local or hosted
Package
npm
Version
0.11.0
Category
Developer tools
Updated
2026-11-20

Source code on GitHub

Set up Gaffer (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gaffer-sh/mcp@0.11.0"
      ],
      "env": {
        "GAFFER_API_KEY": "<GAFFER_API_KEY>",
        "GAFFER_API_URL": "<GAFFER_API_URL>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add mcp -e GAFFER_API_KEY='<GAFFER_API_KEY>' -e GAFFER_API_URL='<GAFFER_API_URL>' -- npx -y @gaffer-sh/mcp@0.11.0

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gaffer-sh/mcp@0.11.0"
      ],
      "env": {
        "GAFFER_API_KEY": "<GAFFER_API_KEY>",
        "GAFFER_API_URL": "<GAFFER_API_URL>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@gaffer-sh/mcp@0.11.0"
      ],
      "env": {
        "GAFFER_API_KEY": "<GAFFER_API_KEY>",
        "GAFFER_API_URL": "<GAFFER_API_URL>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gaffer-sh/mcp@0.11.0"
      ],
      "env": {
        "GAFFER_API_KEY": "<GAFFER_API_KEY>",
        "GAFFER_API_URL": "<GAFFER_API_URL>"
      }
    }
  }
}

Set up Gaffer (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://app.gaffer.sh/mcp",
        "--header",
        "Authorization: <Authorization>"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http mcp https://app.gaffer.sh/mcp --header 'Authorization: <Authorization>'

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "mcp": {
      "url": "https://app.gaffer.sh/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://app.gaffer.sh/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://app.gaffer.sh/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
GAFFER_API_KEYYesAPI key from Account Settings > API Keys. gaf_ user key or gfr_ project token.
GAFFER_API_URLNoOverride the Gaffer API base URL. Defaults to https://app.gaffer.sh

More developer tools MCP servers