Mnē-MCP

Mnē-MCP

Enables retrieval-augmented question answering over Obsidian vaults and document folders, with local embeddings, vector search, and cited source paths.

Category
Visit Server

README

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

  1. Indexado incremental — escanea directorios (.md, .txt) desde disco con detección de cambios por mtime + md5, eliminación de puntos obsoletos (stale cleanup) y soporte de volúmenes grandes (~19 GB).
  2. Embeddings locales — modelo bge-m3 vía Ollama local (/api/embed), 1024 dimensiones, multilingüe (español incluido), normalizados L2 para escalar correctamente con similitud coseno.
  3. Recuperación semántica — Qdrant (Docker), colección única con filtros por payload (source, path, mtime, md5, heading_path) y umbral de relevancia configurable.
  4. 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.

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 · httpx
  • 7 herramientas: index · query · search · delete · list · stats · config
  • Pá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:8310

Registro en opencode.json (sección mcp, tipo local, comando python3 mcp_rag/server.py o el entry point mcp-rag-opencode).

Solicitud Comportamiento
index (source, path, force_rescan, max_files) Escaneo incremental, omite archivos sin cambios, sube vectores por lotes
query (question, top_k ≤ 8, source, path_prefix, score_threshold) Recuperación → reranker/LLM → respuesta con citas (path + heading_path)
search Hits crudos con score, sin generación
stats 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured