MCP Office Documents Server
Allows uploading generated documents to Google Cloud Storage and generating time-limited download links.
Allows uploading generated documents to MinIO (S3-compatible) storage and generating time-limited download links.
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., "@MCP Office Documents ServerCreate a PowerPoint presentation about Q4 sales 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.
📄 MCP Office Documents Server
Let your AI assistant create professional Office documents — PowerPoint, Word, Excel, emails & XML — with a single prompt.
💡 What is this?
This is an MCP (Model Context Protocol) server that runs in Docker and gives AI assistants (like Claude, Cursor, or any MCP-compatible client) the ability to generate real Office files on demand.
Just ask your AI to "create a sales presentation" or "draft a welcome email" — and it will produce a ready-to-use file for you.
No coding required. Install, connect, and start creating.
Related MCP server: docforge-mcp
✨ Features at a Glance
Document Type | Tool | Highlights |
📊 PowerPoint |
| Typed slide schema (14 slide types incl. KPI, timeline, agenda, free-form blank) · Outline-pane sections · Markdown bullet bodies · Tables, category charts & XY scatter · Inline & data-URI images · Theme colours · Autofit with overflow warnings · Proofing language · 4:3 or 16:9 · Custom templates |
📝 Word |
| Write in Markdown, get a |
📈 Excel |
| Markdown tables → |
| HTML email drafts ( | |
🗂️ XML |
| Well-formed XML files · Auto-validates & adds XML declaration if missing |
All tools accept an optional file_name parameter. When provided, the output file will use that name (without extension) instead of a randomly generated identifier.
All tools also accept an optional add_unique_prefix parameter. Left unset, it follows the storage backend: true for LOCAL/S3/GCS/AZURE/MINIO, where an 8-character UUID prefix prevents collisions in shared storage (e.g., ff8ae81d_My_Report.docx), and false for LibreChat, which adds its own UUID prefix during file storage. Set it explicitly to override — false gives clean filenames (e.g., My_Report.docx).
Dynamic templates:
📧 Reusable Email Templates — Define parameterized email layouts in YAML. Each becomes its own tool with typed arguments (e.g.,
first_name,promo_code).📝 Reusable Word Templates — Create
.docxfiles with{{placeholders}}. Each template becomes an AI tool. Placeholders support full Markdown.
Output options:
Local — Files saved to the
output/folderCloud — Upload to S3, Google Cloud Storage, Azure Blob, or MinIO and get a time-limited download link
🚀 Quick Start
1. Get the compose file
curl -L -o docker-compose.yml https://raw.githubusercontent.com/ForLegalAI/mcp-ms-office-documents/master/docker-compose.yml
curl -L -o .env.example https://raw.githubusercontent.com/ForLegalAI/mcp-ms-office-documents/master/.env.exampleAlready cloned the repo? Skip this step — both files are already there.
2. Set up your environment
cp .env.example .envThe defaults work out of the box — files are saved locally to output/.
3. Start the server
docker compose up -d✅ Done! Your MCP endpoint is ready at http://localhost:8958/mcp. Point your client at it — snippets for Claude Desktop, LibreChat and Cursor are in Connecting an AI client.
⚙️ Configuration
Everything is set through environment variables in .env. The ones most deployments touch:
Variable | Description | Default |
| Require an API key on every request ( | (disabled) |
| Where files go: |
|
| Lifetime of cloud download links, in seconds |
|
| Turn on the browser UI for managing templates | (off) |
| Debug-level logging | (off) |
The full list, including the per-backend credentials, thread-pool and multi-replica settings, is in Configuration. Deployment notes (volumes, health probes, running without Docker, more than one replica) are in Deployment.
📚 Documentation
Using the tools
Markdown reference — everything the Word and Excel tools accept: headings, lists with restart rules, tables and directives, inline formatting, formulas with table-relative and cross-sheet references, column types, cell styling.
PowerPoint slide reference — the fourteen slide types and their fields, bodies in Markdown, warnings, compatibility notes.
Templates — drop in your own Word, PowerPoint, email and Excel templates; register several PowerPoint designs by name; turn a Word or email file with
{{placeholders}}into a tool of its own.Template Admin UI — do all of that from the browser, no YAML, no restart.
Working on the code
Architecture, one page per tool under docs/development/tools/, and how-tos for adding a tool or a storage backend.
CONTRIBUTING.md for setup, checks and conventions; AGENTS.md for the rules coding agents follow; SECURITY.md for what the server protects.
The index is at docs/README.md.
🤝 Contributing
Contributions are welcome. Read CONTRIBUTING.md, then fork, branch, and open a pull request. Bug reports, feature ideas and documentation fixes are all appreciated — open an issue to start a discussion.
📄 License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Create and manage documents, spreadsheets, and presentations from your AI assistant.
Create presentations, docs, sheets and meeting notes from chat. Hosted link, editor, PPTX & PDF.
Generate polished PowerPoint presentations from text prompts, YouTube videos, or structured outlin…
Create real Word .docx files from your AI chat: proposals, quotes, contracts, statements of work.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables creation and manipulation of Microsoft Office files (Excel, Word, PowerPoint) through natural language commands. Supports generating spreadsheets with formulas and charts, formatted documents with tables, and presentations with various layouts without requiring Office installation.1-
- AlicenseBqualityCmaintenanceEnables complete Office document lifecycle management for AI agents, including creation, editing, conversion, and templating of DOCX, XLSX, PPTX, PDF, and EML files.40MIT
- AlicenseNot gradedqualityBmaintenanceGenerates PowerPoint, Excel, Word, and Markdown files from natural language requests and reviews Word documents with AI comments.85MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create, edit, format, and analyze Microsoft Office documents (Excel, Word, PPT, PDF) using natural language, with features like table replication and automated styling.2MIT