Provides a bridge to Microsoft Word for creating and modifying documents with features like text formatting, table manip...
Created byApr 22, 2025
Office-Word-MCP-Server
A Model Context Protocol (MCP) server for creating, reading, and manipulating Microsoft Word documents. This server enables AI assistants to work with Word documents through a standardized interface, providing rich document editing capabilities.
Overview
Office-Word-MCP-Server implements the Model Context Protocol to expose Word document operations as tools and resources. It serves as a bridge between AI assistants and Microsoft Word documents, allowing for document creation, content addition, formatting, and analysis.
Example
Pormpt
image
Output
image
Features
Document Management
Create new Word documents with metadata
Extract text and analyze document structure
View document properties and statistics
List available documents in a directory
Create copies of existing documents
Content Creation
Add headings with different levels
Insert paragraphs with optional styling
Create tables with custom data
Add images with proportional scaling
Insert page breaks
Rich Text Formatting
Format specific text sections (bold, italic, underline)
Change text color and font properties
Apply custom styles to text elements
Search and replace text throughout documents
Table Formatting
Format tables with borders and styles
Create header rows with distinct formatting
Apply cell shading and custom borders
Structure tables for better readability
Advanced Document Manipulation
Delete paragraphs
Create custom document styles
Apply consistent formatting throughout documents
Format specific ranges of text with detailed control
Installation
Prerequisites
Python 3.8 or higher
pip package manager
Basic Installation
Using the Setup Script
Alternatively, you can use the provided setup script which handles:
Checking prerequisites
Setting up a virtual environment
Installing dependencies
Generating MCP configuration
Usage with Claude for Desktop
Configuration
Method 1: After Local Installation
After installation, add the server to your Claude for Desktop configuration file:
Method 2: Without Installation (Using uvx)
You can also configure Claude for Desktop to use the server without local installation by using the uvx package manager:
Configuration file locations:
Restart Claude for Desktop to load the configuration.
Example Operations
Once configured, you can ask Claude to perform operations like:
"Create a new document called 'report.docx' with a title page"
"Add a heading and three paragraphs to my document"
"Insert a 4x4 table with sales data"
"Format the word 'important' in paragraph 2 to be bold and red"
"Search and replace all instances of 'old term' with 'new term'"
"Create a custom style for section headings"
"Apply formatting to the table in my document"
API Reference
Document Creation and Properties
Content Addition
Text Formatting
Table Formatting
Troubleshooting
Common Issues
Missing Styles
Permission Issues
Image Insertion Problems
Debugging
Enable detailed logging by setting the environment variable:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add some amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This server interacts with document files on your system. Always verify that requested operations are appropriate before confirming them in Claude for Desktop or other MCP clients.
Office-Word-MCP-Server
A Model Context Protocol (MCP) server for creating, reading, and manipulating Microsoft Word documents. This server enables AI assistants to work with Word documents through a standardized interface, providing rich document editing capabilities.
Overview
Office-Word-MCP-Server implements the Model Context Protocol to expose Word document operations as tools and resources. It serves as a bridge between AI assistants and Microsoft Word documents, allowing for document creation, content addition, formatting, and analysis.
Example
Pormpt
image
Output
image
Features
Document Management
Create new Word documents with metadata
Extract text and analyze document structure
View document properties and statistics
List available documents in a directory
Create copies of existing documents
Content Creation
Add headings with different levels
Insert paragraphs with optional styling
Create tables with custom data
Add images with proportional scaling
Insert page breaks
Rich Text Formatting
Format specific text sections (bold, italic, underline)
Change text color and font properties
Apply custom styles to text elements
Search and replace text throughout documents
Table Formatting
Format tables with borders and styles
Create header rows with distinct formatting
Apply cell shading and custom borders
Structure tables for better readability
Advanced Document Manipulation
Delete paragraphs
Create custom document styles
Apply consistent formatting throughout documents
Format specific ranges of text with detailed control
Installation
Prerequisites
Python 3.8 or higher
pip package manager
Basic Installation
Using the Setup Script
Alternatively, you can use the provided setup script which handles:
Checking prerequisites
Setting up a virtual environment
Installing dependencies
Generating MCP configuration
Usage with Claude for Desktop
Configuration
Method 1: After Local Installation
After installation, add the server to your Claude for Desktop configuration file:
Method 2: Without Installation (Using uvx)
You can also configure Claude for Desktop to use the server without local installation by using the uvx package manager:
Configuration file locations:
Restart Claude for Desktop to load the configuration.
Example Operations
Once configured, you can ask Claude to perform operations like:
"Create a new document called 'report.docx' with a title page"
"Add a heading and three paragraphs to my document"
"Insert a 4x4 table with sales data"
"Format the word 'important' in paragraph 2 to be bold and red"
"Search and replace all instances of 'old term' with 'new term'"
"Create a custom style for section headings"
"Apply formatting to the table in my document"
API Reference
Document Creation and Properties
Content Addition
Text Formatting
Table Formatting
Troubleshooting
Common Issues
Missing Styles
Permission Issues
Image Insertion Problems
Debugging
Enable detailed logging by setting the environment variable:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add some amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This server interacts with document files on your system. Always verify that requested operations are appropriate before confirming them in Claude for Desktop or other MCP clients.