Skip to main content
MCP server CX Codex

GitHub Code Search — MCP server for Claude Code

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.

no license 3,818 installs updated 2026-02-07

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http grep https://grep--arjunkmrm.run.tools
Open on GitHub

What GitHub Code Search 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.

What it helps with

  • 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 for the agent

  • 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?

How to install GitHub Code Search

Platform CLI: remote server

claude mcp add --transport http grep https://grep--arjunkmrm.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about GitHub Code Search

How do I install GitHub Code Search in Claude Code?

Run in your terminal: claude mcp add --transport http grep https://grep--arjunkmrm.run.tools or claude mcp add --transport http github-code-search https://grep--arjunkmrm.run.tools. The first registers it as grep, the second as github-code-search.

What does this server search for?

Literal code patterns in public GitHub repositories — the exact strings and syntax you provide. It works like grep and does not interpret meaning.

How do I set it up in Cursor or GitHub Copilot?

In Cursor, add to config: { "mcpServers": { "github-code-search": { "url": "https://grep--arjunkmrm.run.tools" } } }. In GitHub Copilot: `{ "servers": { "github-code-search": { "type": "http", "url": "https://grep--arjunkmrm.run.tools" } } }`.

Similar MCP servers

All MCP servers for Code review and refactoring →

Project sponsors

Companies that keep this analytics open