FORGE
Click on "Install 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., "@FORGE用公文格式生成一份第三季度工作总结的Word文档"
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.
FORGE
Format-Oriented Rendering & Generation Engine
Preserve the content. Reforge the format.
FORGE is a schema-driven DOCX formatting and transformation engine for AI agents. It generates, inspects, reformats, assembles, and safely edits Word documents — without rewriting the user's content.
FORGE is not a text-generation system. The server never summarizes, rewrites, or "improves" document text. It only changes formatting and document structure, under explicit instructions, with hard preservation guarantees.
Quick Start
git clone https://github.com/IIIIQAQIIII/forge-word-docx-mcp.git
cd forge-word-docx-mcp
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt # runtime deps
.venv/bin/pip install -r requirements-dev.txt # tests (optional)
.venv/bin/python server.py # start MCP server (stdio)
.venv/bin/python test_server.py # self-test (25 checks)
.venv/bin/python -m pytest -q # full test suitePython support: >=3.10, <3.13 — verified by CI on Python 3.10 / 3.11 / 3.12.
Installer-based setup is documented in INSTALL.md.
Configure the MCP client with:
{
"mcpServers": {
"forge": {
"command": "/absolute/path/to/forge-word-docx-mcp/.venv/bin/python",
"args": ["/absolute/path/to/forge-word-docx-mcp/server.py"]
}
}
}Related MCP server: docx-mcp-server
Core Capabilities
Capability | Tool | Description |
Generate |
| Fill built-in or user-registered DOCX templates. |
Inspect |
| Paginated structural view of a DOCX (block ids, roles, locators). |
Reformat |
| Source-preserving reformat with format intelligence + preservation validation. |
Assemble |
| Batch normalize + package-aware merge + preservation + checkpoint/resume. |
Edit |
| Explicit, source-preserving, contract-validated targeted edits. |
Format Intelligence |
| Classify content intent and resolve a target format. |
Open Format System |
| Preset / Reference / Custom / Guided profiles and dynamic templates. |
Legacy compatibility:
reformat_docxis the legacy template-based reformat path and remains unchanged.Built-in legacy generation types and templates remain unchanged.
Content Preservation (high level)
FORGE treats the user's content as immutable payload:
Inspector reads the DOCX into an ordered Document IR with deterministic
source_locatorpaths (never text matching).Source-Preserving Renderer only patches formatting XML (
w:pPr/w:rPr/w:tblPr/w:tcPr/ drawing extents).Preservation Validation compares content fingerprints before/after: visible text, structure, media bytes, content sequence, table structure, and media relationships.
If any fingerprint fails, no output is produced.
Edit intentionally allows text changes, so it validates against an
Edit Contract: Source IR + EditPlan → Expected Payload vs Actual Payload.
Unauthorized changes are rejected with EDIT_CONTRACT_VIOLATION.
Format Model
ContentIntent != SemanticRole != FormatProfile != TemplateContentIntent says what the content is (plan, summary, notice…).
SemanticRole says what a block does (title, heading, body, caption…).
FormatProfile says how to format each role.
Template is only a DOCX skeleton for generation.
Profiles can be:
Preset — built-in profiles (generic, official, academic, weekly, …).
Reference — learned from a sample DOCX (
analyze_reference_format).Custom — explicit overrides on a base profile.
Guided — step-by-step sessions that only ask the key differences.
User profiles persist under FORGE_HOME/profiles/ (default
~/.forge-docx-mcp/). Dynamic templates persist under FORGE_HOME/templates/.
See docs/FORMAT_PROFILES.md and docs/ARCHITECTURE.md for details.
Examples
Synthetic examples live in examples/:
example_reformat.pyexample_assemble.pyexample_reference_profile.pyexample_edit.py
All examples use generic synthetic data only.
Documentation
INSTALL.md— installer and generic stdio setup.docs/MCP_TOOLS.md— every MCP tool, parameters, results, common errors.docs/FORMAT_PROFILES.md— format model, profiles, FORGE_HOME.docs/ARCHITECTURE.md— pipeline diagrams and subsystem responsibilities.CHANGELOG.md— release notes, including v1.2.1.
Release
Current release: v1.2.1
Status: stable
Known limitations are documented in CHANGELOG.md.
No performance guarantees are implied by the development-machine benchmarks.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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
Create real Word .docx files from your AI chat: proposals, quotes, contracts, statements of work.
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Composable APIs for document extraction, image transformation, and document & sheet generation.
AI document editing for agents: draft, edit, export .docx/PDF. 37 MCP tools; agent self-signup.
Related MCP Servers
- FlicenseBqualityCmaintenanceEnables creating professional Word documents from markdown or structured content with fast, customized formatting via natural language.71-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, edit, and create Microsoft Word documents (.docx) with support for rich text, tables, and images, deployable locally or via SSE.3MIT
- AlicenseBqualityDmaintenanceEnables complete Office document lifecycle management for AI agents, including creation, editing, conversion, and templating of DOCX, XLSX, PPTX, PDF, and EML files.40MIT
- AlicenseBqualityBmaintenanceEnables AI agents to create, read, and edit Word documents with tracked changes, comments, and template manipulation, including bulk text replacement and paragraph-level operations.100MIT
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/IIIIQAQIIII/forge-word-docx-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server