# Periphery Code Audit

> Periphery Code Audit is an open-source MCP server. Swift code analysis with Periphery - detect unused code and improve code quality. It runs locally on your machine and is started by your AI client.

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

## About

Swift code analysis with Periphery - detect unused code and improve code quality

## Install

### Claude Code (Terminal)

```sh
claude mcp add periphery-mcp-server -- npx -y https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "periphery-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "periphery-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "periphery-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "periphery-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "periphery-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server"
      ]
    }
  }
}
```

## FAQ

### Is Periphery Code Audit free?

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

### How do I add Periphery Code Audit to Claude Code?

Run this command in your terminal: claude mcp add periphery-mcp-server -- npx -y https://github.com/zyntx-lab/periphery-mcp-server/releases/download/v1.0.0/periphery-mcp-server

---
Source: https://ai-powered.com/mcp/periphery-code-audit
