Mnē-MCP
Mnē-MCP — Servidor MCP de RAG para opencode
Mnē-MCP (del griego Mnēmosynē, titánide de la memoria; el macron en ē, U+0113, marca la vocal larga en la transliteración) es un servidor MCP que implementa un pipeline RAG (Retrieval-Augmented Generation) completo para opencode: indexa un vault de Obsidian o carpetas de documentos y responde preguntas del asistente usando las notas propias como fuente, citando la ruta exacta de cada fragmento utilizado.
Stack: #RAG #MCP #mcp-server #opencode #Obsidian #Qdrant #Ollama #DeepSeek #bge-m3 #Python
Funcionalidad
Indexado incremental — escanea directorios (
.md,.txt) desde disco con detección de cambios pormtime+md5, eliminación de puntos obsoletos (stale cleanup) y soporte de volúmenes grandes (~19 GB).Embeddings locales — modelo
bge-m3vía Ollama local (/api/embed), 1024 dimensiones, multilingüe (español incluido), normalizados L2 para escalar correctamente con similitud coseno.Recuperación semántica — Qdrant (Docker), colección única con filtros por payload (
source,path,mtime,md5,heading_path) y umbral de relevancia configurable.Generación fundamentada — respuestas con
deepseek-v4-flash(Ollama Cloud) únicamente cuando la evidencia supera el umbral; en caso contrario devuelve rechazo explícito ("no relevant documents found"). Sin evidencia, no genera.
Related MCP server: Obsidian MCP Assistant
Arquitectura
MCP tools (stdio) ──┐
├── RagService (core) ────▶ Qdrant (vectorial, Docker)
Admin page (:8310) ─┘ │
├── OllamaEmbedder (bge-m3 local)
└── LLMProvider (deepseek-v4-flash, Ollama Cloud)Python 3.14 · SDK MCP oficial (
mcp==1.12.4) ·qdrant-client·httpx7 herramientas:
index·query·search·delete·list·stats·configPágina de administración local (
http://127.0.0.1:8310): dashboard, documentos indexados, indexado asíncrono con progreso y playground de búsqueda. Comparte el mismo core que las herramientas MCP (cero lógica duplicada).Suite de 70 tests offline (Qdrant
:memory:+ mocks) + smoke test end-to-end.
Uso para desarrollador
docker compose up -d qdrant # Qdrant
ollama pull bge-m3 # embeddings locales
cp .env.example .env # OLLAMA_API_KEY + VAULT_ROOT
make install # instala el paquete (venv)
make admin # panel: http://127.0.0.1:8310Registro en opencode.json (sección mcp, tipo local, comando python3 mcp_rag/server.py o el entry point mcp-rag-opencode).
Solicitud | Comportamiento |
| Escaneo incremental, omite archivos sin cambios, sube vectores por lotes |
| Recuperación → reranker/LLM → respuesta con citas ( |
| Hits crudos con |
| Salud de Qdrant/Ollama, estado del LLM, recuentos por fuente |
Roadmap
Búsqueda híbrida densa+dispersa (BM25 + RRF) · cross-encoder reranking · caché semántica · harness de evaluación (recall@k, MRR, nDCG) — planificado en openspec/specs/mnemos-differentiators/.
Académico
Proyecto Integrado · Prof. Christian Pérez · Alumno: Gat · 2026
Available Tools
7 toolsconfigC
Get the full config, or set one persisted field.
Inputs: key, value, action.
deleteA
Delete indexed docs by exact path or by source.
Inputs: path, source.
indexB
Index the vault (source root or sub-path) into Qdrant.
Inputs: path, source, max_files, force_rescan.
listA
List indexed documents (paginated, filter by source/path prefix).
Inputs: limit, offset, source, path_prefix.
queryC
Retrieve context and answer the question with the LLM.
Inputs: question (required), top_k, source, path_prefix, +1 more.
searchB
Raw vector retrieval without the LLM.
Inputs: text (required), top_k, source, path_prefix, +1 more.
statsB
Return collection stats and provider health.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a distinct role: indexing, LLM-based querying, raw vector search, deletion, listing, stats, and config. Query and search are clearly separated by whether the LLM is involved.
All tool names are lowercase, single-word commands that follow a consistent imperative/noun style. The set is uniform and predictable despite not using a verb_noun pattern.
Seven tools is well-scoped for a focused memory/RAG server. Each tool covers a necessary operation without redundancy or bloat.
The toolset covers the full indexed-document lifecycle: add via index, retrieve via search/query, remove via delete, inspect via list and stats, and configure via config. No critical missing operation is apparent.
Maintenance
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Open-source Obsidian for MDX - edit local docs with agent assistance
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables indexing local documents (PDF, Markdown, text, code) into a knowledge base and querying them via semantic search using local embeddings, all running privately on your machine.4-
- FlicenseNot gradedqualityCmaintenanceEnables AI-powered chat and file operations on Obsidian vaults with local indexing, hybrid search, and MCP access.-
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to search, read, create, update, and delete notes in a local Obsidian vault through hybrid semantic and lexical retrieval, with all embedding and vector storage running locally.1MIT
- AlicenseAqualityBmaintenanceEnables natural-language and keyword search across Obsidian notes, returning reranked passages with provenance, and supports reading notes and incremental indexing.31MIT