Basic information
About Grep MCP Server
Use Grep to search GitHub code with queries or regex, filter by language, repository, and file path for precise results.
Grep is a remote MCP server in the Other category listed in the AddMCP.net directory, published by vercel. It exposes 1 tool, including searchGitHub. Supported transport: streamable-http. Runtime: TypeScript. License: MIT. The repository has 2,022 GitHub stars. Related topics: official, other.
Connection details
https://mcp.grep.app
Setup
claude mcp add grep --transport http https://mcp.grep.app
[mcp_servers.grep] url = "https://mcp.grep.app"
{
"mcpServers": {
"grep": {
"url": "https://mcp.grep.app"
}
}
}
{
"servers": {
"grep": {
"type": "http",
"url": "https://mcp.grep.app"
}
}
}
Grep MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"grep": {
"url": "https://mcp.grep.app"
}
}
}
Grep MCP Server tools
- searchGitHub — 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 patterns - When unsure about correct syntax, parameters, or configuration for a specific library - When looking for production-ready examples and best practices for implementation - When needing to understand how different libraries or frameworks work together **Perfect for questions like:** - "How do developers handle authentication in Next.js apps?" → Search: 'getServerSession' with language=['TypeScript', 'TSX'] - "What are common React error boundary patterns?" → Search: 'ErrorBoundary' with language=['TSX'] - "Show me real useEffect cleanup examples" → Search: '(?s)useEffect\(\(\) => {.*removeEventListener' with useRegexp=true - "How do developers handle CORS in Flask applications?" → Search: 'CORS(' with matchCase=true and language=['Python'] Use regular expressions with useRegexp=true for flexible patterns like '(?s)useState\(.*loading' to find useState hooks with loading-related variables. Prefix the pattern with '(?s)' to match across multiple lines. Filter by language, repository, or file path to narrow results.
Overview
What is Grep?
Issue search queries and retrieve code snippets from GitHub that match specific patterns or regular expressions, filtered by language, repository, and file path.
Videos
Tutorials, guides, and showcases related to Grep MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In