GREB-MCP
A hybrid search MCP that enables users to find coding chunks like RAG without indexing their codebase, without any vector database. World's first context attention MCP. It gives results in below 5 seconds in a repository as big as VS Code.
README
GREB MCP Server
Semantic code search for AI agents. Search your codebase using natural language queries.
Features
- Natural Language Search - Describe what you're looking for in plain English
- High-Precision Results - Smart ranking returns the most relevant code first
- Works with Any MCP Client - Claude Desktop, Cursor, Windsurf, Cline, Kiro, and more
- No Indexing Required - Search any codebase instantly without setup
- Fast - Results in under 5 seconds even for large repositories
Installation
Install Greb globally using pip or npm:
Python:
pip install cheetah-greb
Node.js:
npm install -g cheetah-greb
Get Your API Key
- Go to Dashboard → API Keys
- Click Create API Key
- Copy the key (starts with
grb_)
Configuration
Add to your MCP client config (Cursor, Windsurf, Claude Desktop, Kiro, etc.):
Python installation:
{
"mcpServers": {
"greb-mcp": {
"command": "greb-mcp",
"env": {
"GREB_API_KEY": "grb_your_api_key_here"
}
}
}
}
Node.js installation:
{
"mcpServers": {
"greb-mcp": {
"command": "greb-mcp-js",
"env": {
"GREB_API_KEY": "grb_your_api_key_here"
}
}
}
}
Claude Code Setup
Mac/Linux (Python):
claude mcp add --transport stdio greb-mcp --env GREB_API_KEY=grb_your_api_key_here -- greb-mcp
Windows PowerShell (Python):
claude mcp add greb-mcp greb-mcp --transport stdio --env "GREB_API_KEY=grb_your_api_key_here"
Mac/Linux (Node.js):
claude mcp add --transport stdio greb-mcp --env GREB_API_KEY=grb_your_api_key_here -- greb-mcp-js
Windows PowerShell (Node.js):
claude mcp add greb-mcp greb-mcp-js --transport stdio --env "GREB_API_KEY=grb_your_api_key_here"
Tool: code_search
Search code using natural language queries powered by AI.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Natural language search query |
keywords |
object | Yes | Search configuration |
keywords.primary_terms |
string[] | Yes | High-level semantic terms (e.g., "authentication", "database") |
keywords.code_patterns |
string[] | No | Literal code patterns to grep for |
keywords.file_patterns |
string[] | Yes | File extensions to search (e.g., ["*.ts", "*.js"]) |
keywords.intent |
string | Yes | Brief description of what you're looking for |
directory |
string | Yes | Full absolute path to directory to search |
Example
{
"query": "find authentication middleware",
"keywords": {
"primary_terms": ["authentication", "middleware", "jwt"],
"code_patterns": ["authenticate(", "isAuthenticated"],
"file_patterns": ["*.js", "*.ts"],
"intent": "find auth middleware implementation"
},
"directory": "/Users/dev/my-project"
}
Response
Returns ranked code snippets with:
- File paths
- Line numbers
- Relevance scores
- Code content
- Reasoning for each match
Usage Examples
Ask your AI assistant to search code naturally:
"Use greb mcp to find authentication middleware"
"Use greb mcp to find all API endpoints"
"Use greb mcp to look for database connection setup"
"Use greb mcp to find where user validation happens"
"Use greb mcp to search for error handling patterns"
Links
License
This project is licensed under the MIT License — see the LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.