Auu.Mcp.Rg: cross-platform MCP server for ripgrep

Auu.Mcp.Rg: cross-platform MCP server for ripgrep

auu.mcp.rg•bysuperauu

An MCP server that wraps ripgrep for searching and listing files, with cross-platform path handling, root-scoped security, and built-in performance safeguards.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides five tools: basic search, advanced search, count-matches, list-files, and list-file-types.
  • •Limits all searches to a configured root directory, with per-call root overrides and directory traversal protection.
  • •Applies built-in result, output size and timeout limits to prevent excessive output.
  • •Normalizes paths across Windows, macOS, and Linux and handles relative paths against the root.

BEST FOR

  • •Searching codebases by pattern, file type, or glob within a scoped project directory.
  • •Counting occurrences of a pattern, such as TODOs, instead of listing every match.
  • •Listing files that ripgrep would search, including filtering by file type.

ABOUT AUU.MCP.RG

Auu.Mcp.Rg: cross-platform MCP server for ripgrep is cataloged as an MCP server attributed to superauu. An MCP server that wraps ripgrep for searching and listing files, with cross-platform path handling, root-scoped security, and built-in performance safeguards. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Auu.Mcp.Rg: cross-platform MCP server for ripgrep are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server restrict which files it searches?

A ROOT environment variable scopes all search operations to a directory, paths are validated against it, and traversal outside the root is blocked.

What happens when both root and path are given in a tool call?

The two are combined so that root "/project" with path "src" searches within /project/src, after boundary validation.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 70e4ead71802 · 采集于 2026-11-13 11:29:54 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Auu.Mcp.Rg

A cross-platform MCP (Model Context Protocol) server for ripgrep that provides powerful search capabilities with seamless support for Windows, macOS, and Linux, plus enhanced security features.

Features

  • 🌟 Cross-Platform Compatible: Native support for Windows, macOS, and Linux with intelligent path handling (v1.2.6)
  • 🔧 Search Tools: Multiple search tools for different use cases
  • 📋 Full ripgrep Support: Supports all ripgrep options and flags
  • 🚀 npx Deployable: Can be run directly with npx
  • 🆕 Global Root Directory: Server-wide root directory configuration via environment variable (v1.2.0)
  • 🆕 Enhanced Security: Automatic path validation and directory traversal protection (v1.2.0)
  • 🆕 Flexible Configuration: Per-call root override capability (v1.2.0)
  • 🆕 Smart Path Handling: Properly combines root and path parameters for intuitive search scope (v1.2.1)
  • 🆕 Performance Safeguards: Built-in result limits (default: 100), output size limits (10MB), and timeout protection (30s) (v1.2.1)
  • 🆕 Memory Protection: Automatic output truncation to prevent memory leaks (v1.2.1)
  • 🆕 Intelligent Path Resolution: Cross-platform path normalization and validation using Node.js path utilities (v1.2.6)

Installation

npm install -g auu-mcp-rg

Or use with npx:

npx auu-mcp-rg

Tools Available

Basic search with common options:

  • pattern: The search pattern (required)
  • root: The root directory to limit search scope (optional, search will be restricted to this directory)
  • path: Directory to search in (optional, must be within root if specified, combines with root for intuitive search scope)
  • include: Glob pattern for files to include
  • exclude: Glob pattern for files to exclude
  • context: Number of context lines
  • max_matches: Maximum number of matches to return (default: 100)
  • case_sensitive: Case sensitive search
  • word_boundaries: Match whole words only
  • file_type: Only search specific file types

Full access to all ripgrep options with complete parameter support.

3. count-matches

Count matches instead of showing them:

  • pattern: The search pattern (required)
  • root: The root directory to limit search scope (optional, search will be restricted to this directory)
  • path: Directory to search in (optional, must be within root if specified, combines with root for intuitive search scope)
  • include: Glob pattern for files to include
  • exclude: Glob pattern for files to exclude
  • case_sensitive: Case sensitive search
  • file_type: Only search specific file types

4. list-files

List all files that would be searched:

  • root: The root directory to limit search scope (optional, search will be restricted to this directory)
  • path: Directory to search in (optional, must be within root if specified, combines with root for intuitive search scope)
  • include: Glob pattern for files to include
  • exclude: Glob pattern for files to exclude
  • file_type: Only search specific file types

5. list-file-types

List all supported file types by ripgrep.

Usage Examples

{
  "name": "search",
  "arguments": {
    "pattern": "function",
    "max_matches": 10
  }
}

Search with Global Root Directory

When ROOT is configured in the server, all searches are automatically limited to that directory:

{
  "name": "search",
  "arguments": {
    "pattern": "import",
    "include": "*.ts",
    "max_matches": 5
  }
}

Count Files in Project

{
  "name": "count-matches",
  "arguments": {
    "pattern": "TODO",
    "include": "*.js"
  }
}

List TypeScript Files

{
  "name": "list-files",
  "arguments": {
    "include": "*.ts",
    "file_type": "typescript"
  }
}

Advanced Search with Context

{
  "name": "advanced-search",
  "arguments": {
    "pattern": "class.*Controller",
    "include": "*.ts",
    "context": 2,
    "case_sensitive": true
  }
}
{
  "name": "search",
  "arguments": {
    "pattern": "test",
    "root": "/path/to/tests",
    "include": "*.spec.js"
  }
}

Combined Root and Path Search (v1.2.1+)

When both root and path are specified, they are automatically combined:

{
  "name": "search",
  "arguments": {
    "pattern": "config",
    "root": "/path/to/project",
    "path": "src",
    "include": "*.ts",
    "max_matches": 50
  }
}

This searches in /path/to/project/src directory.

Safe Search with Built-in Limits (v1.2.1+)

All searches automatically include sensible defaults to prevent excessive output:

{
  "name": "search",
  "arguments": {
    "pattern": "import",
    "path": "src"
  }
}

This will return at most 100 results and is protected by timeout and size limits.

Configuration

Basic Configuration

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "auu-mcp-rg": {
      "command": "npx",
      "args": ["auu-mcp-rg"]
    }
  }
}

For enhanced security, configure a default root directory to limit all search operations:

{
  "mcpServers": {
    "auu-mcp-rg": {
      "command": "npx",
      "args": ["auu-mcp-rg"],
      "env": {
        "ROOT": "/path/to/your/project"
      }
    }
  }
}

Windows Example:

{
  "mcpServers": {
    "auu-mcp-rg": {
      "command": "npx",
      "args": ["auu-mcp-rg"],
      "env": {
        "ROOT": "E:\\code\\my-project"
      }
    }
  }
}

macOS/Linux Example:

{
  "mcpServers": {
    "auu-mcp-rg": {
      "command": "npx",
      "args": ["auu-mcp-rg"],
      "env": {
        "ROOT": "/Users/username/my-project"
      }
    }
  }
}

Configuration Options

  • ROOT: Sets the default root directory for all search operations (optional but recommended)
  • AUU_MCP_RG_VERSION: Version pinning for stability (optional)

When ROOT is configured, all tools will automatically use this directory unless explicitly overridden.

Enhanced Cross-Platform Compatibility (v1.2.6)

This server now offers superior cross-platform compatibility with intelligent path handling:

🆕 Advanced Cross-Platform Features

Intelligent Path Resolution:

  • Automatic detection and handling of platform-specific path formats
  • Smart relative path resolution relative to the root directory
  • Cross-platform path validation using Node.js path.relative() and path.isAbsolute()

Universal Path Normalization:

  • Automatic conversion of Windows backslashes to forward slashes for ripgrep compatibility
  • Consistent path handling across all platforms
  • Support for mixed path formats in the same environment

Platform-Specific Optimizations

Windows

  • Native Path Support: Full support for Windows-style paths (C:\project\src)
  • Command Escaping: Proper Windows command argument escaping
  • Process Management: Windows-optimized process spawning

macOS & Linux

  • Unix Path Standards: Native support for POSIX paths (/home/user/project)
  • Shell Integration: Standard Unix shell behavior
  • Performance: Optimized for Unix process management

🆕 Cross-Platform Examples

Windows Configuration:

{
  "mcpServers": {
    "auu-mcp-rg": {
      "command": "npx",
      "args": ["auu-mcp-rg"],
      "env": {
        "ROOT": "E:\\code\\my-project"
      }
    }
  }
}

macOS/Linux Configuration:

{
  "mcpServers": {
    "auu-mcp-rg": {
      "command": "npx",
      "args": ["auu-mcp-rg"],
      "env": {
        "ROOT": "/home/username/my-project"
      }
    }
  }
}

Cross-Platform Path Usage:

{
  "name": "search",
  "arguments": {
    "pattern": "import",
    "root": "E:\\code\\project",  // Windows path
    "path": "src/utils"           // Relative path works on all platforms
  }
}

🆕 Technical Improvements (v1.2.6)

  • Enhanced Path Validation: Uses path.relative() instead of string matching for reliable cross-platform boundary checking
  • Improved Relative Path Support: Proper handling of relative paths relative to the root directory
  • Memory Safety: Improved path handling to prevent security issues
  • Performance: Optimized path resolution and validation algorithms
  • Comprehensive Testing: Added extensive cross-platform test coverage

Windows Compatibility Fixes

This server addresses several Windows compatibility issues found in other MCP ripgrep implementations:

  1. Proper Command Escaping: Uses Windows-appropriate argument escaping
  2. Process Execution: Direct process spawning without shell dependencies
  3. Path Handling: Proper handling of Windows paths with spaces and special characters
  4. Build Process: Removed Unix-specific commands like chmod

Security & Performance Features (v1.1.0+)

Global Root Directory Configuration

The ROOT environment variable provides server-wide security by limiting all search operations to a specific directory:

{
  "mcpServers": {
    "auu-mcp-rg": {
      "command": "npx",
      "args": ["auu-mcp-rg"],
      "env": {
        "ROOT": "/path/to/project"
      }
    }
  }
}

Benefits:

  • Server-wide Security: All tools automatically respect the root directory boundary
  • Zero Configuration Needed: No need to specify root in individual tool calls
  • Prevents Accidental Access: Protects sensitive files outside the project directory
  • Sandboxed Environment: Provides controlled search scope for enhanced security
  • Multi-tenant Support: Ideal for shared environments and team projects
  • Directory Traversal Protection: Blocks attempts to access paths outside the root

Per-Call Root Override

You can still specify a different root directory for individual tool calls:

{
  "name": "search",
  "arguments": {
    "pattern": "function",
    "root": "/different/path/project",
    "max_matches": 10
  }
}

Path Validation

  • Automatic Validation: All search paths are validated against the root directory
  • Clear Error Messages: Attempts to access paths outside the root are blocked with informative errors
  • Flexible Path Support: Works with both absolute and relative paths
  • Cross-Platform: Proper handling of Windows, macOS, and Linux path formats

Performance & Memory Protection (v1.2.1+)

  • Result Limits: Built-in limit of 100 matches per search to prevent excessive output
  • Output Size Limits: Automatic truncation at 10MB to prevent memory issues
  • Timeout Protection: 30-second timeout to prevent hanging searches
  • Memory Safety: Automatic process cleanup and resource management
  • Smart Defaults: Sensible defaults that balance functionality with safety

Smart Path Handling (v1.2.1+)

  • Path Combination: When both root and path are specified, they are intelligently combined
  • Intuitive Search Scope: root: "/project", path: "src" searches in /project/src
  • Validation: Combined paths are still validated against security boundaries
  • Backward Compatible: Existing usage patterns continue to work unchanged

Requirements

  • Node.js 18+
  • ripgrep installed and available in PATH
  • Windows, macOS, or Linux

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Auu.Mcp.Rg: cross-platform MCP server for ripgrep from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/auu.mcp.rg)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools