grepai for MCP
Grepai: Enhancing AI Agent Code Understanding with Semantic Context
- Free
- 4.3
- V v0.36.1
Grepai: Enhancing AI Agent Code Understanding with Semantic Context
Grepai, a free MCP server tool by Yoanbernabeu, is built in Go and designed to augment AI agents' capabilities within codebases. It provides semantic context, enabling intelligent interactions and reducing token usage for agents like Claude Code and Cursor. Grepai operates locally, prioritizing privacy, and supports various embedding providers to enable advanced code understanding for developers and AI alike. Its architecture allows for efficient real-time indexing and search.
What does Grepai connect to?
Grepai functions as an MCP server tool, connecting to AI agents such as Claude Code, Cursor, and Windsurf. It supplies these agents with semantic context derived from a codebase. For its core operation, Grepai requires an embedding provider. Ollama is the recommended local, privacy-first option, ensuring data remains on-premises. Additionally, it supports external embedding providers like LM Studio and OpenAI, offering flexibility in how code embeddings are generated and managed. This setup allows AI agents to gain a deeper understanding of project specifics.
Core features and tools
Grepai exposes several callable tools for code interaction. These include grepai init for project setup and grepai watch to start an indexing daemon that scans, embeds, and monitors file changes. Semantic code searches are performed with grepai search "query" using natural language. For understanding code flow, grepai trace callers "function" identifies calling functions, and grepai trace callees "function" finds called functions. Indexing status is checked via grepai status. Additionally, grepai mcp-serve tests the server, and grepai agent-setup helps configure non-MCP agents. Workspace management is handled by commands like grepai workspace create <name> and grepai workspace list.
Who is it for?
Grepai is intended for developers working with large codebases and for enhancing AI coding agents. It helps both human users and AI agents understand code more deeply by providing semantic context. Developers can use it to navigate complex projects, while AI agents benefit from reduced input tokens and improved code interaction. This tool is particularly useful for those seeking to integrate AI into their development workflows for tasks like code search and dependency tracing. Skip this if your development workflow does not involve AI agents or semantic code understanding.
How to get started
No credentials are required for Grepai's core functionality when using local embedding providers. If an external embedding provider like OpenAI is chosen, an OpenAI API key is needed for that specific service, which is communicated through Grepai's Native MCP server or JSON output.
Use cases
- Semantic Code Search: Query a codebase using natural language (e.g., "authentication logic") to find relevant code segments based on their meaning.
- Call Graph Tracing: Trace function dependencies (e.g., "grepai trace callers Login") to understand the impact of potential code changes before implementation.
- AI Agent Context Provisioning: Act as an MCP server to supply AI agents with a semantic map of the codebase, reducing input tokens and enabling intelligent code interaction.
Grepai provides a local, privacy-first solution for integrating AI agents with codebases, offering semantic context and advanced search capabilities. Its Go-based architecture supports real-time indexing and various embedding providers. It helps developers and AI agents navigate complex projects efficiently, reducing the token burden on AI models. This tool is valuable for enhancing code understanding and accelerating development workflows.
Pros
- Local, privacy-first design
- Reduces AI agent input tokens
- Supports multiple AI agents
- Real-time code indexing
Cons
- Requires manual configuration for non-MCP agents
- External API key needed for non-local embeddings
- Initial setup involves multiple steps
- Dependency on specific embedding providers
grepai for MCP
- Free
- 4.3
- V v0.36.1
Top downloads

onlyboxes
Onlyboxes: A Self-Hosted Sandbox for AI Code Execution and Terminal Sessions

wordpress-mcp-elementor-wppilot
Builder-aware AI co‑developer for Elementor-powered WordPress sites
zcode-jetbrains-plugin
ZCode JetBrains plugin brings agentic coding into JetBrains IDEs

RustAPI
Rustapi: An AI-First Web Framework for Rust MCP Servers

TDPilot
AI copilot for TouchDesigner that edits live node graphs
Discover more programs

ckb
- 4.9
- Free
CKB: A Comprehensive AI Coding Assistant

mcp-k8s-go
- 4.9
- Free
MCP K8S Go: Kubernetes Management Tool

x64dbg_mcp
- 4
- Free
Comprehensive Debugging with x64dbg MCP Server

Frida Analykit
- 4.2
- Free
Frida Analykit: MCP-focused orchestration for AI-assisted instrumentation
evidra
- 4.1
- Free
A flight recorder for AI-driven infrastructure automation

Shortcuts Mcp Server
- 4.5
- Free
Shortcuts MCP Server Connects AI Agents to macOS Automation

p4mcp-server
- 4.2
- Free
P4mcp Server Integrates AI with Perforce P4 Version Control

Starlark Mcp
- 4.5
- Free
Starlark MCP: A Go-Powered Server for AI Agent Workflows
lean-ctx
- 4.8
- Free
LeanCTX: Efficient Context Management for AI Agents
muggle-ai-works
- 4.9
- Free
Comprehensive E2E Testing with muggle-ai-works

reverse-engineering-assistant
- 4.4
- Free
Reverse Engineering Assistant: AI-Powered Ghidra Extension for Binary Analysis