Document MCP
Document MCP
Chatbot estilo ChatGPT más un servidor Document MCP. Registras rutas de carpetas y un modelo LiteLLM local en Configuración. Las preguntas van a LiteLLM con herramientas MCP; el servidor solo lee esas carpetas, usando pywin32 COM para Word / Excel / PowerPoint (la misma ruta de Office que Model Council).
Chat UI → LiteLLM /v1/chat/completions (+ tools)
↑ tool_calls (search_documents, read_document, …)
MCP host → Document MCP (stdio JSON-RPC)
→ allowlisted folders
→ win32com Word / Excel / PowerPointClaude Desktop, Claude Code y Cursor se conectan al mismo servidor MCP y a la misma lista de carpetas.
Inicio rápido
Ejecuta tu proxy LiteLLM.
Haz doble clic en
start.bat.Abre http://127.0.0.1:7860.
Configuración → LiteLLM: pega la URL base (p. ej.
http://localhost:4000), clave API, Cargar modelos o Añadir modelo, luego Guardar.Configuración → Carpetas: pega rutas de carpetas de Windows.
sample_docsse registra en la primera ejecución.Pregunta cualquier cosa que esos archivos puedan responder.
Manual
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
python -m appConfiguración
Pestaña | Qué hace |
LiteLLM | URL base, clave, cargar |
Folders | Raíces MCP (lista permitida). Misma idea que Model Council |
Claude MCP | Copiar fragmentos de Claude Desktop / Claude Code / Cursor, o escribir la configuración de Claude Desktop por ti |
Las URL se pueden pegar como http://host:4000, http://host:4000/v1 o .../v1/chat/completions — se normalizan como Model Council.
Cómo funcionan LiteLLM + MCP aquí
Tomado del bucle MCP dentro de la aplicación de Model Council:
El host llama a MCP
tools/listy convierte los esquemas en herramientas de OpenAI.El host envía POST
chat/completionsa LiteLLM con esas herramientas (tool_choice: auto).Si el modelo devuelve
tool_calls, el host ejecuta MCPtools/call(stdio).El JSON de la herramienta se añade como
role: tooly el bucle se repite hasta obtener una respuesta normal.
El modelo nunca ve archivos a menos que llame a una herramienta. Las raíces están en la lista permitida. Los archivos de Office prefieren COM para que los archivos desbloqueados por Windows / IRM aún puedan leerse.
Herramientas MCP
Herramienta | Propósito |
| Estado, motores, número de carpetas |
| Raíces registradas |
| Cambiar raíces |
| Inventario |
| Nombre + texto extraído |
| Extraer (COM primero, biblioteca de respaldo) |
Prompt: ask_documents.
Claude Desktop / Claude Code / Cursor
En el chatbot: Configuración → Claude MCP → Añadir a Claude Desktop (escribe %APPDATA%\Claude\claude_desktop_config.json). Reinicia Claude, luego pídele que haga ping a Document MCP.
O copia esta forma (las rutas se completan en Configuración):
{
"mcpServers": {
"document-mcp": {
"command": "D:\\\\AntigravityCodes\\\\Document-MCP\\\\.venv\\\\Scripts\\\\python.exe",
"args": ["-m", "document_mcp"],
"cwd": "D:\\\\AntigravityCodes\\\\Document-MCP",
"env": {
"PYTHONUTF8": "1",
"DOCUMENT_MCP_ROOTS": "D:\\\\AntigravityCodes\\\\Document-MCP\\\\data\\\\folders.json"
}
}
}
}Claude Code:
claude mcp add-json document-mcp "{...stdio server json from Settings...}"Cursor: repositorio mcp.json, o Configuración → Claude MCP copia el fragmento de Cursor.
HTTP (puerta de enlace LiteLLM MCP):
start_mcp_http.batLuego añade http://127.0.0.1:8765/mcp.
pywin32 / Office
Word.Application→.doc/.docxExcel.Application→.xls/.xlsx/.xlsmPowerPoint.Application→.ppt/.pptx
Respaldo: python-docx / openpyxl / python-pptx. PDFs: PyMuPDF. Office binario heredado aún necesita Microsoft Office.
python -m document_mcp.reader sample_docs\mena_rhq_overview.mdDiseño
app/ FastAPI chat host (MCP client + UI)
document_mcp/ FastMCP server, COM readers, Claude install helper
sample_docs/ Starter files
data/ folders.json, settings, extract cache (local)This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Securely search and manage workspace context files for AI agents and teams.
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/MENARHQ-cloud/Document-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server