← MCP Ripgrep Server

MCP Ripgrep Server 0.4.0

npm · mcp-ripgrep · current release

5
Tools
0
Resources
0
Templates
0
Prompts

Observation

Observed 2026-08-15T21:16:16.759Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.

Server capabilities
{
  "tools": {}
}

Tools 5

ToolCategoryAnnotationsRisk
advanced-searchAdvanced search with ripgrep with more options
Input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "The search pattern (regex by default)"
    },
    "path": {
      "type": "string",
      "description": "Directory or file(s) to search."
    },
    "caseSensitive": {
      "type": "boolean",
      "description": "Use case sensitive search (default: auto)"
    },
    "fixedStrings": {
      "type": "boolean",
      "description": "Treat pattern as a literal string, not a regex"
    },
    "filePattern": {
      "type": "string",
      "description": "Filter by file type or glob"
    },
    "fileType": {
      "type": "string",
      "description": "Filter by file type (e.g., js, py)"
    },
    "maxResults": {
      "type": "number",
      "description": "Limit the number of matching lines"
    },
    "context": {
      "type": "number",
      "description": "Show N lines before and after each match"
    },
    "invertMatch": {
      "type": "boolean",
      "description": "Show lines that don't match the pattern"
    },
    "wordMatch": {
      "type": "boolean",
      "description": "Only show matches surrounded by word boundaries"
    },
    "includeHidden": {
      "type": "boolean",
      "description": "Search in hidden files and directories"
    },
    "followSymlinks": {
      "type": "boolean",
      "description": "Follow symbolic links"
    },
    "showFilenamesOnly": {
      "type": "boolean",
      "description": "Only show filenames of matches, not content"
    },
    "showLineNumbers": {
      "type": "boolean",
      "description": "Show line numbers"
    },
    "useColors": {
      "type": "boolean",
      "description": "Use colors in output (default: false)"
    }
  },
  "required": [
    "pattern",
    "path"
  ]
}
— · —
count-matchesCount matches in files using ripgrep
Input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "The search pattern (regex by default)"
    },
    "path": {
      "type": "string",
      "description": "Directory or file(s) to search."
    },
    "caseSensitive": {
      "type": "boolean",
      "description": "Use case sensitive search (default: auto)"
    },
    "filePattern": {
      "type": "string",
      "description": "Filter by file type or glob"
    },
    "countLines": {
      "type": "boolean",
      "description": "Count matching lines instead of total matches"
    },
    "useColors": {
      "type": "boolean",
      "description": "Use colors in output (default: false)"
    }
  },
  "required": [
    "pattern",
    "path"
  ]
}
— · —
list-file-typesList all supported file types in ripgrep
Input schema
{
  "type": "object",
  "properties": {}
}
— · —
list-filesList files that would be searched by ripgrep without actually searching them
Input schema
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "Directory or file(s) to search."
    },
    "filePattern": {
      "type": "string",
      "description": "Filter by file type or glob"
    },
    "fileType": {
      "type": "string",
      "description": "Filter by file type (e.g., js, py)"
    },
    "includeHidden": {
      "type": "boolean",
      "description": "Include hidden files and directories"
    }
  },
  "required": [
    "path"
  ]
}
— · —
searchSearch files for patterns using ripgrep (rg)
Input schema
{
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "The search pattern (regex by default)"
    },
    "path": {
      "type": "string",
      "description": "Directory or file(s) to search."
    },
    "caseSensitive": {
      "type": "boolean",
      "description": "Use case sensitive search (default: auto)"
    },
    "filePattern": {
      "type": "string",
      "description": "Filter by file type or glob"
    },
    "maxResults": {
      "type": "number",
      "description": "Limit the number of matching lines"
    },
    "context": {
      "type": "number",
      "description": "Show N lines before and after each match"
    },
    "useColors": {
      "type": "boolean",
      "description": "Use colors in output (default: false)"
    }
  },
  "required": [
    "pattern",
    "path"
  ]
}
— · —

Resources 0

Resource templates 0

Prompts 0

Let’s talk about MCP security.

Share your details and our security team will contact you.