Aspose.Words MCP
OfficialThis server provides comprehensive Microsoft Word document automation via MCP tools, covering the full document lifecycle through creation, editing, formatting, security, and export.
Document Management
Create, copy, delete, list, and save documents; merge multiple documents into one
Get document info, statistics (pages/words), full text, XML, or binary (base64)
Content Editing
Insert, read, and delete paragraphs and text at start, end, or specific positions
Add headings, bulleted/numbered lists, HTML, Markdown, and images (base64)
Find and replace text with regex, case sensitivity, and whole-word options
Add page breaks and section breaks
Text & Paragraph Formatting
Format text by character range: font, size, bold, italic, underline, color
Add and apply custom paragraph styles
Tables
Create tables at any position; set column widths, auto-fit, and table alignment
Format tables: borders, shading, alternating row colors, header highlighting
Merge cells (horizontal/vertical), set cell alignment and padding, format cell text
Page Setup, Headers & Footers
Configure margins, orientation, paper size, and columns
Add header/footer text with page numbering; support different first-page headers
Watermarks
Add text watermarks (font, color, size, diagonal) or image watermarks (base64, scale, washout)
Bookmarks & Hyperlinks
Add bookmarks to paragraphs; insert internal or external hyperlinks
Comments, Footnotes & Endnotes
Retrieve comments (all, by author, or by paragraph)
Add, delete, validate, style, and convert footnotes/endnotes
Document Properties & Protection
Get/set title, author, subject, and keywords
Protect/unprotect with passwords; restrict editing to specific ranges
Digital Signatures
Sign documents with a digital certificate; inspect signature metadata
Export & Rendering
Export to DOCX, PDF, and other formats as base64
Render any page to an image (PNG, configurable DPI) as base64
Utilities
Health check; retrieve document outline (heading structure)
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., "@Aspose.Words MCPCreate a document with heading and two paragraphs, then export as PDF."
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.
Aspose.Words MCP
Overview
Aspose.Words MCP is a FastMCP-based MCP server built on top of Aspose.Words for Python via .NET. It automates Microsoft Word document creation and editing and exposes operations as MCP tools that any MCP-compatible client can call. The server is aligned with Aspose.Words for Python via .NET 26.6.0. Supported transports: stdio, streamable-http, sse.
Related MCP server: MCP-OPENAPI-DOCX
Features
Create documents; read/write text, headings, and paragraphs
Text replacement workflows, including optional run joining when needed
Text formatting (font, size, style, color, underline)
Page and section breaks; page setup (margins, orientation, paper size, columns)
Lists (bulleted/numbered)
Tables: create, auto-fit, merge cells, alignment, shading, paddings, column widths, header styling
Footnotes and endnotes: add, convert, anchor-based operations, validation
Comments: get by author, by paragraph, all comments
Document properties: read/write (title, author, subject, keywords)
Protection: protect/unprotect, partial editing restrictions
Digital signatures: sign documents and inspect signature metadata
Bookmarks, hyperlinks
Watermarks (text/image)
Export as Base64 (DOCX, PDF, etc.)
Render page to image (PNG, etc.)
In-memory document management: copy, save as, list, delete, merge
Requirements
Python 3.11+
Aspose.Words for Python via .Net. This library is a commercial product.
You'll need to obtain a valid license for Aspose.Words. The package will install this dependency, but you're responsible for complying with Aspose's licensing terms.
Installation
pip install aspose-words-mcpFrom source (download repo and install requirements):
git clone https://github.com/aspose-words/Aspose.Words-MCP
cd Aspose.Words-MCP
pip install -r requirements.txtCommand Line Interface
After installation, the CLI command is available:
aspose-words-mcpBy default, the server runs with the stdio transport.
Run without installation:
python mcp_server.pyTransports and Configuration
Supported MCP transports: stdio, streamable-http, sse.
Environment Variables
MCP_TRANSPORT—stdio|streamable-http|sse(defaultstdio)MCP_HOST— host address (default0.0.0.0)MCP_PORT— port (default8080)MCP_PATH— HTTP path forstreamable-http(default/mcp)MCP_SSE_PATH— events path forsse(default/sse)LOG_LEVEL— logging level (INFO,DEBUG, ...)
Aspose.Words License
The Aspose.Words license is applied when the server starts. The effective path to the license file is resolved with the following precedence:
The
license_pathargument ofrun_server(..., license_path=None)The
ASPOSE_WORDS_LICENSE_PATHenvironment variable
If no license is provided or the file is not accessible, the server runs in Evaluation mode.
Example of setting the environment variable:
export ASPOSE_WORDS_LICENSE_PATH='/path/to/aspose.words.lic'HTTP/SSE Run Example
export MCP_TRANSPORT=streamable-http # or sse
export MCP_HOST=0.0.0.0
export MCP_PORT=8080
export MCP_PATH=/mcp # for streamable-http
export MCP_SSE_PATH=/sse # for sse
aspose-words-mcpOn start, the server prints the listening address.
Tools
See full list and signatures in mcp_server.py (function register_tools) and tests in tests/features/*.
Main tool categories:
content/reading: create document, insert/delete/read text, headings, lists, HTML/Markdown
layout: pages, breaks, columns, headers/footers, page numbering
tables: create and format tables
watermarks: watermarks
links/bookmarks: hyperlinks and bookmarks
properties: document properties
protection: protection and restrictions
signatures: signing and signature metadata
comments/notes: comments, footnotes/endnotes
export/render: export (including Docling advanced export), page rendering
Example Workflow via an MCP Client
Sequence of tool calls (names match the server):
create_document→ getdoc_idadd_heading(e.g., levels 1–3)add_paragraph/insert_text_endadd_table_endoradd_table_at_paragraphadd_watermark_textoradd_watermark_image_base64export_base64(e.g.,fmt="pdf") — get file as Base64
Integration with MCP Clients
Claude Desktop MCP: add this server with
streamable-httporssetransport and the URL printed by the server at startup.Any MCP (JSON) clients — configure the matching transport and path.
License
This package is licensed under the MIT License. However, it depends on Aspose.Words for Python via .Net library, which is proprietary, closed-source library.
⚠️ You must obtain valid license for Aspose.Words for Python via .Net library. This repository does not include or distribute any proprietary components.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Use of third-party trademarks or logos is subject to those third-party policies.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/aspose-words/Aspose.Words-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server