# Sourcery

> Sourcery is an open-source MCP server. Sourcery security findings: MCP server, CLI, and fix-prompt builder over the Sourcery API. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/abyssbugg-labs/sourcery-agent-bundle
- **MCP Registry name:** io.github.abyssbugg-labs/sourcery
- **Listing updated:** 2026-11-13

## About

Sourcery security findings: MCP server, CLI, and fix-prompt builder over the Sourcery API.

## Install

### Claude Code (Terminal)

```sh
claude mcp add sourcery --env SOURCERY_API_KEY='<SOURCERY_API_KEY>' -- npx -y @abyssbugg/sourcery
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sourcery": {
      "command": "npx",
      "args": [
        "-y",
        "@abyssbugg/sourcery"
      ],
      "env": {
        "SOURCERY_API_KEY": "<SOURCERY_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sourcery": {
      "command": "npx",
      "args": [
        "-y",
        "@abyssbugg/sourcery"
      ],
      "env": {
        "SOURCERY_API_KEY": "<SOURCERY_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "sourcery": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@abyssbugg/sourcery"
      ],
      "env": {
        "SOURCERY_API_KEY": "<SOURCERY_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sourcery": {
      "command": "npx",
      "args": [
        "-y",
        "@abyssbugg/sourcery"
      ],
      "env": {
        "SOURCERY_API_KEY": "<SOURCERY_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sourcery": {
      "command": "npx",
      "args": [
        "-y",
        "@abyssbugg/sourcery"
      ],
      "env": {
        "SOURCERY_API_KEY": "<SOURCERY_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Sourcery free?

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

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

Run this command in your terminal: claude mcp add sourcery --env SOURCERY_API_KEY='<SOURCERY_API_KEY>' -- npx -y @abyssbugg/sourcery

## 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/sourcery
