This skill covers integrating GrepAI with Claude Code using the Model Context Protocol (MCP).
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiongrepai-mcp-claudeExecute the skills CLI command in your project's root directory to begin installation:
Fetches grepai-mcp-claude from yoanbernabeu/grepai-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate grepai-mcp-claude. Access via /grepai-mcp-claude in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
16
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
16
stars
This skill covers integrating GrepAI with Claude Code using the Model Context Protocol (MCP).
Model Context Protocol (MCP) allows AI assistants to use external tools. GrepAI provides an MCP server that gives Claude Code:
grepai watch)One command to add GrepAI to Claude Code:
claude mcp add grepai -- grepai mcp-serve
That's it! Claude Code can now use GrepAI tools.
If you prefer manual setup, add to Claude Code's MCP config:
~/.claude/mcp.json%APPDATA%\Claude\mcp.json{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"]
}
}
}
If you want GrepAI to always use a specific project:
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/path/to/your/project"
}
}
}
# Start MCP server manually to test
grepai mcp-serve
You should see:
GrepAI MCP Server started
Listening for requests...
Ask Claude:
"Search the codebase for authentication code"
Claude should use the grepai_search tool.
Once connected, Claude Code has access to these tools:
| Tool | Description | Parameters |
|---|---|---|
grepai_search |
Semantic code search | query (required), limit, compact |
grepai_trace_callers |
Find function callers | symbol (required), compact |
grepai_trace_callees |
Find function callees | symbol (required), compact |
grepai_trace_graph |
Build call graph | symbol (required), depth |
grepai_index_status |
Check index health | verbose (optional) |
Claude request:
"Find code related to user authentication"
Claude uses:
{
"tool": "grepai_search",
"parameters": {
"query": "user authentication",
"limit": 5,
"compact": true
}
}
Claude request:
"What functions call the Login function?"
Claude uses:
{
"tool": "grepai_trace_callers",
"parameters": {
"symbol": "Login",
"compact": true
}
}
Claude request:
"Is the code index up to date?"
Claude uses:
{
"tool": "grepai_index_status",
"parameters": {
"verbose": true
}
}
By default, MCP tools return compact JSON to minimize tokens:
{
"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
}
This reduces token usage by ~80% compared to full content.
The MCP server uses the current working directory. Ensure:
grepai watch first)cd /path/to/your/project
claude # Claude Code now uses this directory
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/path/to/your/project"
}
}
}
For multiple projects, you can:
{
"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"]
}
}
}
❌ Problem: Claude doesn't see GrepAI tools
✅ Solutions:
grepai is in PATHgrepai mcp-serve manually❌ Problem: Searches return empty
✅ Solutions:
grepai watch has run.grepai/grepai status❌ Problem: MCP server won't start
✅ Solutions:
curl http://localhost:11434/api/tagscat .grepai/config.yamlgrepai mcp-serve manually to see errors❌ Problem: Results from wrong codebase
✅ Solutions:
cwd in MCP configgrepai_index_status toolgrepai watch --backgroundcwd in configgrepai_index_statusTo remove GrepAI from Claude Code:
claude mcp remove grepai
Or manually edit ~/.claude/mcp.json and remove the grepai entry.
Successful MCP setup:
✅ 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!
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
aradotso/trending-skills
anthropics/skills
anthropics/skills
JuliusBrussee/caveman
JuliusBrussee/caveman
whyashthakker/agent-skills-marketing
Registry listing for grepai-mcp-claude matched our evaluation — installs cleanly and behaves as described in the markdown.
grepai-mcp-claude has been reliable in day-to-day use. Documentation quality is above average for community skills.
Useful defaults in grepai-mcp-claude — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Keeps context tight: grepai-mcp-claude is the kind of skill you can hand to a new teammate without a long onboarding doc.
grepai-mcp-claude is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
grepai-mcp-claude fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
I recommend grepai-mcp-claude for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Solid pick for teams standardizing on skills: grepai-mcp-claude is focused, and the summary matches what you get after install.
We added grepai-mcp-claude from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
grepai-mcp-claude reduced setup friction for our internal harness; good balance of opinion and flexibility.
showing 1-10 of 37