MCP Server Office
The MCP Server Office is a server providing tools to interact with Microsoft Word (docx) files:
Read DOCX Files: Retrieve complete contents of docx files, including tables and images (converted to [Image] placeholders).
Write DOCX Files: Create new docx files with specified content, using double line breaks for paragraphs and [Table] tags with | separators for tables.
Edit Paragraphs: Replace specific text within paragraphs while preserving formatting.
Insert Paragraphs: Add new paragraphs at specified positions (using 0-based index) or at the end of a file.
Works with Absolute Paths: Operations require absolute paths to target files.
Allows reading, writing, and editing Microsoft Word (docx) files, including parsing tables and images, making text replacements in specific paragraphs, and inserting new paragraphs at specified positions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server Officeread the quarterly report at /Users/alice/Documents/report.docx"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server Office
A Model Context Protocol (MCP) server providing tools to read/write Microsoft Word (docx) files.
Installing via Smithery
To install Server Office for Claude Desktop automatically via Smithery :
npx -y @smithery/cli install @famano/mcp-server-office --client claudeUsage
Install with pip:
pip install mcp-server-officeThen, start the MCP server:
mcp-server-officeOr using uv, just:
uvx mcp-server-officeAvailable Tools
read_docx: Read complete contents of a docx file including tables and images.Input:
path(string) - Absolute path to the target fileNote: Images are converted to [Image] placeholders, and track changes are not shown
write_docx: Create a new docx file with given content.Input:
path(string) - Absolute path to target filecontent(string) - Content to write to the file
Note: Use double line breaks for new paragraphs, and [Table] tag with | separators for tables
edit_docx_paragraph: Make text replacements in specified paragraphs of a docx file.Input:
path(string) - Absolute path to file to editedits(array) - List of dictionaries containing search/replace text and paragraph indexparagraph_index(number) - 0-based index of the paragraph to editsearch(string) - Text to find within the specified paragraphreplace(string) - Text to replace with
Note: Each search string must match exactly once within the specified paragraph
edit_docx_insert: Insert new paragraphs into a docx file.Input:
path(string) - Absolute path to file to editinserts(array) - List of dictionaries containing text and optional paragraph indextext(string) - Text to insert as a new paragraphparagraph_index(number, optional) - 0-based index of the paragraph before which to insert. If not specified, insert at the end.
Related MCP server: DOCX MCP Server
Requirements
Python >= 3.12
Dependencies:
mcp[cli] >= 1.2.0
python-docx >= 1.1.2
MCP Server Office (Japanese)
A Model Context Protocol (MCP) server that provides reading and writing Microsoft Word (docx) files.
Installation by Smithery
To automatically install Server Office on Claude Desktop via Smithery :
npx -y @smithery/cli install @famano/mcp-server-office --client claudeHow to use
Install using pip:
pip install mcp-server-officeStart the MCP server:
mcp-server-officeOr, using uv:
uvx mcp-server-officeAvailable Tools
read_docx: Reads the complete content of a docx file, including tables and images.Input:
path(string) - absolute path of the target fileNote: Images are converted to a placeholder called [Image] and revision history is not displayed.
write_docx: Creates a new docx file with the specified content.input:
path(string) - The absolute path of the file to create.content(string) - the content to write to the file
Note: Paragraphs are separated by two line breaks, tables use the [Table] tag and | separator
edit_docx_paragraph: Replaces the text of a specified paragraph in a docx file.input:
path(string) - The absolute path of the file to edit.edits(array) - List of dictionaries containing search/replace text and paragraph indexesparagraph_index(number) – the 0-based index of the paragraph to edit.search(string) – The text to search for in the specified paragraph.replace(string) – The replacement text.
Note: Each search string must match exactly once in a given paragraph.
edit_docx_insert: Inserts a new paragraph into a docx file.input:
path(string) - The absolute path of the file to edit.inserts(array) - A list of dictionaries containing the text and optional paragraph indexes.text(string) – the text to insert as a new paragraphparagraph_index(number, optional) - 0-based index of the paragraph to insert at. If not specified it will insert at the end.
Requirements
Python >= 3.12
Dependent packages:
mcp[cli] >= 1.2.0
python-docx >= 1.1.2
Available Tools
4 toolsedit_docx_insertA
Insert new paragraphs into a docx file. Accepts a list of inserts with text and optional paragraph index. Each insert creates a new paragraph at the specified position. If paragraph_index is not specified, the paragraph is added at the end. When multiple inserts target the same paragraph_index, they are inserted in order. Returns a git-style diff showing the changes made.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to file to edit. It should be under your current working directory. | |
| inserts | Yes | Sequence of paragraphs to insert. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: the mutation nature ('Insert new paragraphs'), insertion logic (default to end, ordering for same index), and output format ('Returns a git-style diff showing the changes made'). It doesn't cover error conditions or file system implications, but provides substantial operational context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is perfectly front-loaded with the core purpose in the first sentence, followed by operational details and output information. Every sentence adds essential value: insertion logic, default behavior, ordering rules, and return format. There's zero wasted text or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations and no output schema, the description does an excellent job covering purpose, behavior, and output format. The main gap is lack of error handling or permission requirements information, but given the tool's moderate complexity and the description's coverage of core functionality, it's substantially complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents both parameters and their nested properties. The description adds some semantic context about paragraph_index behavior ('0-based index', 'inserted in order' for same index), but doesn't provide significant additional meaning beyond what's in the schema descriptions. This meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Insert new paragraphs'), target resource ('into a docx file'), and distinguishes from siblings by focusing on insertion rather than editing existing paragraphs (edit_docx_paragraph), reading (read_docx), or full file writing (write_docx). The verb+resource combination is precise and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context about when to use this tool (for inserting paragraphs with optional positioning) and implicitly distinguishes it from siblings by its specific function. However, it doesn't explicitly state when NOT to use it or name alternative tools for different scenarios, which prevents a perfect score.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
edit_docx_paragraphA
Make text replacements in specified paragraphs of a docx file. Accepts a list of edits with paragraph index and search/replace pairs. Each edit operates on a single paragraph and preserves the formatting of the first run. Returns a git-style diff showing the changes made. Only works within allowed directories.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to file to edit. It should be under your current working directory. | |
| edits | Yes | Sequence of edits to apply to specific paragraphs. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden and does well at disclosing key behavioral traits: it specifies the operation preserves formatting of the first run, returns a git-style diff, and has directory restrictions. However, it doesn't mention error handling, performance characteristics, or whether the operation is atomic/reversible.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured in three sentences: purpose statement, operational details, and constraints. Every sentence earns its place by providing essential information without redundancy. The most important information (what the tool does) is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations and no output schema, the description does reasonably well by explaining the operation, formatting behavior, and constraints. However, it doesn't describe the return format ('git-style diff') in detail or mention error conditions. Given the complexity of paragraph-level editing, more behavioral context would be beneficial.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the baseline is 3. The description adds minimal value beyond the schema - it mentions 'list of edits with paragraph index and search/replace pairs' which is already fully documented in the schema. No additional parameter semantics or usage nuances are provided beyond what's in the structured fields.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Make text replacements'), target resource ('specified paragraphs of a docx file'), and scope ('preserves formatting of the first run'). It distinguishes from siblings by focusing on paragraph-level text replacement rather than insertion (edit_docx_insert), reading (read_docx), or full-file writing (write_docx).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context about when to use this tool ('Only works within allowed directories'), but doesn't explicitly state when to choose alternatives like edit_docx_insert for insertion operations or write_docx for full-file writing. The directory restriction is helpful, but sibling differentiation is implied rather than explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_docxA
Read complete contents of a docx file including tables and images.Use this tool when you want to read file endswith '.docx'.Paragraphs are separated with two line breaks.This tool convert images into placeholder [Image].'--- Paragraph [number] ---' is indicator of each paragraph.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to target file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden and effectively discloses key behavioral traits: it reads complete contents, handles tables and images, converts images to placeholders, uses specific paragraph separators, and includes paragraph indicators. It doesn't mention error handling or performance aspects, but covers core functionality well.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized with four sentences that each add value: stating the tool's purpose, usage context, output format details, and paragraph indicators. It's front-loaded with the core functionality but could be slightly more streamlined by combining related formatting details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (reading structured documents), no annotations, no output schema, and 100% schema coverage, the description provides good contextual completeness by explaining what content is read, how images are handled, and paragraph formatting. It could benefit from mentioning error cases or return structure, but covers essential usage well.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100% (the 'path' parameter is documented as 'Absolute path to target file'), so the baseline is 3. The description adds no additional parameter-specific information beyond what the schema provides, maintaining this adequate baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Read complete contents'), resource ('docx file'), and scope ('including tables and images'), distinguishing it from sibling tools like edit_docx_insert or write_docx that modify rather than read files.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It provides explicit guidance on when to use this tool ('when you want to read file endswith .docx'), distinguishing it from alternatives by focusing on reading rather than editing or writing operations, though it doesn't explicitly name sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
write_docxA
Create a new docx file with given content.Editing exisiting docx file with this tool is not recomended.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to target file. It should be under your current working directory. | |
| content | Yes | Content to write to the file. Two line breaks in content represent new paragraph.Table should starts with [Table], and separated with '|'.Escape line break when you input multiple lines. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It correctly identifies this as a creation/write operation and warns against using it for editing, but doesn't mention important behavioral aspects like file overwriting behavior, permissions required, error conditions, or what happens if the path doesn't exist. The description adds some value but leaves significant gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately concise with two sentences that each serve a clear purpose: the first states the core functionality, the second provides important usage guidance. There's no wasted verbiage, though the typo ('exisiting') slightly detracts from professionalism.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a file creation tool with no annotations and no output schema, the description provides basic purpose and usage guidance but lacks important context about what the tool returns, error handling, file system implications, or creation confirmation. The schema covers parameters well, but the overall tool behavior remains under-specified.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the schema already documents both parameters thoroughly. The description doesn't add any meaningful parameter semantics beyond what's in the schema - it mentions 'given content' but doesn't elaborate on the content parameter's formatting requirements beyond what the schema already specifies about tables and line breaks.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Create a new docx file') and resource ('with given content'), and explicitly distinguishes it from sibling tools by noting that editing existing files is not recommended. This provides clear differentiation from edit_docx_insert, edit_docx_paragraph, and read_docx.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit guidance on when NOT to use this tool ('Editing existing docx file with this tool is not recommended'), which clearly distinguishes it from the edit_* sibling tools. This gives the agent clear direction about appropriate use cases versus alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
v1.0.0- Added
edit_docx_insert - Added
edit_docx_paragraph - Added
read_docx - Added
write_docx
TDQS
The tools are mostly distinct: read_docx for reading, write_docx for creation, and two edit tools for modifications. However, edit_docx_insert and edit_docx_paragraph could be confused as both handle docx editing with paragraph indices, though their specific purposes (inserting vs. replacing text) are clarified in descriptions.
All tool names follow a consistent verb_noun pattern with underscores, using clear verbs like read, write, and edit. The naming is predictable and uniform across all four tools, making them easy to distinguish and use.
With 4 tools, this server is well-scoped for basic docx file operations, covering reading, writing, and editing. Each tool has a clear purpose, and the count is appropriate for the domain without being too sparse or bloated.
The tool set provides good coverage for docx file handling, including read, write, and edit functions. A minor gap exists in editing tables or images, as the tools focus on text paragraphs, but core workflows are adequately supported for typical document tasks.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
The Needle MCP server enables semantic search on documents stored in files like PDFs, DOCX, and XLSX by connecting AI applications to external data sources. It provides capabilities to create and manage document collections, perform natural language searches on stored content, and retrieve relevant information without requiring exact keyword matches.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseCqualityFmaintenanceA Model Context Protocol server that enables AI assistants to create, read, edit, and format Microsoft Word documents through standardized tools and resources.6542,106MIT
- FlicenseAqualityDmaintenanceA comprehensive Model Context Protocol server that processes Microsoft Word documents with full formatting support, enabling text extraction, HTML/Markdown conversion, structure analysis, and image extraction.52-
- -licenseNot gradedqualityNot gradedmaintenanceA Python server implementing Model Context Protocol for advanced Microsoft Word document manipulation, enabling programmatic automation of complex document processing tasks.-
- AlicenseBqualityCmaintenanceAn MCP server for reading, editing, and validating Microsoft Word documents with specialized support for track changes, comments, and footnotes. It enables structural auditing, heading extraction, and precise OOXML-level document manipulation through natural language tools.10043MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/famano/mcp-server-office'
If you have feedback or need assistance with the MCP directory API, please join our Discord server