← Grep MCP Server

Grep MCP Server 1.0.0

npm · @247arjun/mcp-grep · current release

5
Tools
0
Resources
0
Templates
0
Prompts

Observation

Observed 2026-08-18T05:21:53.794Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.

Server capabilities
{
  "tools": {
    "listChanged": true
  }
}

Tools 5

ToolCategoryAnnotationsRisk
grep_advancedExecute grep with custom arguments (advanced usage)
Input schema
{
  "type": "object",
  "properties": {
    "args": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of grep arguments (excluding 'grep' itself)"
    }
  },
  "required": [
    "args"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
— · —
grep_countCount the number of matches for a pattern
Input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "Regular expression pattern or plain text to count"
    },
    "target": {
      "type": "string",
      "description": "File or directory path to search in"
    },
    "case_sensitive": {
      "type": "boolean",
      "default": false,
      "description": "Whether the search should be case sensitive"
    },
    "whole_words": {
      "type": "boolean",
      "default": false,
      "description": "Match whole words only"
    },
    "by_file": {
      "type": "boolean",
      "default": false,
      "description": "Show count per file when searching directories"
    },
    "file_extensions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Only search files with these extensions"
    }
  },
  "required": [
    "pattern",
    "target"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
— · —
grep_files_with_matchesList only the names of files that contain the pattern
Input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "Regular expression pattern or plain text to search for"
    },
    "target": {
      "type": "string",
      "description": "Directory path to search in"
    },
    "case_sensitive": {
      "type": "boolean",
      "default": false,
      "description": "Whether the search should be case sensitive"
    },
    "whole_words": {
      "type": "boolean",
      "default": false,
      "description": "Match whole words only"
    },
    "file_extensions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Only search files with these extensions"
    },
    "exclude_patterns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Exclude files matching these patterns"
    }
  },
  "required": [
    "pattern",
    "target"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
— · —
grep_regexSearch using a direct regex pattern
Input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "Regular expression pattern to search for"
    },
    "target": {
      "type": "string",
      "description": "File or directory path to search in"
    },
    "case_sensitive": {
      "type": "boolean",
      "default": false,
      "description": "Whether the search should be case sensitive"
    },
    "whole_words": {
      "type": "boolean",
      "default": false,
      "description": "Match whole words only"
    },
    "invert_match": {
      "type": "boolean",
      "default": false,
      "description": "Show lines that don't match the pattern"
    },
    "max_results": {
      "type": "number",
      "description": "Maximum number of results to return"
    },
    "show_context": {
      "type": "boolean",
      "default": false,
      "description": "Show surrounding lines for context"
    },
    "context_lines": {
      "type": "number",
      "default": 2,
      "description": "Number of context lines to show before/after matches"
    },
    "file_extensions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Only search files with these extensions (e.g., ['js', 'ts'])"
    }
  },
  "required": [
    "pattern",
    "target"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
— · —
grep_search_intentSearch for patterns using plain English descriptions (e.g., 'email addresses', 'phone numbers', 'TODO comments')
Input schema
{
  "type": "object",
  "properties": {
    "intent": {
      "type": "string",
      "description": "Plain English description of what to search for"
    },
    "target": {
      "type": "string",
      "description": "File or directory path to search in"
    },
    "case_sensitive": {
      "type": "boolean",
      "default": false,
      "description": "Whether the search should be case sensitive"
    },
    "max_results": {
      "type": "number",
      "description": "Maximum number of results to return"
    },
    "show_context": {
      "type": "boolean",
      "default": false,
      "description": "Show surrounding lines for context"
    },
    "context_lines": {
      "type": "number",
      "default": 2,
      "description": "Number of context lines to show before/after matches"
    }
  },
  "required": [
    "intent",
    "target"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
— · —

Resources 0

Resource templates 0

Prompts 0

Let’s talk about MCP security.

Share your details and our security team will contact you.