Miru logo

Miru

Hybrid semantic and keyword code search for coding agents, with exact lookup, context expansion, and related-code discovery.

Install Miru

Run the project’s own setup commands, in order.

Setup steps from the project

miru installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    bun add -g @takara-ai/miru-code
    
  2. 2. Run
    miru setup
    
  3. 3. Add to your MCP client
    miru install
    

Overview

miru MCP server helps coding agents navigate local repositories through semantic and keyword-based code search. Its MCP tools can find code by meaning, locate exact strings or filenames, read nearby source, and identify related implementations. Miru builds an index on first use and monitors local file changes, while supporting authentication and optional SageMaker embedding configuration. Reach for it when an agent needs relevant file paths, line numbers, and source excerpts without scanning an entire repository.

Use cases

  • Search a repository for where authentication is configured
  • Locate exact environment variables or regular-expression matches
  • Expand a matching code location with nearby source
  • Find similar implementations across files
  • Measure token savings in benchmark mode

Key features

  • Hybrid embeddings and BM25 retrieval
  • Exact, regex, and filename lookup
  • Syntax-aware code chunking
  • Related-code discovery
  • Repository indexing with file watching
  • SageMaker embedding configuration

Tools6

What Miru lets your agent do. Expand a tool for its parameters.

Self-reported~71 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 48d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10/14/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars12Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Miru works

What miru does

miru gives coding agents a repository search interface over MCP. It combines meaning-based retrieval with exact and pattern-based lookup, returning file paths, line numbers, and source excerpts that help an agent inspect an unfamiliar codebase. The tool set covers both discovery and follow-up: an agent can search for a concept, locate a known symbol or filename, inspect surrounding code, and look for similar implementations elsewhere.

The optional benchmark reader exposes token-savings totals when benchmark mode is enabled. Authentication can start sign-in or configure an AWS SageMaker endpoint for embedding requests.

How it works

On first use, miru creates an index for the selected repository. It watches local files afterward so searches can reflect changes. The index combines embeddings, BM25 keyword retrieval, and code-aware ranking rather than relying on one search method alone.

Tree-sitter supplies syntax-aware chunks for 26 languages. Files outside that coverage use structural or line-oriented fallback chunking. MCP requests can identify a repository with the optional repo argument; when omitted, the server uses its working directory.

By default, source chunks and search queries are sent over HTTPS to Takara for embeddings. Embedding requests may count against the applicable Takara plan. AWS SageMaker can be used for embeddings on infrastructure controlled by the user, and MIRU_WORKSPACE_ROOT can limit repository access to one local directory.

Setup and configuration

Bun 1.1 or newer and bunx on the PATH are required. Claude Code users can install the Miru plugin from the takara-ai/miru-code marketplace and then restart or reload plugins. The plugin can invoke auth to begin sign-in when credentials are absent; plugin credentials are separate from CLI credentials.

For CLI-based installation, install the package globally and run the setup and install commands:

bash
bun add -g @takara-ai/miru-code
miru setup
miru install

The installer lets you choose agents and writes their configuration. Restart selected agents afterward. miru uninstall removes that configuration. CLI commands also support --json for scripting, and each command provides its own help output.

Tools and capabilities

  • search retrieves code based on a natural-language description.
  • locate searches exact text, regular expressions, or filenames.
  • expand reads neighboring chunks around a location in the same file.
  • find_related searches for similar code in other files.
  • auth handles sign-in or SageMaker endpoint configuration.
  • read_benchmark reads token-savings totals when benchmark mode is active.

The equivalent CLI examples include searching for authentication middleware, locating an environment variable, expanding a source location, and finding related code from a file and line number.

Limitations and notes

Default embedding requests transmit source chunks and queries to Takara over HTTPS, and usage can incur plan-based costs. Use SageMaker when embeddings need to run on user-managed infrastructure. Repository access can be restricted with MIRU_WORKSPACE_ROOT.

Search indexing occurs before the first query and depends on the repository's files and supported chunking paths. Syntax-aware processing covers 26 languages; other content uses fallback chunking. Miru is released under the MIT license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Miru

miru is an MCP server that connects coding agents to local code repositories through hybrid semantic and keyword search. Its main tools search by meaning, locate exact strings or files, expand nearby source, find related code, authenticate, and report benchmark token-savings totals.

Install Bun 1.1 or newer, then install the package globally with `bun add -g @takara-ai/miru-code` and run `miru setup` followed by `miru install`. Choose agents in the installer and restart them. Claude Code also supports the Miru plugin installation flow.

Yes, miru supports Cursor through its plugin and CLI integration paths. The Cursor plugin provides skills and rules, while the CLI installer connects Cursor to Miru's MCP tools.

miru combines embeddings, BM25 keyword retrieval, and code-aware ranking. It creates an index on first use, uses Tree-sitter syntax-aware chunks for 26 languages, and watches local files for changes. Structural or line-based fallbacks handle other files.

Yes, miru's `auth` tool can configure a SageMaker endpoint for embeddings. By default, Miru sends source chunks and queries over HTTPS to Takara, while SageMaker provides an option for using infrastructure managed by the user.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMiru AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/miru?style=directory)](https://allmcps.com/mcp/miru)
HTML Embed
<a href="https://allmcps.com/mcp/miru"><img src="https://allmcps.com/api/badge/miru?style=directory" alt="Miru on AllMCPs" /></a>