This MCP server implementation, developed for Microsoft Office document manipulation, provides a Python-based interface for AI assistants to interact with Word documents. Built using libraries like python-docx and leveraging the Model Context Protocol, it offers tools for reading, writing, and editing .docx files, including handling of text, tables, and images. The implementation focuses on efficient document processing, making it easier for AI models to analyze and generate content in Word format. It's particularly useful for automating document creation, content analysis, or report generation tasks that require working with structured Word documents, enabling AI to manipulate Office files without needing deep knowledge of the underlying file formats.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Read complete contents of a docx file including tables and images. Input: path (string) - Absolute path to the target file. Note: Images are converted to [Image] placeholders, and track changes are not shown.
Create a new docx file with given content. Input: path (string) - Absolute path to target file, content (string) - Content to write to the file. Note: Use double line breaks for new paragraphs, and [Table] tag with | separators for tables.
Make text replacements in specified paragraphs of a docx file. Input: path (string) - Absolute path to file to edit, edits (array) - List of dictionaries containing search/replace text and paragraph index.
Insert new paragraphs into a docx file. Input: path (string) - Absolute path to file to edit, inserts (array) - List of dictionaries containing text and optional paragraph index.