docforge-mcp
Enables complete Office document lifecycle management for AI agents, including creation, editing, conversion, and templating of DOCX, XLSX, PPTX, PDF, and EML files.
README
docforge-mcp
MCP server for complete Office document manipulation — create, read, edit, convert, and template DOCX, XLSX, PPTX, PDF, and EML files.
Built for AI agents that need full document lifecycle control, not just one-shot generation.
Install
# Via uvx (no install needed)
uvx docforge-mcp
# Or install globally
uv tool install docforge-mcp
# Or pip
pip install docforge-mcp
Tools (38)
| Category | Tools | Capabilities |
|---|---|---|
| Word (DOCX) | 12 | Create from markdown, read, edit paragraphs, insert, delete, search/replace, headers/footers, images, merge, templates |
| Excel (XLSX) | 7 | Create from markdown, read sheets, edit cells, insert/delete rows, charts, conditional formatting |
| PowerPoint (PPTX) | 9 | Create presentations, read slides, edit text, add shapes/images, reorder, duplicate, delete, merge, templates |
| 3 | Create from markdown, convert DOCX→PDF, read | |
| Email (EML) | 1 | Create HTML email drafts |
| XML | 1 | Create well-formed XML |
| Templates | 2 | Render DOCX/PPTX with variables, conditionals ({{#if}}), loops ({{#each}}) |
| Metadata | 1 | Get document info/stats |
| Merge | 2 | Merge multiple DOCX or PPTX files |
Usage
As MCP server (stdio — default)
docforge-mcp
As HTTP server
MCP_TRANSPORT=streamable-http MCP_PORT=8958 docforge-mcp
MCP client configuration
{
"mcpServers": {
"office-documents": {
"command": "docforge-mcp",
"autoApprove": ["read_document", "get_document_info", "get_docx_paragraphs", "get_pptx_slides", "get_xlsx_sheets"]
}
}
}
Origins
This project was born from ForLegalAI/mcp-ms-office-documents (MIT license). It diverged in scope and philosophy:
| ForLegalAI (upstream) | docforge-mcp | |
|---|---|---|
| Goal | One-shot document generation | Full document lifecycle |
| Read | ❌ | ✅ Read any DOCX/XLSX/PPTX |
| Edit | ❌ | ✅ Edit paragraphs, cells, slides |
| Convert | ❌ | ✅ DOCX→PDF |
| Templates | Simple {{var}} |
Conditionals + loops |
| Transport | Docker + HTTP only | stdio + HTTP |
| Install | Docker | uvx docforge-mcp |
We continue to contribute compatible features upstream (PRs #57, #58, #59) while developing the full toolkit independently.
Development
git clone https://github.com/filhocf/docforge-mcp.git
cd docforge-mcp
uv sync --group dev
uv run pytest tests/ -v
uv run ruff check .
License
MIT — see LICENSE for details. Original work © ForLegalAI, extensions © Claudio Ferreira Filho.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.