Skip to main content
Glama
mcollina

MCP Ripgrep Server

by mcollina

Servidor MCP Ripgrep

Un servidor MCP que proporciona capacidades de búsqueda ripgrep (rg) a cualquier cliente MCP como Claude.

Descripción general

Este servidor proporciona una interfaz de Protocolo de Contexto de Modelo (MCP) para la potente herramienta de búsqueda ripgrep . Permite a Claude AI y a otros clientes compatibles con MCP realizar búsquedas de texto de alto rendimiento en los archivos del sistema.

Related MCP server: MCP Desktop Tools

Prerrequisitos

  • Node.js (v18 o superior)

  • El comando ripgrep ( rg ) está instalado y disponible en PATH. Instálelo con brew install ripgrep en macOS.

Uso con Claude para escritorio

Para utilizar este servidor MCP con Claude for Desktop:

  1. Edite su archivo de configuración de Claude for Desktop:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Ventanas: %APPDATA%\Claude\claude_desktop_config.json

  2. Añade lo siguiente a tu configuración:

    {
      "mcpServers": {
        "ripgrep": {
          "command": "npx",
          "args": ["-y", "mcp-ripgrep@latest"]
        }
      }
    }

    Reemplace /path/to/mcp-ripgrep con la ruta absoluta a donde clonó este repositorio.

  3. Reinicie Claude para escritorio.

Herramientas disponibles

buscar

Búsqueda básica con ripgrep:

Pattern: error
Path: ./src

búsqueda avanzada

Búsqueda más avanzada con opciones adicionales:

Pattern: function
Path: ./src
FixedStrings: true
FileType: ts
IncludeHidden: false

conteo de coincidencias

Contar ocurrencias de un patrón:

Pattern: TODO
Path: ./src
CountLines: true

archivos de lista

Lista de archivos que se buscarían sin buscarlos realmente:

Path: ./src
FileType: js

lista-tipos-de-archivos

Enumere todos los tipos de archivos admitidos en ripgrep.

Consideraciones de seguridad

Este servidor MCP ejecuta comandos de shell mediante la herramienta ripgrep. Si bien se ha intentado escapar los argumentos de forma segura, tenga cuidado al proporcionar información mientras ejecuta comandos en su equipo.

Licencia

Instituto Tecnológico de Massachusetts (MIT)

Available Tools

5 tools
count-matchesC

Count matches in files using ripgrep

ParametersJSON Schema
NameRequiredDescriptionDefault
patternYesThe search pattern (regex by default)
pathYesDirectory or file(s) to search.
caseSensitiveNoUse case sensitive search (default: auto)
filePatternNoFilter by file type or glob
countLinesNoCount matching lines instead of total matches
useColorsNoUse colors in output (default: false)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'using ripgrep' which implies a command-line search tool behavior, but doesn't describe output format, error handling, performance characteristics, or whether this is a read-only operation. For a tool with 6 parameters and no annotations, this is inadequate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise - just 6 words that directly state the tool's purpose. Every word earns its place with zero waste. It's appropriately sized for a simple search/count tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the output looks like (just counts? formatted results?), doesn't mention error conditions, and provides no context about the ripgrep implementation details that might affect usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all parameters are documented in the schema. The description adds no additional parameter information beyond what's in the schema. The baseline score of 3 is appropriate when the schema does all the parameter documentation work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('count matches') and the tool used ('using ripgrep'), which is a specific verb+resource combination. However, it doesn't distinguish this tool from its sibling 'search' tool, which likely performs similar search functionality but with different output. The purpose is clear but lacks sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like the 'search' or 'advanced-search' sibling tools. There's no mention of prerequisites, typical use cases, or exclusions. The agent must infer usage from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list-filesB

List files that would be searched by ripgrep without actually searching them

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesDirectory or file(s) to search.
filePatternNoFilter by file type or glob
fileTypeNoFilter by file type (e.g., js, py)
includeHiddenNoInclude hidden files and directories

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It mentions the tool lists files 'without actually searching them,' which hints at a read-only, non-destructive behavior, but doesn't disclose other traits like performance characteristics, rate limits, or authentication needs. For a tool with zero annotation coverage, this is a significant gap in behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose. It avoids unnecessary words and directly communicates the tool's function, making it easy to parse and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (4 parameters, no output schema, no annotations), the description is minimally adequate. It states what the tool does but lacks details on output format, error handling, or integration with sibling tools. Without annotations or an output schema, more context would improve completeness for effective agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters (path, filePattern, fileType, includeHidden) with descriptions. The description doesn't add any parameter-specific semantics beyond what the schema provides, such as examples or constraints, meeting the baseline score of 3 for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'List files that would be searched by ripgrep without actually searching them.' It specifies the verb ('List files') and resource ('files that would be searched by ripgrep'), but doesn't explicitly differentiate from sibling tools like 'list-file-types' or 'search' beyond the ripgrep reference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by mentioning 'without actually searching them,' suggesting this is for previewing what ripgrep would search. However, it doesn't provide explicit guidance on when to use this tool versus alternatives like 'search' or 'list-file-types,' leaving the agent to infer based on the ripgrep reference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list-file-typesB

List all supported file types in ripgrep

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a read-only operation by using 'List', but doesn't specify details like output format, pagination, or performance characteristics. It adds minimal context beyond the basic purpose, meeting a baseline level.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that directly states the tool's purpose without any fluff or redundancy. It's front-loaded and efficiently communicates the essential information, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but minimal. It covers the basic purpose but lacks details on output format or behavioral traits, which could be helpful for an agent. It meets the minimum viable standard for this context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and the schema description coverage is 100%, so there's no need for parameter details in the description. The description appropriately avoids discussing parameters, earning a high score as it doesn't add unnecessary information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'List' and the resource 'all supported file types in ripgrep', making the purpose specific and understandable. However, it doesn't explicitly differentiate from sibling tools like 'list-files' or 'advanced-search', which might also involve listing operations, so it doesn't reach the highest score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives such as 'list-files' or 'search'. There's no mention of context, prerequisites, or exclusions, leaving the agent to infer usage based on tool names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

B3.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with no ambiguity. 'search' is the basic search, 'advanced-search' adds more options, 'count-matches' focuses on counting, 'list-files' shows files without searching, and 'list-file-types' enumerates file types. The descriptions make it easy to tell them apart.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with hyphens (e.g., 'advanced-search', 'count-matches'). The naming is predictable and readable throughout the set, with no deviations in style.

Tool Count5/5

With 5 tools, the server is well-scoped for a ripgrep utility. Each tool earns its place by covering distinct aspects of searching and file listing, avoiding bloat while providing essential functionality.

Completeness4/5

The tool surface is nearly complete for a ripgrep server, covering search, advanced search, counting, and file listing. A minor gap might be the lack of a tool for managing search contexts or filtering results, but core workflows are well-covered.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    Enables file and directory searching through the greply CLI tool with configurable search options like context lines, case sensitivity, and pattern matching. Provides direct access to powerful grep-like functionality from MCP-compatible clients.
    2
    21
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching text across configured local workspaces using ripgrep. Provides secure text search capabilities within defined workspace boundaries through both MCP server and CLI interfaces.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides ripgrep search capabilities to MCP clients like Claude, enabling high-performance text searches across files on your system.
    5
    26
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A grep server implementation that exposes grep functionality through the Model Context Protocol (MCP), supporting natural language prompts and common grep options such as case-insensitive matching, context lines, and recursive searching.
    GPL 3.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcollina/mcp-ripgrep'

If you have feedback or need assistance with the MCP directory API, please join our Discord server