Word MCP Server

Word MCP Server

word-mcp-server•bycuongpham2107

Một ứng dụng Python dùng FastMCP cung cấp các công cụ tạo và chỉnh sửa tài liệu Microsoft Word (.docx) cho các mô hình ngôn ngữ lớn.

License: Not specified•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Tạo mới và mở các tài liệu Word có sẵn.
  • •Thêm tiêu đề và đoạn văn bản với các tùy chọn định dạng như kiểu, cỡ chữ, in đậm, in nghiêng và căn lề.
  • •Thêm hình ảnh từ đường dẫn tệp hoặc từ ma trận numpy.
  • •Tạo bảng với số hàng, số cột và kiểu bảng chỉ định.

BEST FOR

  • •Tạo và chỉnh sửa tài liệu Word thông qua lệnh ngôn ngữ tự nhiên từ LLM.
  • •Tự động tạo nội dung tài liệu dựa trên prompt.
  • •Soạn báo cáo có tiêu đề, hình ảnh minh họa và bảng dữ liệu.

ABOUT WORD-MCP-SERVER

Word MCP Server is cataloged as an MCP server attributed to cuongpham2107. Một ứng dụng Python dùng FastMCP cung cấp các công cụ tạo và chỉnh sửa tài liệu Microsoft Word (.docx) cho các mô hình ngôn ngữ lớn. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Word MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Công cụ này được xây dựng dựa trên thư viện nào để tương tác với tài liệu Word?

Dự án sử dụng thư viện python-docx để tương tác với tài liệu Word.

Những màu nào được hỗ trợ cho tham số color và highlight?

Các giá trị màu hỗ trợ gồm black, blue, green, dark blue, dark red, dark yellow, dark green, pink, red, white, teal, yellow, violet, gray25 và gray50.

上游原版 README

在 GitHub 查看同一版本原文

README.md · a7a9eee6911a · 采集于 2026-11-13 10:40:56 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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

# Thêm tiêu đề
add_heading("Tiêu đề tài liệu", level=0)
add_heading("Chương 1", level=1)

# Thêm đoạn văn bản
add_paragraph("Đây là nội dung đoạn văn bản.")

# Thêm đoạn văn bản với định dạng
add_paragraph(
    "Đây là đoạn văn bản được định dạng.",
    style="Normal",
    font_size=14,
    bold=True,
    italic=False,
    alignment=WD_PARAGRAPH_ALIGNMENT.CENTER
)

Thêm định dạng cho một phần văn bản

# Tạo đoạn văn bản
p = add_paragraph("Đây là đoạn văn bản cơ bản. ")

# Thêm phần văn bản có định dạng khác
add_run_to_paragraph(
    p,
    "Phần này được in đậm và màu đỏ.",
    bold=True,
    color="red"
)

# Thêm phần văn bản có highlight
add_run_to_paragraph(
    p,
    " Phần này được highlight màu vàng.",
    highlight="yellow"
)

Thêm hình ảnh

# Thêm hình ảnh từ đường dẫn file
add_picture("path/to/image.jpg", width=4.0)

# Hoặc thêm hình ảnh từ ma trận numpy
import numpy as np
import cv2

img = cv2.imread("path/to/image.jpg")
add_picture(img, width=3.5)

Tạo bảng

# Tạo bảng với 3 hàng và 4 cột
table = add_table(rows=3, cols=4, style="Table Grid")

# Điền dữ liệu vào bảng
table.cell(0, 0).text = "Hàng 1, Cột 1"
table.cell(0, 1).text = "Hàng 1, Cột 2"
# ...

Các màu hỗ trợ

Khi sử dụng các tham số color và highlight, bạn có thể sử dụng các giá trị sau:

  • black
  • blue
  • green
  • dark blue
  • dark red
  • dark yellow
  • dark green
  • pink
  • red
  • white
  • teal
  • yellow
  • violet
  • gray25
  • gray50

Lưu ý

  • Dự án này sử dụng thư viện python-docx để tương tác với tài liệu Word
  • Các tài nguyên và prompt được lưu trữ trong thư mục resources và prompts
  • Đảm bảo bạn đã cài đặt đầy đủ các thư viện phụ thuộc trước khi chạy server

Ví dụ hoàn chỉnh

# Tạo tài liệu mới
create_new_document()

# Thêm tiêu đề
add_heading("Báo cáo dự án", level=0)

# Thêm thông tin người tạo
p = add_paragraph("Người tạo: ")
add_run_to_paragraph(p, "Nguyễn Văn A", bold=True)

# Thêm mục lục
add_heading("Mục lục", level=1)
add_paragraph("1. Giới thiệu")
add_paragraph("2. Nội dung")
add_paragraph("3. Kết luận")

# Thêm nội dung
add_heading("1. Giới thiệu", level=1)
add_paragraph("Đây là phần giới thiệu của dự án...")

# Thêm hình ảnh
add_paragraph("Hình ảnh minh họa:")
add_picture("project_diagram.jpg", width=5.0)

# Thêm bảng dữ liệu
add_heading("Bảng dữ liệu", level=2)
table = add_table(rows=3, cols=3)
table.cell(0, 0).text = "Dữ liệu 1"
table.cell(0, 1).text = "Dữ liệu 2"
table.cell(0, 2).text = "Dữ liệu 3"
# Điền các dữ liệu khác...

# Lưu tài liệu
save_document("bao_cao_du_an.docx")

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Word MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/word-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation