Krep MCP Server

High-performance string search MCP server based on krep

Local serverstdioPython

What is the Krep MCP Server?

High-performance string search MCP server based on krep

The short version

A high-performance string search utility with MCP (Model Context Protocol) integration for the infinity-topos environment. This is a wrapper around krep, an ultra-fast pattern matching utility that significantly outperforms traditional tools like grep.

Krep MCP Server provides a unified interface to the krep binary, a high-performance string search utility similar to grep but with optimized algorithms and multi-threading capabilities. It exposes krep's functionality through the Model Context Protocol, allowing AI assistants to perform efficient pattern searching in files and strings.

  • High-Performance Search — Uses optimized algorithms (KMP, Boyer-Moore-Horspool, Rabin-Karp) selected based on pattern length
  • Hardware Acceleration — Leverages SIMD instructions (SSE4.2/AVX2 on x86/x64, NEON on ARM) when available
  • Optimized Multi-Threading — Automatically uses all available CPU cores for maximum parallel search performance
  • Unified Interface — Single function with multiple modes (file search, string search, count-only)
  • MCP Integration — Seamless integration with AI assistants through the Model Context Protocol

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

How to install the Krep MCP Server

{
  "mcpServers": {
    "krep": {
      "command": "node",
      "args": [
        "/path/to/krep-mcp-server/src/index.js"
      ],
      "env": {
        "CLAUDE_MCP": "true",
        "KREP_PATH": "/path/to/krep-native/krep",
        "DEBUG": "true"
      },
      "description": "High-performance string search utility with unified interface",
      "disabled": false,
      "autoApprove": [
        "krep"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
CLAUDE_MCPDeclared in the maintainer’s client configuration.Check documentation
KREP_PATHDeclared in the maintainer’s client configuration.Check documentation
DEBUGDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Krep to Parameters.”
  • “Use Krep to Examples.”

Frequently asked questions

High-performance string search MCP server based on krep Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.