# mgrep for Claude Code

> Semantic code and web search plugin for Claude Code

mgrep is a semantic search tool by Mixedbread that integrates into Claude Code as a plugin skill. It replaces or enhances standard keyword tools like ripgrep by enabling both semantic codebase search and live web queries directly inside the Claude interface.

## How it works

Install: 'claude plugin marketplace add https://github.com/mixedbread-ai/mgrep' then install from /plugins. Usage: 'mgrep "function handleSubmit"' for local search, 'mgrep --web "Next.js 15 app router changes"' for web search.

## What it is for

- Search codebases using semantic meaning rather than exact string matches
- Query the web for recent documentation or updates directly inside Claude Code
- Upgrade Claude Code's default search capabilities with a plugin-based workflow

## Key points

- Installed via the Claude Code plugin marketplace
- Local codebase semantic search via the /mgrep skill
- Live web search functionality using the --web flag
- Direct integration into Claude Code workflows and agent interactions

## Pricing

Open source

## Details

- Type: Tip
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: yes
- Platforms: Command line
- For: Developers using Claude Code for software development
- Alternative to: ripgrep, grep
- Tags: claude code, semantic search, code search, cli, ai tools

## Why it was saved

- [@affaan, 17 January 2026](https://x.com/affaan/status/2012378465664745795): A significant search improvement over ripgrep/grep, working for both local and web search.

## Related

- [awesome-claude-code-subagents](https://xiry.app/resources/awesome-claude-code-subagents): Curated collection of 160+ specialized modular subagents for Claude Code (GitHub repo, Open source)
- [Boris Cherny's Claude Code Setup](https://xiry.app/resources/boris-cherny-s-claude-code-setup): Battle-tested Claude Code workflow tips directly from the tool's creator (Tip, Free)
- [greenlight](https://xiry.app/resources/greenlight): Pre-submission compliance scanner for App Store and Google Play guidelines. (Web app, Open source)
- [Playwright CLI](https://xiry.app/resources/playwright-cli): Command-line browser automation tool optimized for AI coding agents and testing. (GitHub repo, Open source)
- [Remotion Skills for Claude Code](https://xiry.app/resources/remotion-skills-for-claude-code): Skill package enabling Claude Code to programmatically edit videos via Remotion (Tip, Free)
- [Repomix](https://xiry.app/resources/repomix): Packs entire codebases into single AI-friendly files for LLM prompts (GitHub repo, Open source)

Updated 11 October 2026. Page: https://xiry.app/resources/mgrep-for-claude-code

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
