Document MCP
Document MCP
ChatGPT-ähnlicher Chatbot plus ein Document MCP-Server. Sie registrieren Ordnerpfade und ein lokales LiteLLM-Modell in den Einstellungen. Fragen gehen an LiteLLM mit MCP-Tools; der Server liest nur diese Ordner, unter Verwendung von pywin32 COM für Word / Excel / PowerPoint (gleicher Office-Pfad wie 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 und Cursor verbinden sich mit dem gleichen MCP-Server und der gleichen Ordnerliste.
Schnellstart
Führen Sie Ihren LiteLLM-Proxy aus.
Doppelklicken Sie auf
start.bat.Öffnen Sie http://127.0.0.1:7860.
Einstellungen → LiteLLM: Fügen Sie die Basis-URL (z. B.
http://localhost:4000), den API-Schlüssel ein, Modelle laden oder Modell hinzufügen, dann Speichern.Einstellungen → Ordner: Fügen Sie Windows-Ordnerpfade ein.
sample_docsist beim ersten Start registriert.Fragen Sie alles, was diese Dateien beantworten können.
Manuell
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
python -m appEinstellungen
Registerkarte | Funktion |
LiteLLM | Basis-URL, Schlüssel, |
Ordner | MCP-Roots (Positivliste). Gleiche Idee wie Model Council |
Claude MCP | Claude Desktop / Claude Code / Cursor-Snippets kopieren oder Claude Desktop-Konfiguration für Sie schreiben |
URLs können als http://host:4000, http://host:4000/v1 oder .../v1/chat/completions eingefügt werden – sie werden wie bei Model Council normalisiert.
Wie LiteLLM + MCP hier funktionieren
Aus Model Councils In-App-MCP-Schleife übernommen:
Host ruft MCP
tools/listauf und konvertiert Schemata in OpenAI-Tools.Host sendet POST
chat/completionsan LiteLLM mit diesen Tools (tool_choice: auto).Wenn das Modell
tool_callszurückgibt, führt der Host MCPtools/call(stdio) aus.Tool-JSON wird als
role: toolangehängt und die Schleife wiederholt sich, bis eine normale Antwort erfolgt.
Das Modell sieht niemals Dateien, es sei denn, es ruft ein Tool auf. Roots sind in der Positivliste. Office-Dateien bevorzugen COM, sodass Windows-entsperrte / IRM-Dateien weiterhin gelesen werden können.
MCP-Tools
Tool | Zweck |
| Status, Engines, Ordneranzahl |
| Registrierte Roots |
| Roots ändern |
| Bestandsaufnahme |
| Name + extrahierter Text |
| Extrahieren (COM zuerst, Bibliothek als Fallback) |
Prompt: ask_documents.
Claude Desktop / Claude Code / Cursor
Im Chatbot: Einstellungen → Claude MCP → Zu Claude Desktop hinzufügen (schreibt %APPDATA%\Claude\claude_desktop_config.json). Claude neu starten, dann bitten Sie es, Document MCP zu pingen.
Oder kopieren Sie diese Vorlage (Pfade werden in den Einstellungen ausgefüllt):
{
"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: Repo mcp.json, oder Einstellungen → Claude MCP Cursor-Snippet kopieren.
HTTP (LiteLLM MCP-Gateway):
start_mcp_http.batDann fügen Sie http://127.0.0.1:8765/mcp hinzu.
pywin32 / Office
Word.Application→.doc/.docxExcel.Application→.xls/.xlsx/.xlsmPowerPoint.Application→.ppt/.pptx
Fallback: python-docx / openpyxl / python-pptx. PDFs: PyMuPDF. Legacy binäres Office benötigt weiterhin Microsoft Office.
python -m document_mcp.reader sample_docs\mena_rhq_overview.mdLayout
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