# Blacksmith

> Blacksmith is an open-source MCP server. MCP server for Blacksmith CI - query runs, analyze test failures, detect flaky tests. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/grahamnotgrant/blacksmith-mcp
- **MCP Registry name:** io.github.grahamnotgrant/blacksmith
- **Listing updated:** 2026-11-13

## About

MCP server for Blacksmith CI - query runs, analyze test failures, detect flaky tests.

## Install

### Claude Code (Terminal)

```sh
claude mcp add blacksmith --env BLACKSMITH_ORG='<BLACKSMITH_ORG>' --env BLACKSMITH_SESSION_COOKIE='<BLACKSMITH_SESSION_COOKIE>' -- npx -y blacksmith-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "blacksmith": {
      "command": "npx",
      "args": [
        "-y",
        "blacksmith-mcp"
      ],
      "env": {
        "BLACKSMITH_ORG": "<BLACKSMITH_ORG>",
        "BLACKSMITH_SESSION_COOKIE": "<BLACKSMITH_SESSION_COOKIE>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "blacksmith": {
      "command": "npx",
      "args": [
        "-y",
        "blacksmith-mcp"
      ],
      "env": {
        "BLACKSMITH_ORG": "<BLACKSMITH_ORG>",
        "BLACKSMITH_SESSION_COOKIE": "<BLACKSMITH_SESSION_COOKIE>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "blacksmith": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "blacksmith-mcp"
      ],
      "env": {
        "BLACKSMITH_ORG": "<BLACKSMITH_ORG>",
        "BLACKSMITH_SESSION_COOKIE": "<BLACKSMITH_SESSION_COOKIE>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "blacksmith": {
      "command": "npx",
      "args": [
        "-y",
        "blacksmith-mcp"
      ],
      "env": {
        "BLACKSMITH_ORG": "<BLACKSMITH_ORG>",
        "BLACKSMITH_SESSION_COOKIE": "<BLACKSMITH_SESSION_COOKIE>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "blacksmith": {
      "command": "npx",
      "args": [
        "-y",
        "blacksmith-mcp"
      ],
      "env": {
        "BLACKSMITH_ORG": "<BLACKSMITH_ORG>",
        "BLACKSMITH_SESSION_COOKIE": "<BLACKSMITH_SESSION_COOKIE>"
      }
    }
  }
}
```

## FAQ

### Is Blacksmith free?

Yes. Blacksmith is open source, so you can use and self-host it for free.

### How do I add Blacksmith to Claude Code?

Run this command in your terminal: claude mcp add blacksmith --env BLACKSMITH_ORG='<BLACKSMITH_ORG>' --env BLACKSMITH_SESSION_COOKIE='<BLACKSMITH_SESSION_COOKIE>' -- npx -y blacksmith-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/blacksmith
