# miru [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/takara-ai/miru-code  
**GitHub Stars:** 12  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/miru

## Description
Hybrid semantic and keyword code search for coding agents.

## Tools
Capabilities this server exposes over MCP:

- **search** — Find code by meaning
- **locate** — Find exact strings, regex matches, or filenames
- **expand** — Read neighbouring chunks in the same file
- **find_related** — Find similar code in other files
- **auth** — Sign in or configure a SageMaker endpoint
- **read_benchmark** — Read token-savings totals when benchmark mode is enabled

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/takara-ai/miru-code), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
bun add -g @takara-ai/miru-code
```

2. Run:

```sh
miru setup
```

3. Add to your MCP client:

```sh
miru install
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/miru/readme_

