Muninn

Muninn

muninn•bykamysh

Muninn maintains a searchable code index and curated repository notes for AI coding agents, served to compatible MCP clients through a stdio MCP server.

License: Apache License 2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Combines semantic and full-text retrieval in hybrid search and offers dedicated full-text, semantic and structural search tools.
  • •Stores, searches, lists and deletes curated repository notes through MCP knowledge tools.
  • •Shares unchanged indexed file versions and embeddings across linked Git worktrees while searching the checkout selected by the caller.
  • •Supports local embeddings or hosted Voyage/OpenAI embedding backends, with hosted embeddings sending selected source chunks to the provider.

BEST FOR

  • •AI coding agents that need to locate where a behavior is implemented in a large codebase.
  • •Agents working across multiple Git worktrees that need per-checkout searchable views without duplicating the full index.
  • •Preserving prior repository decisions as durable notes that agents can search across sessions.

ABOUT MUNINN

Muninn is cataloged as an MCP server attributed to kamysh. Muninn maintains a searchable code index and curated repository notes for AI coding agents, served to compatible MCP clients through a stdio MCP server. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Muninn are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does Muninn require a database to operate?

Yes, Muninn needs PostgreSQL with pgvector, Apache AGE and pgcrypto, plus an indexing watcher and an MCP connection; the recommended distribution is postgres-ai.

Can Muninn run entirely on my machine?

The database and processes can run locally, and local embeddings run there after the model is downloaded, but a remote PostgreSQL deployment stores the index off-machine.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e484bd6ed84a · 采集于 2026-11-13 14:20:10 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Muninn

Code search and repository knowledge for AI coding agents through MCP.

Muninn maintains a searchable code index for Codex, Claude Code and other compatible MCP clients. Ask where a behavior is implemented, retrieve relevant source ranges, and inspect the code before changing it.

Git worktrees share unchanged content and embeddings while keeping separate searchable views. A search selects the checkout named by repo or cwd, so a feature branch and the primary checkout can return their own implementations.

  • Combine semantic and full-text retrieval with hybrid search.
  • Follow recorded structural relationships and verify them against source.
  • Reuse unchanged indexed content across linked Git worktrees.
  • Store and search curated repository notes.

Muninn needs PostgreSQL with pgvector, Apache AGE and pgcrypto, an indexing watcher, and an MCP connection. Local and hosted embedding backends are available; hosted embeddings send selected source chunks to the provider.

Start with Getting started. Agents performing installation use AGENTS.md.

Article: Muninn code search across Git worktrees.

Install the binaries with Nix

With Nix installed and its nix-command and flakes features enabled, build the CLI, watcher and MCP server without installing them:

nix build github:kamysh/muninn#muninn
./result/bin/muninn --version
./result/bin/muninn-index --version
./result/bin/muninn-mcp --version

To add these programs to your user profile instead, use nix profile add github:kamysh/muninn#muninn. This installs binaries only. Follow Getting started to prepare PostgreSQL and its extensions, configure embeddings, start the watcher and connect your MCP client. No database or service is created by this package. Use the installed absolute executable paths when configuring the watcher and MCP client; command -v muninn-index and command -v muninn-mcp show them after installation.

The commands follow the repository's default branch. Append a commit to the repository address, as in github:kamysh/muninn/COMMIT#muninn, to pin a version.

Why Muninn exists

An agent repeatedly exploring a large codebase spends context and time finding the same implementations. Plain text search is useful when the name is known; questions about behavior, relationships and prior repository decisions need other entry points. Muninn maintains a searchable index and durable notes so an agent can find relevant source, then read and verify it.

Git worktrees add a second problem: each checkout has its own files, but copying a full chunk/vector index for every branch wastes space and embedding work. Muninn groups linked worktrees into a repository family. It shares unchanged file versions and embeddings, stores file differences per checkout, and searches the checkout the caller selected. Updating the primary checkout adjusts those differences without changing another checkout's published view.

Registration is explicit. A cheap inventory helps a human or agent choose which files matter before the first index starts. An enabled family discovers linked worktrees automatically and shares its configuration across them. Independent non-Git directories can also be registered.

What runs

ComponentRole
muninnCLI: bootstrap, configuration TUI/JSON, inventory and indexing control
muninn-indexBackground watcher and reconciliation of enabled families
muninn-mcpStdio MCP server launched by the agent client
postgres-aiRecommended database distribution: a compatible PostgreSQL, pgvector and Apache AGE stack

Use postgres-ai for installation. The underlying prerequisites are PostgreSQL with pgvector, Apache AGE and pgcrypto; postgres-ai supplies them together. Assembling a compatible stack yourself is an advanced, non-recommended alternative, documented separately in the custom database guide.

MCP provides search_hybrid, search_fulltext, search_semantic, search_structural, and record_knowledge, search_knowledge, list_knowledge, delete_knowledge.

Search results are evidence to inspect, not compiler-verified answers. Full-text search is tokenized; structural edges are name-based candidates. During a merge, rebase or unresolved conflict, Muninn retains the last completed index instead of indexing transient conflict contents. See behavior and limits.

The Codex and Claude Code guidance asks agents to explain, in plain language, how useful a Muninn retrieval was for the current task: a 0–5 score, a reason and the next step. This is the agent’s judgment, not a search rank. The agent setup guide installs that guidance.

Data and privacy

The database and processes can run on your machine. Local embeddings run there after the model is downloaded. Hosted Voyage/OpenAI embeddings send selected source chunks and query text to the provider; those chunks are source code. A remote PostgreSQL deployment also stores the index off-machine. MCP returns source excerpts to the chosen agent client, whose model/data settings apply. Local indexing alone does not make a cloud agent session offline.

Start here

These docs describe the 1.2.4 source tree. Install matching binaries from v1.2.4 or build from this source tree.

TaskGuide
Install and use Muninn as a humanGetting started
Have an agent perform an installationAgent installation procedure
Connect Codex or Claude and install useful guidanceAgent setup
Assemble a custom database stack (advanced, not recommended)Custom database guide
Configure file selection and embeddingsConfiguration
Upgrade an existing installationUpgrading
Build, understand the design or contributeDevelopment
Remove a family or installationUninstalling

Everyday commands

muninn add /path/to/repo                 # Human configuration TUI; separate Start confirmation
muninn config /path/to/checkout          # Review/edit shared family policy
muninn preflight /path/to/checkout --json
muninn config /path/to/checkout --json    # Agent inspection
muninn start /path/to/checkout --json     # Explicitly enable and run indexing
muninn status                           # Registered-family overview
muninn usage --days 30

Agents should check a complete JSON policy before saving it and guard saves and start requests with the returned family ID/revision. See the shared skill. New repositories snapshot global family settings at creation; review the visible defaults and select the backend before registering. Saved settings do not follow later global edits. status PATH, pause, resume and remove still use the registered locator shown by status; they are not arbitrary-worktree commands. In particular, remove deletes an entire registered family's code index.

ProjectPurpose
KryzhenDependency-based PostgreSQL migrations as a Rust library and CLI
MimirDecisions, evidence and reasoning memory across agent sessions

Muninn and Mimir can run independently. Their documented setup can share one compatible PostgreSQL instance with separate roles and databases.

License

Apache License 2.0 — see LICENSE. Contributions are subject to the Contributor License Agreement.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Muninn from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/muninn)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools