通过 grep.app 搜索 GitHub 公开仓库代码,可按语言、仓库名和文件路径过滤。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add grep -- npx -y grep-mcp~/.codex/config.toml
[mcp_servers.grep]
command = "npx"
args = ["-y", "grep-mcp"]
# codex mcp add grep -- npx -y grep-mcp~/.cursor/mcp.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"grep-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"grep": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"grep-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"grep-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"grep-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"grep-mcp"
]
}
}
}