This walks you through connecting GrepAI's semantic code search to Cursor IDE using MCP. You drop a JSON config file in `.cursor/mcp.json`, point it at `grepai mcp-serve`, and restart Cursor. After that, Cursor's AI can do semantic searches beyond grep, trace call graphs, and navigate your codebase using GrepAI's index. The guide covers both per-project and global setups, includes Windsurf configuration, and has solid troubleshooting for common issues like empty results or connection errors. If you're already running GrepAI with Ollama and want your IDE's AI to actually understand your code structure, this is the integration step you need.

skills.sh installs
601
GitHub stars
20
last updated
Aug 21, 2026

Install

$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-mcp-cursor --agent claude-code

Installs into .claude/skills of the current project.

Files

GrepAI MCP Integration with Cursor

This skill covers integrating GrepAI with Cursor IDE using the Model Context Protocol (MCP).

When to Use This Skill

  • Setting up GrepAI in Cursor
  • Enabling semantic search for Cursor AI
  • Configuring MCP for Cursor
  • Troubleshooting Cursor integration

What is Cursor?

Cursor is an AI-powered IDE that supports MCP for external tools. GrepAI integration gives Cursor's AI:

  • Semantic code search beyond simple text matching
  • Call graph analysis for understanding dependencies
  • Index-based code navigation

Prerequisites

  1. GrepAI installed
  2. Ollama running (or other embedding provider)
  3. Project indexed (grepai watch)
  4. Cursor IDE installed

Configuration

Step 1: Create MCP Config File

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "grepai": {
      "command": "grepai",
      "args": ["mcp-serve"]
    }
  }
}

Step 2: Restart Cursor

Close and reopen Cursor for the config to take effect.

Step 3: Verify

Ask Cursor's AI:

"Search the codebase for authentication"

Cursor should use the grepai_search tool.

Global Configuration

Sponsors

Details

Repository
github.com/yoanbernabeu/grepai-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from yoanbernabeu/grepai-skills

All 27
1alirezarezvani avatarautoresearch-agentalirezarezvani/claude-skillsAutonomous experiment loop that optimizes any file by a measurable metric. Inspired by Karpathy's autoresearch. The agent edits a target file, runs a fixed eval599skills.sh installs
2skillcreatorai avatarcode-refactoringskillcreatorai/ai-agent-skillscode refactoring596skills.sh installs
3moizibnyousaf avatarcode-documentationmoizibnyousaf/ai-agent-skillsWriting effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer 569skills.sh installs
4davila7 avataragent-manager-skilldavila7/claude-code-templatesManage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.568skills.sh installs
5parcadei avataragentic-workflowparcadei/continuous-claude-v3Agentic Workflow Pattern567skills.sh installs
6teneoprotocolai avatarinstagram-agent-teneoteneoprotocolai/teneo-skillsThe Instagram Agent allows users to extract data from Instagram, including posts, profiles, hashtags and comments, to bypass limitations of manual research. Use567skills.sh installs