This connects GrepAI's semantic code search to Claude Code through MCP, giving the AI assistant tools to search your codebase, trace call graphs, and check index status. Setup is literally one command: `claude mcp add grepai -- grepai mcp-serve`. The compact mode is smart, cutting token usage by 80% by returning terse JSON instead of full content. You'll want this if you're already running GrepAI with Ollama embeddings and want Claude to actually understand your project structure instead of just reading files linearly. Works best with `grepai watch` running in the background to keep the index fresh. The multi-project workspace support is handy if you're bouncing between frontend and backend repos.

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

Install

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

Installs into .claude/skills of the current project.

Files

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:

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

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

Sponsors

Details

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

More from yoanbernabeu/grepai-skills

All 27
1moizibnyousaf avatardatabase-designmoizibnyousaf/ai-agent-skillsDatabase schema design, optimization, and migration patterns for PostgreSQL, MySQL, and NoSQL databases. Use for designing schemas, writing migrations, or optim615skills.sh installs
2yoanbernabeu avatargrepai-mcp-cursoryoanbernabeu/grepai-skillsIntegrate GrepAI with Cursor IDE via MCP. Use this skill to enable semantic code search in Cursor.601skills.sh installs
3alirezarezvani 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
4skillcreatorai avatarcode-refactoringskillcreatorai/ai-agent-skillscode refactoring596skills.sh installs
5moizibnyousaf 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
6davila7 avataragent-manager-skilldavila7/claude-code-templatesManage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.568skills.sh installs