Krep MCP Server

High-performance string search MCP server based on krep

Local serverstdioPython

What is the Krep MCP server?

Most developer tooling work still happens through a UI a human drives. Krep MCP server moves it into the conversation instead. 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

The tools it exposes

The server publishes 2 tools. What each one is for:

  • Parameters — The Parameters tool exposed by this server
  • Examples — See examples.md for detailed usage examples and patterns

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

What it needs from you

Configuration is passed through the environment: CLAUDE_MCP, KREP_PATH, DEBUG. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Krep's toolset — Parameters, Examples — is a fair guide to whether it matches your workflow. It is maintained by bmorphism; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
ParametersThe Parameters tool exposed by this server.
ExamplesSee [examples.md](./examples.md) for detailed usage examples and patterns.

Configuration

VariableDescriptionRequired
CLAUDE_MCPConfiguration value read at startup.Optional
KREP_PATHFilesystem location the server is allowed to use.Optional
DEBUGConfiguration value read at startup.Optional

Example prompts to try

  • Use Krep to Parameters.
  • Use Krep to Examples.

Frequently asked questions

It connects Krep to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Parameters, Examples) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Krep directly.