grepai-mcp-claudelisted
Install: claude install-skill NNIIKKKKII/grepai-skills
# GrepAI MCP Integration with Claude Code
This skill covers integrating GrepAI with Claude Code using the Model Context Protocol (MCP).
## When to Use This Skill
- Setting up GrepAI in Claude Code
- Enabling semantic search for AI coding assistant
- Configuring MCP server for Claude
- Troubleshooting Claude Code integration
## What is MCP?
Model Context Protocol (MCP) allows AI assistants to use external tools. GrepAI provides an MCP server that gives Claude Code:
- Semantic code search
- Call graph analysis
- Index status monitoring
## Prerequisites
1. GrepAI installed
2. Ollama running (or other embedding provider)
3. Project indexed (`grepai watch`)
4. Claude Code installed
## Quick Setup
One command to add GrepAI to Claude Code:
```bash
claude mcp add grepai -- grepai mcp-serve
```
That's it! Claude Code can now use GrepAI tools.
## Manual Configuration
If you prefer manual setup, add to Claude Code's MCP config:
### Location
- **macOS/Linux:** `~/.claude/mcp.json`
- **Windows:** `%APPDATA%\Claude\mcp.json`
### Configuration
```json
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"]
}
}
}
```
### With Working Directory
If you want GrepAI to always use a specific project:
```json
{
"mcpServers": {
"grepai": {
"command": "grepai",
"args": ["mcp-serve"],
"cwd": "/path/to/your/project"
}
}
}
```
## Verifying Installation
### Check MCP Server
```bash
# Start MCP server manually