This skill covers integrating GrepAI with Cursor IDE 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-cursorExecute the skills CLI command in your project's root directory to begin installation:
Fetches grepai-mcp-cursor 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-cursor. Access via /grepai-mcp-cursor 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 Cursor IDE using the Model Context Protocol (MCP).
Cursor is an AI-powered IDE that supports MCP for external tools. GrepAI integration gives Cursor's AI:
grepai watch)Create .cursor/mcp.json in your project root:
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"]
}
}
}
Close and reopen Cursor for the config to take effect.
Ask Cursor's AI:
"Search the codebase for authentication"
Cursor should use the grepai_search tool.
For GrepAI in all Cursor projects, use global config:
~/.cursor/mcp.json~/.cursor/mcp.json%APPDATA%\Cursor\mcp.json{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"]
}
}
}
For project-specific settings:
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/absolute/path/to/project"
}
}
}
Once configured, Cursor has access to:
| Tool | Description |
|---|---|
grepai_search |
Semantic code search |
grepai_trace_callers |
Find function callers |
grepai_trace_callees |
Find function callees |
grepai_trace_graph |
Build call graphs |
grepai_index_status |
Check index health |
Ask Cursor:
"Find code that handles user login"
Cursor uses grepai_search to find semantically related code.
Ask Cursor:
"What functions call validateToken?"
Cursor uses grepai_trace_callers to show all callers.
Ask Cursor:
"Show me the call graph for processPayment"
Cursor uses grepai_trace_graph to display dependencies.
Cmd+, / Ctrl+,)Cmd+Shift+P / Ctrl+Shift+P)Windsurf uses the same MCP format as Cursor:
Create .windsurf/mcp.json:
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"]
}
}
}
Each project has its own .cursor/mcp.json with appropriate cwd.
# Create workspace
grepai workspace create dev
grepai workspace add dev /path/to/project1
grepai workspace add dev /path/to/project2
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve", "--workspace", "dev"]
}
}
}
If GrepAI uses environment variables (like API keys):
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"],
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}
Better: Set environment variables in your shell profile instead.
❌ Problem: Cursor doesn't see GrepAI tools
✅ Solutions:
.cursor/mcp.json in project rootgrepai is in PATH❌ Problem: Empty search results
✅ Solutions:
grepai statusgrepai watch first❌ Problem: MCP connection failed
✅ Solutions:
grepai mcp-servecurl http://localhost:11434/api/tags❌ Problem: Results from wrong project
✅ Solutions:
cwd in configgrepai_index_status to verifygrepai watch --background running| Feature | Cursor | Claude Code |
|---|---|---|
| Config location | .cursor/mcp.json |
~/.claude/mcp.json |
| Setup command | Manual JSON | claude mcp add |
| Project scope | Per-project or global | Global |
| IDE integration | Native | Terminal |
.cursor/mcp.json to git (without secrets)grepai mcp-serve works firstDelete .cursor/mcp.json and restart Cursor.
Or remove just GrepAI:
{
"mcpServers": {
// Remove grepai entry
}
}
Successful Cursor setup:
✅ GrepAI MCP Integration for Cursor
Config: .cursor/mcp.json
Server: grepai mcp-serve
Status: Ready
Available tools:
- grepai_search
- grepai_trace_callers
- grepai_trace_callees
- grepai_trace_graph
- grepai_index_status
Cursor AI can now search your code semantically!
Test: Ask Cursor "search for authentication code"
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
mindrally/skills
davila7/claude-code-templates
intellectronica/agent-skills
am-will/codex-skills
sickn33/antigravity-awesome-skills
grepai-mcp-cursor reduced setup friction for our internal harness; good balance of opinion and flexibility.
grepai-mcp-cursor is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in grepai-mcp-cursor — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
grepai-mcp-cursor has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: grepai-mcp-cursor is the kind of skill you can hand to a new teammate without a long onboarding doc.
I recommend grepai-mcp-cursor for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Registry listing for grepai-mcp-cursor matched our evaluation — installs cleanly and behaves as described in the markdown.
grepai-mcp-cursor fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for grepai-mcp-cursor matched our evaluation — installs cleanly and behaves as described in the markdown.
Keeps context tight: grepai-mcp-cursor is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 28