LogoSTMCP
Download
Office-Word-MCP-Server

Office-Word-MCP-Server

Office-Word-MCP-Server implements the Model Context Protocol to expose Word document operations as tools and resources. It serves as a bridge between AI assistants and Microsoft Word documents, allowing for document creation, content addition, formatting, and analysis. The server features a modular architecture that separates concerns into core functionality, tools, and utilities, making it highly maintainable and extensible for future enhancements.

Tools

1. create_document

Create a new Word document with optional metadata including title and author information.

2. get_document_info

Retrieve comprehensive document properties and statistics including metadata, page count, and word count.

3. get_document_text

Extract all text content from a Word document for analysis or processing.

4. get_document_outline

Generate a structured outline of the document showing headings and document hierarchy.

5. list_available_documents

List all Word documents available in a specified directory for document management.

6. copy_document

Create a copy of an existing Word document with optional custom filename.

7. convert_to_pdf

Convert Word documents to PDF format with optional output filename specification.

8. add_heading

Insert headings with different levels (1-9) to structure document content.

9. add_paragraph

Add paragraphs with optional styling and formatting to document content.

10. add_table

Create tables with custom rows, columns, and data for structured information display.

11. add_picture

Insert images into documents with proportional scaling and size control.

12. add_page_break

Insert page breaks to control document layout and pagination.

13. format_text

Apply rich text formatting including bold, italic, underline, color, and font properties to specific text ranges.

14. search_and_replace

Search for specific text throughout the document and replace it with new content.

15. delete_paragraph

Remove specific paragraphs from the document by index.

16. create_custom_style

Define custom text styles with specific formatting properties for consistent document appearance.

17. format_table

Apply formatting to tables including borders, styles, and header row formatting.

18. set_table_cell_shading

Apply background colors and shading patterns to individual table cells.

19. apply_table_alternating_rows

Create alternating row colors in tables for improved readability.

20. highlight_table_header

Apply special formatting to table header rows with custom colors.

21. merge_table_cells

Merge table cells horizontally, vertically, or in rectangular areas.

22. set_table_cell_alignment

Control horizontal and vertical alignment of content within table cells.

23. format_table_cell_text

Apply text formatting (bold, italic, underline, color, font) to individual table cells.

24. set_table_cell_padding

Control spacing around content within table cells with customizable padding.

25. set_table_column_width

Manage column widths using points, percentages, or auto-fit capabilities.

26. auto_fit_table_columns

Automatically adjust column widths to fit content optimally.

27. get_all_comments

Extract all comments from a document including metadata and content.

28. get_comments_by_author

Filter and retrieve comments from specific authors in the document.

29. get_comments_for_paragraph

Get all comments associated with a specific paragraph in the document.

30. add_footnote

Insert footnotes with custom text and formatting to document content.

31. add_endnote

Add endnotes to documents for additional references and citations.

32. convert_footnotes_to_endnotes

Convert existing footnotes to endnotes format throughout the document.

33. merge_documents

Combine multiple Word documents into a single consolidated document.

34. protect_document

Add password protection and editing restrictions to secure document content.

35. add_digital_signature

Apply digital signatures to documents for authenticity and integrity verification.

Open Graph image for Office-Word-MCP-Server

JSON Config

{
  "mcpServers": {
    "word-document-server": {
      "command": "uvx",
      "args": ["--from", "office-word-mcp-server", "word_mcp_server"]
    }
  }
}

Useful Links

Information

Categories