Create and edit real Word documents (filesystem or SharePoint): typed change plans, tracked changes
MCPpedia last refreshed this data
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-ilia-sokolov-officeagent": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
OfficeAgent.NET translates an AI agent’s intent into controlled changes to Microsoft Word documents. The agent proposes a typed edit plan; the library validates and applies it while preserving document features such as styles and comments. Edits can be recorded as tracked changes for human review, while structured document operations can reduce token use compared with processing entire files.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in writing
This is an MCP server that allows you to directly download transcripts of YouTube videos.
Scrape, crawl, and map websites to Markdown or JSON via local CLI.
Model Context Protocol (MCP) Server to connect your AI with any MediaWiki
【Star-crossed coders unite!⭐️】Model Context Protocol (MCP) server implementation providing Google News search capabilities via SerpAPI, with automatic news categorization and multi-language support.
MCP Security Weekly
Get CVE alerts and security updates for io.github.ilia-sokolov/officeagent and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
OfficeAgent.NET translates an AI agent’s intent into controlled changes to Microsoft Word documents. The agent proposes a typed edit plan; the library validates and applies it while preserving document features such as styles and comments. Edits can be recorded as tracked changes for human review, while structured document operations can reduce token use compared with processing entire files.

A .docx file is a package of related XML parts. A small text change can affect
runs, styles, numbering, comments, content controls, or revision markup.
OfficeAgent.NET handles that document-specific work. The model works with
structured document data and JSON-serialisable operations such as "replace this
clause as a tracked change" or "add a row to this table."
The same engine is available in three forms:
Microsoft.Extensions.AI;It currently supports Word .docx files. Excel and PowerPoint modules are not implemented. See
Scope and limitations before choosing it for a
workflow that depends on Word's layout or calculation engine.
| I want to... | Start here |
|---|---|
| Add Word editing to a local MCP client | Run the MCP server over stdio |
| Connect Codex, Claude Code, Copilot Studio, or Microsoft 365 Copilot | Deployment and client setup |
| Use OfficeAgent from C# | Getting started |
| Add tools to a Microsoft Agent Framework agent | Agent integration |
| Host the MCP server or use SharePoint | MCP server and document providers |
| Contribute | Contributing |
Install the server as a .NET tool:
dotnet tool install --global OfficeAgent.Mcp
The following examples register it with Claude Code and limit its filesystem connection to one directory.
macOS/Linux:
claude mcp add officeagent \
--env OfficeAgent__FileSystemConnections__0__ConnectionId=documents \
--env OfficeAgent__FileSystemConnections__0__RootPath=/absolute/path/to/documents \
-- officeagent-mcp --stdio
PowerShell:
claude mcp add officeagent `
--env OfficeAgent__FileSystemConnections__0__ConnectionId=documents `
--env OfficeAgent__FileSystemConnections__0__RootPath=C:\officeagent-documents `
-- officeagent-mcp --stdio
Run claude mcp list to confirm that officeagent is connected. Then ask the
client to edit a file in the configured directory, for example:
Change the payment terms in contract.docx from 30 to 45 days.
The server exposes tools to register, inspect, search, preview, and apply edits.
Text replacements are tracked changes by default. With the filesystem provider,
a successful apply normally writes a sibling such as contract.v2.docx, keeps
contract.docx unchanged, and returns the new document id for follow-up edits.
OfficeAgent does not send the complete .docx package through the model, but
the MCP client and model do receive document text and structure returned by