Office-Word-MCP-Server

Office-Word-MCP-Server

A Model Context Protocol (MCP) server for creating, reading, and manipulating Microsoft Word documents.

1,010
Stars
163
Forks
0
Releases

Overview

Office-Word-MCP-Server implements the Model Context Protocol (MCP) to expose Word document operations as tools and resources, serving as a bridge between AI assistants and Microsoft Word documents. It enables document creation, content addition, formatting, and analysis, with a modular architecture that separates core functionality, tools, and utilities for maintainability and extensibility. The server supports a broad range of capabilities across Document Management (creating documents with metadata, extracting text and structure, viewing properties and statistics, listing and copying/merging documents, and converting to PDF), Content Creation (headings, paragraphs, tables, images, page breaks, lists, footnotes/endnotes, and professional layouts), Rich Text Formatting (text styling, color/font properties, custom styles, search/replace, and formatting within tables), Table Formatting (borders, shading, headers, cell merging, alignment, padding, and auto-fit, including advanced callout table support), Advanced Document Manipulation (deleting/inserting content near text, inserting headers/paragraphs, creating styles, consistent formatting, range formatting, and padding control), Document Protection (password protection, restricted editing with editable sections, digital signatures, and integrity verification), and Comment Extraction (retrieving all comments, filtering by author, accessing paragraph-specific comments and metadata). The project acknowledges dependencies like python-docx and FastMCP and envisions Claude Desktop integration for local usage.

Details

Owner
GongRzhe
Language
Python
License
MIT License
Updated
2025-12-07

Features

Document Management

Create new Word documents with metadata; extract text and analyze structure; view properties and statistics; list documents; copy/merge documents; convert to PDF.

Content Creation

Add headings and paragraphs with styling; create tables; insert images; insert page breaks; manage bulleted/numbered lists; footnotes and endnotes with styling; professional layouts.

Rich Text Formatting

Format text (bold/italic/underline), change color and font properties; apply custom styles; search/replace; format table cells; direct formatting during creation; add section header borders.

Table Formatting

Format tables with borders and shading; header rows; cell merging; alignment; padding; column widths and auto-fit; support for advanced callout tables.

Advanced Document Manipulation

Delete paragraphs; insert content near text or indices; insert headers/paragraphs at target locations; create custom styles; apply consistent formatting; format specific ranges; manage padding units.

Document Protection

Add password protection; implement restricted editing with editable sections; add digital signatures; verify document authenticity and integrity.

Comment Extraction

Extract all comments; filter by author; get comments for specific paragraphs; access comment metadata (author, date, text).

Audience

AI assistantsEnable MCP-based AI assistants to manipulate Word documents programmatically for creation, editing, formatting, and analysis.
Claude Desktop usersConfigure Claude to access and operate Word documents via the MCP server within the desktop environment.

Tags

MCP serverWord documentsMicrosoft Worddocument editingtext formattingtablesfootnotesPDF conversionimage insertiondocument protectioncomments extractionpython-docxFastMCPClaude