Word MCP Server
About
Word MCP Server is a Python application that enables creating and editing Microsoft Word (.docx) documents through an API using FastMCP. It provides tools for interacting with Word documents, such as adding text, images, and tables. It is designed for developers and LLMs needing…
Details
- Author
- MCP-Mirror
- Downloads
- 166
- Categories
- Other
Jump to
- Create and open Word documents
- Add and format text (headings, paragraphs, runs)
- Insert images from file paths or numpy arrays
- Create tables with custom styles and data
- Manage resources and prompts for document workflows
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Word MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install dependencies with uv pip install . after creating a virtual environment. Configure it for an LLM by providing a JSON object with the path to the Python interpreter and the server.py script. Once running, the server accepts commands from the LLM to create or edit documents using natural language or direct API calls.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"word mcp server": {
"cuongpham2107_word-mcp-server": {
"command": "uv",
"args": [
"venv"
]
}
}
}
}
McpServers
{
"cuongpham2107_word-mcp-server": {
"command": "uv",
"args": [
"venv"
]
}
}
Word MCP Server
Word MCP Server là một ứng dụng Python cho phép tạo và chỉnh sửa tài liệu Microsoft Word (.docx) thông qua API. Dự án này sử dụng FastMCP để xây dựng các công cụ tương tác với tài liệu Word.
Cài đặt
Yêu cầu
- Python 3.12+
- Các thư viện phụ thuộc:
- python-docx
- opencv-python (cv2)
- numpy
- FastMCP
Cài đặt thư viện
uv venv
source venv/bin/activate
uv pip install .
Tính năng
Word MCP Server cung cấp các công cụ để:
1. Tạo và mở tài liệu Word
2. Thêm và định dạng văn bản
3. Thêm hình ảnh
4. Tạo bảng
5. Quản lý tài nguyên và prompt
Hướng dẫn sử dụng
Cấu hình và khởi chạy với LLM
Để sử dụng Word MCP Server với các mô hình ngôn ngữ lớn (LLM), bạn cần cấu hình thông qua file JSON:
{
"mcpServers": {
"word-mcp-server": {
"command": "/path/to/word-mcp-server/.venv/bin/python3",
"args": ["/path/to/word-mcp-server/server.py"]
}
}
}
Giải thích cấu hình:
- mcpServers: Object chứa cấu hình cho các MCP server
- word-mcp-server: Tên định danh của server
- command: Đường dẫn đến Python interpreter (thường nằm trong môi trường ảo)
- args: Các tham số dòng lệnh, trong đó tham số đầu tiên là đường dẫn đến file server.py
Server sẽ khởi động và sẵn sàng nhận lệnh từ LLM
Tương tác với LLM:
Khi đã cấu hình và khởi chạy thành công, bạn có thể sử dụng LLM để:
- Tạo và chỉnh sửa tài liệu Word thông qua lệnh tự nhiên
- Tự động tạo nội dung dựa trên prompt
- Định dạng văn bản, thêm hình ảnh và bảng một cách thông minh
Tạo tài liệu mới
create_new_document()
Mở tài liệu có sẵn
open_document("path/to/document.docx")
Thêm tiêu đề và đoạn văn
```python
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



