mcp-msoffice-interop-word

mcp-msoffice-interop-word

3.4

If you are the rightful owner of mcp-msoffice-interop-word and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP Office Interop Word Server allows interaction with Microsoft Word documents using COM Interop on Windows.

The MCP Office Interop Word Server is a Model Context Protocol (MCP) server designed to facilitate programmatic interaction with Microsoft Word documents through COM Interop on Windows. It provides a suite of MCP tools that enable users to perform common Word processing tasks such as document creation, text manipulation, and formatting. The server supports both stdio and SSE transports for communication, making it versatile for different client setups. Built with TypeScript and utilizing the @modelcontextprotocol/sdk, it requires Node.js and Microsoft Word installed on a Windows machine. The server is particularly useful for automating Word document tasks in environments where Microsoft Word is available.

Features

  • Wraps common Microsoft Word operations via COM Interop.
  • Exposes functionality as MCP tools.
  • Supports stdio and SSE transports for MCP communication.
  • Built with TypeScript and uses the @modelcontextprotocol/sdk.

Tools

  1. Document operation tool

    word_createDocument, word_openDocument, word_saveActiveDocument, word_saveActiveDocumentAs, word_closeActiveDocument

  2. Text editing tools

    word_insertText, word_deleteText, word_findAndReplace, word_toggleBold, word_toggleItalic, word_toggleUnderline

  3. Paragraph format tool

    word_setParagraphAlignment, word_setParagraphLeftIndent, word_setParagraphRightIndent, word_setParagraphFirstLineIndent, word_setParagraphSpaceBefore, word_setParagraphSpaceAfter, word_setParagraphLineSpacing

  4. Table operation tool

    word_addTable, word_setTableCellText, word_insertTableRow, word_insertTableColumn, word_applyTableAutoFormat

  5. Picture operation tool

    word_insertPicture, word_setInlinePictureSize

  6. Header and Footer Tool

    word_setHeaderFooterText

  7. Page Setting Tool

    word_setPageMargins, word_setPageOrientation, word_setPaperSize