1. Conduid
  2. Search
  3. Greply
MCP server · Search

Greply

MCP server wrapping the greply CLI

37Low

Scored 6 months ago · breakdown

About Greply

Greply is an MCP server in the Search category: mCP server wrapping the greply CLI.

Install

Claude Code
claude mcp add greply -- npx -y greply-mcp
npx
npx -y greply-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Greply

Powered by Claude · Grounded in docs

I know everything about Greply. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

greply MCP Server

An MCP server that wraps the greply CLI (Node wrapper for the greppy search tool).
This allows you to use greply directly from an MCP-compatible client such as the Gemini CLI.


Features

  • greply.search — run greply with query, before/after context, and flags.
  • greply.help — print greply usage text.

Requirements

  • Node.js 20 or newer (22 LTS recommended)
  • npm or pnpm for dependency installation
  • greply CLI available on PATH, or specify greply_CMD env var

Installation

Clone and install dependencies:

git clone https://github.com/your-org/greply-mcp-server.git
cd greply-mcp-server

# Make sure Node version is >= 20
node -v
# If needed:
#   curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
#   source ~/.nvm/nvm.sh
#   nvm install 22 && nvm use 22

npm install

Usage

Run the server directly:

node server.mjs

Or with npm:

npm start

Gemini CLI Configuration

Add this to your ~/.gemini/settings.json:

{
  "mcpServers": {
    "greply": {
      "command": "node",
      "args": ["/absolute/path/to/greply-mcp-server/server.mjs"],
      "env": {
        "greply_CMD": "/usr/local/bin/greppy"
      }
    }
  }
}
  • greply_CMD is optional — only set it if the server cannot find greply automatically.
  • Use an absolute path for server.mjs.

Tools

greply.search

Search files or directories with the given query and optional flags.

Input schema:

Field Type Description
query string Search term (required)
target string File or directory (default ".")
before integer Lines of context before match (-B)
after integer Lines of context after match (-A)
recursive boolean Recurse directories (-R)
wholeWord boolean Match whole words (-w)
matchCase boolean Case-sensitive match (-c)
fixedStrings boolean Fixed-string match (-F)
suppressErrors boolean Return stdout/stderr on non-zero exit

greply.help

Display greply usage information.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Greply

How do I install Greply?

Run claude mcp add greply -- npx -y greply-mcp, then add the server to your MCP client's configuration.

Is Greply safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Greply still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.