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 claude

Swap --client claude for cursor, vscode, windsurf or another client. The CLI asks for any required settings.

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

ParameterTypeDescription
pathstringFilter 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.
repostringFilter by repository. Examples: 'facebook/react', 'microsoft/vscode', 'vercel/ai'. Can match partial names, for example 'vercel/' will find repositories in the vercel org.
querystringThe literal code pattern to search for (e.g., 'useState(', 'export function'). Use actual code that would appear in files, not keywords or questions.
languagearrayFilter by programming language. Examples: ['TypeScript', 'TSX'], ['JavaScript'], ['Python'], ['Java'], ['C#'], ['Markdown'], ['YAML']
matchCasebooleanWhether the search should be case sensitive
useRegexpbooleanWhether to interpret the query as a regular expression
matchWholeWordsbooleanWhether to match whole words only