Document MCP
Click on "Deploy 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., "@Document MCPSearch for documents about Q3 results"
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.
Document MCP
ChatGPT-style chatbot plus a Document MCP server. You register folder paths and a local LiteLLM model in Settings. Questions go to LiteLLM with MCP tools; the server reads only those folders, using pywin32 COM for Word / Excel / PowerPoint (same Office path as 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, and Cursor attach to the same MCP server and the same folder list.
Quick start
Run your LiteLLM proxy.
Double-click
start.bat.Open http://127.0.0.1:7860.
Settings → LiteLLM: paste base URL (e.g.
http://localhost:4000), API key, Load models or Add model, then Save.Settings → Folders: paste Windows folder paths.
sample_docsis registered on first run.Ask anything those files can answer.
Manual
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
python -m appRelated MCP server: office-tools
Settings
Tab | What it does |
LiteLLM | Base URL, key, load |
Folders | MCP roots (allowlist). Same idea as Model Council |
Claude MCP | Copy Claude Desktop / Claude Code / Cursor snippets, or write Claude Desktop config for you |
URLs can be pasted as http://host:4000, http://host:4000/v1, or .../v1/chat/completions — they are normalized like Model Council.
How LiteLLM + MCP work here
Taken from Model Council’s in-app MCP loop:
Host calls MCP
tools/listand converts schemas to OpenAI tools.Host POSTs
chat/completionsto LiteLLM with those tools (tool_choice: auto).If the model returns
tool_calls, the host runs MCPtools/call(stdio).Tool JSON is appended as
role: tooland the loop repeats until a normal answer.
The model never sees files unless it calls a tool. Roots are allowlisted. Office files prefer COM so Windows-unlocked / IRM files can still be read.
MCP tools
Tool | Purpose |
| Health, engines, folder count |
| Registered roots |
| Change roots |
| Inventory |
| Name + extracted text |
| Extract (COM first, library fallback) |
Prompt: ask_documents.
Claude Desktop / Claude Code / Cursor
In the chatbot: Settings → Claude MCP → Add to Claude Desktop (writes %APPDATA%\Claude\claude_desktop_config.json). Restart Claude, then ask it to ping Document MCP.
Or copy this shape (paths are filled in by Settings):
{
"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, or Settings → Claude MCP copy the Cursor snippet.
HTTP (LiteLLM MCP gateway):
start_mcp_http.batThen add http://127.0.0.1:8765/mcp.
pywin32 / Office
Word.Application→.doc/.docxExcel.Application→.xls/.xlsx/.xlsmPowerPoint.Application→.ppt/.pptx
Fallback: python-docx / openpyxl / python-pptx. PDFs: PyMuPDF. Legacy binary Office still needs 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)Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Team docs served to AI agents over MCP - search, Markdown reads, version pinning, read audit.
Securely search and manage workspace context files for AI agents and teams.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables natural language interaction with local .docx files, allowing users to find, read, search, and summarize Word documents using friendly names and location hints.53-
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to read, create, edit Word/Excel/PPT files and manage the filesystem on the user's computer via natural language.-
- FlicenseNot gradedqualityBmaintenanceEnables local ChatGPT/OpenAI MCP clients to read files and search within explicitly authorized directories using read-only, policy-constrained tools.-
- AlicenseNot gradedqualityCmaintenanceEnables secure, read-only access to local project files (including text, DOCX, PDF, and XLSX) through MCP, with strict directory whitelisting and no write, edit, or command-execution tools.1MIT