grepai-mcp-cursorlisted
Install: claude install-skill NNIIKKKKII/grepai-skills
# 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:
```json
{
"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
For GrepAI in all Cursor projects, use global config:
### Location
- **macOS:** `~/.cursor/mcp.json`
- **Linux:** `~/.cursor/mcp.json`
- **Windows:** `%APPDATA%\Cursor\mcp.json`
### Content
```json
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"]
}
}
}
```
## Per-Project Configuration
Fo