# GitHub Code Search

The GitHub Code Search MCP server works in Claude Code and finds real code examples in public GitHub repositories, showing how developers use libraries and solve problems in production.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 3818 installs
- Author: arjunkmrm
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/arjunkmrm/grep
- Updated: 2026-02-07
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/github-code-search

## What it does

This MCP server adds a `searchGitHub` tool to your editor that searches for literal code patterns across millions of public repositories. Write `useState(` or `import React from` — and get actual examples from live projects instead of docs.

The search works like grep: it finds exact code you specify, not keywords. You search for syntax and function names as they appear in files.

Available on Claude Code, Codex, Cursor, GitHub Copilot, Windsurf, Cline, Zed, and Gemini CLI. Installation varies by platform — from a single command in Claude Code to JSON config in Cursor or Copilot.

## Requirements
- Remote server: `https://grep--arjunkmrm.run.tools`
- Works with: GitHub

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http grep https://grep--arjunkmrm.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add github-code-search --url https://grep--arjunkmrm.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "github-code-search": {
            "url": "https://grep--arjunkmrm.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "github-code-search": {
            "type": "http",
            "url": "https://grep--arjunkmrm.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http github-code-search https://grep--arjunkmrm.run.tools
```

## When to use it
- find working examples of library usage
- see how developers structure complex configurations
- discover code patterns from production projects
- speed up development by referencing verified solutions

## Example prompts
- Show me examples of fetch with error handling
- How do people write webpack.config.js?
- Where in open-source repos do they use async/await?

## Similar
- [github-search](https://affpapa.org/en/nevibecode/skills/github-search.md) — skill · 746 installs
- [read-github](https://affpapa.org/en/nevibecode/skills/read-github.md) — skill · 1200 installs
- [github-scout](https://affpapa.org/en/nevibecode/agents/github-scout.md) — subagent · ★ 730 repo stars
- [private-github-search](https://affpapa.org/en/nevibecode/skills/private-github-search.md) — skill · ★ 10363 repo stars
- [project-references](https://affpapa.org/en/nevibecode/skills/project-references.md) — skill · 6300 installs
- [github-copilot-starter](https://affpapa.org/en/nevibecode/skills/github-copilot-starter.md) — skill · 8900 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
