grepai mcp-serve
grepai mcp-serve
Start grepai as an MCP server
Synopsis
Start grepai as an MCP (Model Context Protocol) server.
This allows AI agents to use grepai as a native tool through the MCP protocol. The server communicates via stdio and exposes the following tools:
- grepai_search: Semantic code search with natural language
- grepai_trace_callers: Find all functions that call a symbol
- grepai_trace_callees: Find all functions called by a symbol
- grepai_trace_graph: Build a call graph around a symbol
- grepai_index_status: Check index health and statistics
Configuration for Claude Code: claude mcp add grepai — grepai mcp-serve
Configuration for Cursor (.cursor/mcp.json): { “mcpServers”: { “grepai”: { “command”: “grepai”, “args”: [“mcp-serve”] } } }
grepai mcp-serve [flags]Options
-h, --help help for mcp-serveSEE ALSO
- grepai - Semantic code search CLI