Hosted MCP server · #140 most used on Smithery
GitHub Code Search
arjunkmrm/grep
Search millions of public GitHub repositories for real-world code patterns and implementation examples. Discover how developers use specific libraries and handle complex configurations in production environments. Improve coding speed and accuracy by referencing verified open-source solutions.
- Uses
- 3.8k
- Tools
- 1
- Runs
- Hosted
- Listed
- 9mo ago
Get started
Add it to your agent
npx -y @smithery/cli@latest install arjunkmrm/grep --client claudeSwap --client claude for cursor, vscode, windsurf or another client. The CLI asks for any required settings.
claude mcp add --transport http github-code-search https://server.smithery.ai/arjunkmrm/grep/mcpA hosted server: nothing to install. Run /mcp in Claude Code to sign in if it asks.
[mcp_servers.github-code-search]
url = "https://server.smithery.ai/arjunkmrm/grep/mcp"Add to ~/.codex/config.toml.
{
"mcpServers": {
"github-code-search": {
"url": "https://server.smithery.ai/arjunkmrm/grep/mcp"
}
}
}Add to ~/.cursor/mcp.json.
{
"servers": {
"github-code-search": {
"type": "http",
"url": "https://server.smithery.ai/arjunkmrm/grep/mcp"
}
}
}Add to .vscode/mcp.json.
gemini mcp add --transport http github-code-search https://server.smithery.ai/arjunkmrm/grep/mcpSaved to .gemini/settings.json.
What it can do
1 tool
searchGitHub7 paramsFind real-world code examples from over a million public GitHub repositories to help answer programming questions. **IMPORTANT: This tool…
Find real-world code examples from over a million public GitHub repositories to help answer programming questions. **IMPORTANT: This tool searches for literal code patterns (like grep), not keywords. Search for actual code that would appear in files:** - ✅ Good: 'useState(', 'import React from', 'async function', '(?s)try {.*await' - ❌ Bad: 'react tutorial', 'best practices', 'how to use' **When to use this tool:** - When implementing unfamiliar APIs or libraries and need to see real usage patte
| Parameter | Type | Description |
|---|---|---|
path | string | Filter by file path. Examples: 'src/components/Button.tsx', 'README.md'. Can match partial paths, for example '/route.ts' will find route.ts files at any level. |
repo | string | Filter by repository. Examples: 'facebook/react', 'microsoft/vscode', 'vercel/ai'. Can match partial names, for example 'vercel/' will find repositories in the vercel org. |
query | string | The literal code pattern to search for (e.g., 'useState(', 'export function'). Use actual code that would appear in files, not keywords or questions. |
language | array | Filter by programming language. Examples: ['TypeScript', 'TSX'], ['JavaScript'], ['Python'], ['Java'], ['C#'], ['Markdown'], ['YAML'] |
matchCase | boolean | Whether the search should be case sensitive |
useRegexp | boolean | Whether to interpret the query as a regular expression |
matchWholeWords | boolean | Whether to match whole words only |