mcp-msoffice-interop-word
8
The MCP Office Interop Word Server is a Model Context Protocol server that allows users to automate and interact with Microsoft Word documents on Windows using COM Interop. It provides tools for document processing and supports communication through stdio and SSE transports.
MCP Office Interop Word Server
This project implements a Model Context Protocol (MCP) server that facilitates interaction with Microsoft Word documents through COM Interop on Windows. It allows users to perform common Word processing tasks programmatically and communicates via both stdio and SSE transports.
Features
- Utilizes COM Interop to wrap Microsoft Word operations.
- Exposes this functionality as MCP tools.
- Supports stdio and SSE transports for communication.
- Developed with TypeScript and the
@modelcontextprotocol/sdk
.
Prerequisites
- Node.js (v18 or later recommended)
- npm
- Microsoft Word installed on Windows.
Available Tools
- Document Operations: Create, open, save, and close documents.
- Text Manipulation: Insert, delete, find, and replace text.
- Paragraph Formatting: Set alignment, indents, spacing.
- Table Operations: Add tables, set cell text, insert rows/columns.
- Image Operations: Insert pictures, set picture size.
- Header/Footer Operations: Set text in headers/footers.
- Page Setup Operations: Set margins, orientation, paper size.
Notes
- Requires Microsoft Word and access via COM Interop.