# repoctx

> repoctx is an open-source MCP server. Local-first code context, impact analysis, and merge-readiness verdicts for AI agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://nugehs.github.io/repoctx/
- **Repository:** https://github.com/nugehs/repoctx
- **MCP Registry name:** io.github.nugehs/repoctx
- **Listing updated:** 2026-11-13

## About

Local-first code context, impact analysis, and merge-readiness verdicts for AI agents.

## Install

### Claude Code (Terminal)

```sh
claude mcp add repoctx -- npx -y @nugehs/repoctx
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "repoctx": {
      "command": "npx",
      "args": [
        "-y",
        "@nugehs/repoctx"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "repoctx": {
      "command": "npx",
      "args": [
        "-y",
        "@nugehs/repoctx"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "repoctx": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nugehs/repoctx"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "repoctx": {
      "command": "npx",
      "args": [
        "-y",
        "@nugehs/repoctx"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "repoctx": {
      "command": "npx",
      "args": [
        "-y",
        "@nugehs/repoctx"
      ]
    }
  }
}
```

## FAQ

### Is repoctx free?

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

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

Run this command in your terminal: claude mcp add repoctx -- npx -y @nugehs/repoctx

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