# RepoContext

> RepoContext is an open-source MCP server. Read-only, commit-pinned repository context for 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/shmindmaster/repocontext
- **MCP Registry name:** io.github.shmindmaster/repocontext
- **Listing updated:** 2026-11-13

## About

Read-only, commit-pinned repository context for coding agents.

## Install

### Claude Code (Terminal)

```sh
claude mcp add repocontext -- npx -y @shmindmaster/repocontext
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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

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

## FAQ

### Is RepoContext free?

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

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

Run this command in your terminal: claude mcp add repocontext -- npx -y @shmindmaster/repocontext

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