# Code Context Gate

> Code Context Gate is an open-source MCP server. Context-aware code retrieval MCP server — ranked, gated results for AI coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/wisdomrock/code-context-gate
- **MCP Registry name:** io.github.wisdomrock/code-context-gate
- **Listing updated:** 2026-11-13

## About

Context-aware code retrieval MCP server — ranked, gated results for AI coding agents

## Install

### Claude Code (Terminal)

```sh
claude mcp add code-context-gate -- npx -y code-context-gate
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "code-context-gate": {
      "command": "npx",
      "args": [
        "-y",
        "code-context-gate"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "code-context-gate": {
      "command": "npx",
      "args": [
        "-y",
        "code-context-gate"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "code-context-gate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "code-context-gate"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "code-context-gate": {
      "command": "npx",
      "args": [
        "-y",
        "code-context-gate"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "code-context-gate": {
      "command": "npx",
      "args": [
        "-y",
        "code-context-gate"
      ]
    }
  }
}
```

## FAQ

### Is Code Context Gate free?

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

### How do I add Code Context Gate to Claude Code?

Run this command in your terminal: claude mcp add code-context-gate -- npx -y code-context-gate

## 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/code-context-gate
