Wraps the local grep so agents can search files with regex, case-insensitive matching, context lines and recursion.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add grep -- npx -y @smithery/cli install @erniebrodeur/mcp-grep --client claude~/.codex/config.toml
[mcp_servers.grep]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@erniebrodeur/mcp-grep", "--client", "claude"]
# codex mcp add grep -- npx -y @smithery/cli install @erniebrodeur/mcp-grep --client claude~/.cursor/mcp.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@erniebrodeur/mcp-grep",
"--client",
"claude"
]
}
}
}.vscode/mcp.json
{
"servers": {
"grep": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@erniebrodeur/mcp-grep",
"--client",
"claude"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@erniebrodeur/mcp-grep",
"--client",
"claude"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@erniebrodeur/mcp-grep",
"--client",
"claude"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"grep": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@erniebrodeur/mcp-grep",
"--client",
"claude"
]
}
}
}