MCP-Grep

@erniebrodeur Claim

Basic information

Runtime
python
Category
License
GPL-3.0
Transports
stdio
Author
erniebrodeur
Submitted by
Community
Quality
35
Stars
24

About MCP-Grep Server

simple mcp server to wrap the local instance of grep.

MCP-Grep is a MCP server in the Other category listed in the AddMCP.net directory, published by erniebrodeur. Supported transport: stdio. Runtime: python. License: GPL-3.0. The repository has 24 GitHub stars. Source code is hosted on github.com. Related topics: anthropic, mcp, mcp-server, vscode.

Setup

{
    "mcpServers": {
        "mcp-grep": {
            "command": "npx",
            "args": [
                "-y",
                "@smithery/cli",
                "install",
                "@erniebrodeur/mcp-grep",
                "--client",
                "claude"
            ]
        }
    }
}

MCP-Grep config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-grep": {
            "command": "npx",
            "args": [
                "-y",
                "@smithery/cli",
                "install",
                "@erniebrodeur/mcp-grep",
                "--client",
                "claude"
            ]
        }
    }
}

MCP-Grep tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP-Grep?

MCP-Grep exposes system grep functionality through the Model Context Protocol (MCP), allowing MCP-compatible clients to search file contents using regular expressions. It is designed for developers and LLM-based tools that need to inspect local files efficiently.

How to use MCP-Grep?

Install via pip install mcp-grep or automatically through Smithery. Start the server with the command mcp-grep-server, or use mcp-grep-inspector for an interactive web UI. Connect any MCP-compatible client to access the grep tool and the grep://info resource.

Key features of MCP-Grep

  • Provides system binary info via the grep://info resource.
  • Supports case‑insensitive matching, context lines, and recursion.
  • Accepts natural language prompts for easier LLM interaction.
  • Includes an interactive MCP Inspector for debugging.
  • Enables fixed string (non‑regex) searches and match limits.

Use cases of MCP-Grep

  • Search for error patterns in log files during debugging.
  • Recursively find deprecated API usage across a project.
  • Query codebases with natural language requests through an LLM.
  • Test and refine grep queries interactively in a web UI.

Frequently asked questions

1 How do I install MCP-Grep?

Use pip install mcp-grep for manual installation, or run npx -y @smithery/cli install @erniebrodeur/mcp-grep --client claude to install via Smithery for Claude Desktop.

2 What commands start the server?

Run mcp-grep-server to start the MCP server, or mcp-grep-inspector to launch the interactive web‑based inspector.

3 What search options does the grep tool support?

It supports case‑insensitive matching, context lines before/after matches, maximum match count, fixed string matching, and recursive directory searching.

4 How can I use natural language prompts?

MCP-Grep accepts plain‑English requests like “Find ‘error’ in log.txt” or “Show 3 lines of context around ‘exception’.” The server interprets the intent and sets the correct grep parameters.

5 Does MCP-Grep require any external dependencies?

It uses the system’s grep binary and the mcp-grep Python package. No additional runtime or cloud service is needed.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬