Loading...
Loading...
Integrate GrepAI with Claude Code via MCP. Use this skill to enable semantic code search in Claude Code.
npx skill4agent add yoanbernabeu/grepai-skills grepai-mcp-claudegrepai watchclaude mcp add grepai -- grepai mcp-serve~/.claude/mcp.json%APPDATA%\Claude\mcp.json{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"]
}
}
}{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/path/to/your/project"
}
}
}# Start MCP server manually to test
grepai mcp-serveGrepAI MCP Server started
Listening for requests..."Search the codebase for authentication code"
grepai_search| Tool | Description | Parameters |
|---|---|---|
| Semantic code search | |
| Find function callers | |
| Find function callees | |
| Build call graph | |
| Check index health | |
"Find code related to user authentication"
{
"tool": "grepai_search",
"parameters": {
"query": "user authentication",
"limit": 5,
"compact": true
}
}"What functions call the Login function?"
{
"tool": "grepai_trace_callers",
"parameters": {
"symbol": "Login",
"compact": true
}
}"Is the code index up to date?"
{
"tool": "grepai_index_status",
"parameters": {
"verbose": true
}
}{
"q": "authentication",
"r": [
{"s": 0.92, "f": "src/auth/middleware.go", "l": "15-45"},
{"s": 0.85, "f": "src/auth/jwt.go", "l": "23-55"}
],
"t": 2
}grepai watchcd /path/to/your/project
claude # Claude Code now uses this directory{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/path/to/your/project"
}
}
}{
"mcpServers": {
"grepai-frontend": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/path/to/frontend"
},
"grepai-backend": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/path/to/backend"
}
}
}grepai workspace create my-workspace
grepai workspace add my-workspace /path/to/frontend
grepai workspace add my-workspace /path/to/backend{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve", "--workspace", "my-workspace"]
}
}
}grepaigrepai mcp-servegrepai watch.grepai/grepai statuscurl http://localhost:11434/api/tagscat .grepai/config.yamlgrepai mcp-servecwdgrepai_index_statusgrepai watch --backgroundcwdgrepai_index_statusclaude mcp remove grepai~/.claude/mcp.json✅ GrepAI MCP Integration Configured
Claude Code: ~/.claude/mcp.json
Server: grepai mcp-serve
Status: Connected
Available tools:
- grepai_search (semantic code search)
- grepai_trace_callers (find callers)
- grepai_trace_callees (find callees)
- grepai_trace_graph (call graphs)
- grepai_index_status (index health)
Claude can now search your code semantically!