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.
No reviews yet. Be the first to review!
Sign in to join the conversation
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. Each search string must match exactly once within the specified paragraph.
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.