Provides the runtime environment for the MCP server, required as a prerequisite (version 14 or higher)
Word Tools MCP Server
A Model Context Protocol (MCP) server that provides AI-powered Word document manipulation capabilities. This server implements the MCP protocol to enable AI applications to create, edit, and manage Word documents through natural language interactions.
Features
Full MCP protocol implementation
Word document creation and management
Rich text content manipulation
Table creation and formatting
Document layout control
Document metadata management
Real-time document state monitoring
Prerequisites
Node.js 14 or higher
Microsoft Word (optional, for advanced features)
Installation
Or install globally:
For use as a dependency in your project:
Usage
Start the MCP server:
The server will start on port 8765 by default
Configure your AI application (e.g., Cursor, VSCode) to use the MCP server:
http://localhost:8765
MCP Tools
The server provides the following MCP functions:
create_document
- Create a new Word documentParameters: filePath (required), title, author
open_document
- Open an existing Word documentParameters: filePath (required)
add_paragraph
- Add a paragraph to the documentParameters: filePath (required), text (required), style, alignment
add_table
- Add a table to the documentParameters: filePath (required), rows (required), cols (required), headers, data
search_and_replace
- Find and replace text in the documentParameters: filePath (required), searchText (required), replaceText (required), matchCase
set_page_margins
- Set document page marginsParameters: filePath (required), top, right, bottom, left
get_document_info
- Get document metadataParameters: filePath (required)
Integration with AI Applications
Cursor
Open the Cursor configuration file
~/.cursor/mcp.json
Add the following configuration:
Or for local development version:
After configuration, you can use natural language to manipulate Word documents:
VSCode and Other MCP-Compatible Tools
Similar integration steps apply to other tools that support the MCP protocol. Consult your tool's documentation for specific MCP server configuration steps.
Development
To extend or modify this MCP server:
Clone the repository:
Install dependencies:
Start in development mode:
Build for production:
Adding New MCP Functions
Add new methods in
src/services/DocumentService.ts
Register new functions in
src/mcp-server.ts
Update type definitions as needed
Configuration
Default port: 8765 (configurable)
Supported file types: .docx
All file paths should be absolute or relative to the current working directory
License
MIT
Support
If you encounter any issues or have suggestions for improvements, please submit an issue on our GitHub repository.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Enable AI to read, create, and modify Word documents through natural language
- Features
- Prerequisites
- Installation
- Usage
- MCP Tools
- Integration with AI Applications
- Development
- Configuration
- License
- Support
Related Resources
Related MCP Servers
- -securityFlicense-qualityEnables AI language models to interact with Microsoft OneNote via a standardized interface, supporting notebook and page management through natural language.Last updated -919
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to create, read, edit, and format Microsoft Word documents through standardized tools and resources.Last updated -54811MIT License
- AsecurityAlicenseAqualityEnables AI agents to interact with Notion workspaces through the Notion API. Supports reading, writing, and managing pages, databases, and comments with optimized token consumption.Last updated -1912,735MIT License
- -securityAlicense-qualityEnables AI assistants to create, read, and manipulate Microsoft Word documents with comprehensive formatting, table creation, content management, and document protection capabilities. Supports advanced operations like merging documents, PDF conversion, and rich text formatting through a standardized interface.Last updated -32MIT License