add_endnote_to_document
Add an endnote to a specific paragraph in a Word document.
Write and format a .docx the way Word would — headings, tables, footnotes, styles and comments — and export it to PDF.
No longer maintained. The GitHub repository for this server is archived — no fixes or security updates are expected.
LABSCO SUMMARY
What it takes off you is the tidying pass in Word afterwards. The agent builds the table, shades its header, merges the cells that need merging and attaches a footnote that renders correctly — and the validation call reports ID conflicts and orphaned notes before you open the file.
An editor for .docx files on disk. It covers the parts that make a document look finished: table formatting cell by cell, footnotes and endnotes that render as real superscript, custom styles, and password protection.
uvx on your PATH, and the .docx files reachable on the machine the server runs on — every call takes a filename rather than an upload.
One command — uvx --from office-word-mcp-server word_mcp_server
USE CASES
Headings, body text and a formatted table are written in one pass, so what comes out does not need a tidying pass in Word.
Placeholders are found and replaced, and a whole block under a heading is swapped out without disturbing the table of contents.
Footnotes are attached relative to the text that needs them, restyled to the numbering you want, and checked for conflicts and orphans before delivery.
Alternating row colours, a highlighted header and column widths set or auto-fitted turn a data dump into something a reader scans.
Comments are pulled out of the file as data — all of them, by author, or for a single paragraph — instead of being read in Word.
The document is converted to PDF for distribution, and the editable copy can be locked with a password.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_endnote_to_documentAdd an endnote to a specific paragraph in a Word document.
add_footnote_after_textAdd a footnote after specific text with proper superscript formatting. This enhanced function ensures footnotes display correctly as superscript.
add_footnote_before_textAdd a footnote before specific text with proper superscript formatting. This enhanced function ensures footnotes display correctly as superscript.
add_footnote_enhancedEnhanced footnote addition with guaranteed superscript formatting. Adds footnote at the end of a specific paragraph with proper style handling.
add_footnote_robustAdd footnote with robust validation and Word compliance. This is the production-ready version with comprehensive error handling.
add_footnote_to_documentAdd a footnote to a specific paragraph in a Word document.
add_headingAdd a heading to a Word document with optional formatting.
add_page_breakAdd a page break to the document.
add_paragraphAdd a paragraph to a Word document with optional formatting.
add_pictureAdd an image to a Word document.
add_tableAdd a table to a Word document.
apply_table_alternating_rowsApply alternating row colors to a table for better readability.
auto_fit_table_columnsSet table columns to auto-fit based on content.
convert_to_pdfConvert a Word document to PDF format.
copy_documentCreate a copy of a Word document.
create_custom_styleCreate a custom style in the document.
create_documentCreate a new Word document with optional metadata.
customize_footnote_styleCustomize footnote numbering and formatting in a Word document.
delete_footnote_from_documentDelete a footnote from a Word document. Identify the footnote either by ID (1, 2, 3, etc.) or by searching for text near it.
delete_footnote_robustDelete footnote with comprehensive cleanup and orphan removal. Ensures complete removal from document.xml, footnotes.xml, and relationships.
delete_paragraphDelete a paragraph from a document.
find_text_in_documentFind occurrences of specific text in a Word document.
format_tableFormat a table with borders, shading, and structure.
format_table_cell_textFormat text within a specific table cell.
format_textFormat a specific range of text within a paragraph.
get_all_commentsExtract all comments from a Word document.
get_comments_by_authorExtract comments from a specific author in a Word document.
get_comments_for_paragraphExtract comments for a specific paragraph in a Word document.
get_document_infoGet information about a Word document.
get_document_outlineGet the structure of a Word document.
get_document_textExtract all text from a Word document.
get_document_xmlGet the raw XML structure of a Word document.
get_paragraph_text_from_documentGet text from a specific paragraph in a Word document.
highlight_table_headerApply special highlighting to table header row.
insert_header_near_textInsert a header (with specified style) before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), header_title (str), position ('before' or 'after'), header_style (str, default 'Heading 1'), target_paragraph_index (int, optional).
insert_line_or_paragraph_near_textInsert a new line or paragraph (with specified or matched style) before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), line_text (str), position ('before' or 'after'), line_style (str, optional), target_paragraph_index (int, optional).
insert_numbered_list_near_textInsert a bulleted or numbered list before or after the target paragraph. Specify by text or paragraph index. Args: filename (str), target_text (str, optional), list_items (list of str), position ('before' or 'after'), target_paragraph_index (int, optional), bullet_type ('bullet' for bullets or 'number' for numbered lists, default: 'bullet').
list_available_documentsList all .docx files in the specified directory.
merge_table_cellsMerge cells in a rectangular area of a table.
merge_table_cells_horizontalMerge cells horizontally in a single row.
merge_table_cells_verticalMerge cells vertically in a single column.
protect_documentAdd password protection to a Word document.
replace_block_between_manual_anchorsReplace all content between start_anchor_text and end_anchor_text (or next logical header if not provided).
replace_paragraph_block_below_headerReemplaza el bloque de párrafos debajo de un encabezado, evitando modificar TOC.
search_and_replaceSearch for text and replace all occurrences.
set_table_alignment_allSet text alignment for all cells in a table.
set_table_cell_alignmentSet text alignment for a specific table cell.
set_table_cell_paddingSet padding/margins for a specific table cell.
set_table_cell_shadingApply shading/filling to a specific table cell.
set_table_column_widthSet the width of a specific table column.
set_table_column_widthsSet the widths of multiple table columns.
set_table_widthSet the overall width of a table.
unprotect_documentRemove password protection from a Word document.
validate_document_footnotesValidate all footnotes in document for coherence and compliance. Returns detailed report on ID conflicts, orphaned content, missing styles, etc.
BEFORE YOU INSTALL
54 tools when we connected. The documentation's API reference spells out only 39; the rest, including the footnote and endnote tools, protect_document, unprotect_document and get_document_xml, work but appear only in the feature descriptions.
uv installed, so uvx is on your PATH
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 54 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
uvx --from office-word-mcp-server word_mcp_server{
"mcpServers": {
"word-document-server": {
"command": "uvx",
"args": [
"--from",
"office-word-mcp-server",
"word_mcp_server"
]
}
}
}