# Grep

> Use this tool when you need to search for patterns in files using regular expressions, to analyze text files or codebases, or to perform case-insensitive matching and recursive directory searches. It solves problems such as finding specific code snippets, extracting data from log files, and identifying text patterns in large datasets. It takes regular expressions and file paths as input and returns matched patterns and context lines as output.

Canonical page: https://skillsregistry.net/skills/erniebrodeur-grep  
JSON: https://api.skillsregistry.net/v1/skills/erniebrodeur-grep

## Description

MCP-Grep provides a server implementation that exposes the system grep binary's functionality through the Model Context Protocol, allowing AI assistants to search for patterns in files using regular expressions. Developed by Ernie Brodeur, it offers both a resource endpoint for retrieving grep binary information and a tool for performing searches with support for common grep options like case-insensitive matching, context lines, recursive directory searching, and fixed string matching. The implementation uses Python's subprocess module to execute grep commands on the host system, making it particularly valuable for AI assistants that need to analyze text files or codebases without leaving their conversation interface.

## Trust

- **Trust score (0–1):** 1.00
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** search
- **Updated:** 2026-09-19

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/erniebrodeur-grep)
- **Repository:** <https://github.com/erniebrodeur/mcp-grep>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "erniebrodeur-grep"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/erniebrodeur-grep` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/erniebrodeur-grep/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
