muninn-local-mcp
Click on "Install 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., "@muninn-local-mcpsearch project memory for dependency management decisions"
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.
Muninn Local MCP
A local-first Model Context Protocol (MCP) server that gives AI agents (such as OpenCode) persistent, project-scoped memory powered by ChromaDB and Ollama embeddings.
All data stays on your machine — no external API calls, no cloud storage.
Note: This project is adapted from muninn-mcp and modified to run fully locally using Ollama + ChromaDB instead of cloud services.
Features
Persistent memory — store and recall context across sessions via vector search
Project isolation — each git project gets its own memory namespace, automatically
Global memory — share cross-project knowledge (tooling, patterns, decisions)
Local embeddings — vectors generated by a local Ollama model, zero data leaves your machine
MCP-native — works with any MCP-compatible client (OpenCode, Claude Desktop, etc.)
Zero-config defaults — sensible defaults that work out of the box
Related MCP server: kontexta
Prerequisites
ollama pull mxbai-embed-largeInstallation
git clone https://github.com/wolfcao/muninn-local-mcp.git
cd muninn-local-mcp
uv syncConfiguration
Environment Variables
Variable | Default | Description |
|
| ChromaDB data directory |
|
| Ollama service URL |
|
| Embedding model name |
| (auto from git root) | Force a specific project ID |
OpenCode Integration
Add the server to your opencode.json:
{
"mcp": {
"muninn": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"/path/to/muninn-local-mcp",
"run",
"python",
"-m",
"muninn_local"
]
}
}
}Standalone
Run the MCP server directly:
python -m muninn_localMCP Tools
Muninn exposes 7 tools, split between project-scoped and global memory.
Project Memory
Tool | Parameters | Description |
|
| Store a project-scoped memory |
|
| Semantic search within current project |
|
| List memories (newest first) |
|
| Delete a specific memory |
Global Memory
Tool | Parameters | Description |
|
| Store a cross-project memory |
|
| Semantic search across all projects |
|
| List global memories (newest first) |
Memory Types
The memory_type parameter accepts: summary, decision, next-steps, code-pattern, note (default).
How Project Isolation Works
Muninn automatically identifies the current project by resolving the git repository root (git rev-parse --show-toplevel) and hashing the path with SHA256. The resulting fingerprint becomes the project_id, ensuring each project's memories are isolated in their own ChromaDB collection.
Architecture
Layer | Module | Responsibility |
Entry |
| MCP FastMCP server |
Business |
| Memory CRUD operations |
Storage |
| ChromaDB persistence wrapper |
Embedding |
| Vector generation via Ollama API |
Config |
| data_dir / ollama_url / embed_model |
Identity |
| git root → auto project_id |
Notes
Ollama must be running — the server depends on a local Ollama instance for embedding generation.
Data is persistent — ChromaDB stores data in
~/.config/opencode/muninn/chroma/. Deleting this directory wipes all memories.Path-sensitive project IDs — cloning or forking to a different path generates a new
project_id, so memories won't carry over. Override withMUNINN_PROJECT_IDif needed.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wolfcao/muninn-local-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server