Greply MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Greply MCP Server search for 'TODO' in src/ with 2 lines of context before and after"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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— rungreplywith query, before/after context, and flags.greply.help— printgreplyusage text.
Related MCP server: Grep MCP Server
Requirements
Node.js 20 or newer (22 LTS recommended)
npmorpnpmfor dependency installationgreplyCLI available on PATH, or specifygreply_CMDenv 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 installUsage
Run the server directly:
node server.mjsOr with npm:
npm startGemini 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_CMDis optional — only set it if the server cannot findgreplyautomatically.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 |
| string | Search term (required) |
| string | File or directory (default |
| integer | Lines of context before match ( |
| integer | Lines of context after match ( |
| boolean | Recurse directories ( |
| boolean | Match whole words ( |
| boolean | Case-sensitive match ( |
| boolean | Fixed-string match ( |
| boolean | Return stdout/stderr on non-zero exit |
greply.help
Display greply usage information.
Available Tools
2 toolsgreply.helpShow greply usageA
Runs greply with no args to print usage.
Inputs: no named parameters.
greply.searchSearch with greplyC
Run the greply CLI to search files with optional context and flags.
Inputs: query (required), target, before, after, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one for displaying usage/help and one for performing searches. There is no overlap in functionality.
Both tools follow a consistent 'greply.<action>' naming pattern, which is predictable and clearly indicates the tool's purpose.
With only two tools, the server is minimal. While a help tool and a search tool cover the basic operations for a CLI wrapper, the low count may leave agents wanting for more functionality.
The tool surface lacks essential operations beyond help and search, such as configuration management, result filtering, or output formatting. Agents may find the server inadequate for complex search tasks.
Maintenance
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Search MCP servers, MCP clients and AI agents, and retrieve listing details. Free, read-only access.
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Agentic search over your Dewey document collections from any MCP-compatible client.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides ripgrep search capabilities to MCP clients like Claude, allowing high-performance text searches across files on your system.5904 npm79MIT
- AlicenseBqualityDmaintenanceProvides powerful text search capabilities using the grep command-line utility, allowing users to search files and directories using both natural language descriptions and regex patterns.531 npm7MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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
- AlicenseAqualityDmaintenanceProvides ripgrep search capabilities to MCP clients like Claude, enabling high-performance text searches across files on your system.520 npmMIT