Miru
OfficialIntegrates with GitHub Copilot to provide Miru's hybrid code search tools, enabling semantic code search and related-code discovery within the agent.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mirufind where auth middleware is configured in my repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Miru (見る)
Hybrid code search for AI coding agents.
Ask where something happens in your codebase. Miru returns relevant file paths, line numbers, and source excerpts through MCP.
Install
Requires Bun 1.1 or later, with bunx on your PATH.
Claude Code (recommended)
Run inside Claude Code:
/plugin marketplace add takara-ai/miru-code
/plugin install miru@miruReload plugins or restart Claude Code, then ask:
Use Miru to find where authentication is configured in this project.If credentials are missing, Claude can use Miru's auth tool to start sign-in. Approve the login code, then retry the search. Plugin credentials are separate from CLI credentials.
Other agents
See agent integrations for Codex and Cursor plugins. The Cursor plugin provides skills and rules; use the CLI installer below to connect its MCP tools.
Related MCP server: grepsense
Install (CLI fallback)
For terminal use or agents configured through the CLI:
bun add -g @takara-ai/miru-code
miru setup
miru installChoose your agents in the installer, then restart them. See supported integrations. Use miru uninstall to remove the configuration.
Try it
miru search "auth middleware" ./src
miru locate REDIS_HOST ./src
miru expand src/auth.ts 42 ./src
miru find-related src/auth.ts 42 ./srcUse --json for scripts. Run miru <command> -h for options.
MCP tools
Tool | Purpose |
| Find code by meaning |
| Find exact strings, regex matches, or filenames |
| Read neighbouring chunks in the same file |
| Find similar code in other files |
| Sign in or configure a SageMaker endpoint |
| Read token-savings totals when benchmark mode is enabled |
The optional repo argument defaults to the server's working directory. Miru builds the index on first use and watches local files for changes.
How it works
Miru combines embeddings, BM25, and code-aware ranking. Tree-sitter provides syntax-aware chunks for 26 languages, with structural and line-based fallbacks for other files.
See chunking and caching and the ranking evaluation.
Privacy and API usage
By default, Miru sends file contents as source chunks and search queries over HTTPS to Takara for embeddings. API usage may incur costs under your Takara plan.
For embeddings on your own infrastructure, use AWS SageMaker. Set MIRU_WORKSPACE_ROOT to restrict local MCP repository paths to one directory.
Documentation
Reference: CLI commands, MCP parameters, configuration, and benchmarks
Agent integrations: plugin capabilities, configuration paths, and optional skills
Contributing: development setup, checks, and releases
Credits
Miru builds on work by MinishLab:
semble: file walking, indexing, BM25, hybrid search, and ranking signals.
potion-code and Model2Vec: WordPiece tokenizer.
See NOTICE for attribution and licence text.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Search GitHub, npm, PyPI, StackOverflow, ArXiv from one MCP — built for coding agents.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Search indexed code, trace dependencies, assess change impact, and recall repository memory.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceDeep code indexing for AI agents. Search symbols, navigate call graphs, explore inheritance, track git history — all via MCP.82 PyPI59MIT
- AlicenseNot gradedqualityCmaintenanceProvides two-modal code search (lexical via Zoekt and semantic via ChromaDB embeddings) for AI coding agents through MCP tools, enabling fast regex and meaning-based code lookup.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to semantically search and retrieve relevant code patterns, documentation, and implementations from a codebase via MCP tools.8MIT
- AlicenseBqualityDmaintenanceEnables AI-driven semantic code search via natural language queries, integrating with MCP clients like Claude Desktop to retrieve relevant code context from any codebase.1MIT