# Word MCP Server (FsWordDsl) [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/Kookerella-Ltd/Kookerella.FsWordDsl  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/word-mcp-server-fsworddsl

## Description
Word tools for AI agents: read/write, decompile to F#/C#/XML/JSON, or build from XML/JSON.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What Word MCP Server (FsWordDsl) MCP server does

Word MCP Server (FsWordDsl) MCP server exposes Word document operations through the `Kookerella.FsWordDsl.Mcp` project. Its underlying model represents WordprocessingML documents as structured data, including paragraphs, runs, tables, sections, styles, numbering, hyperlinks, images, comments, footnotes, content controls, document properties, revisions, and document protection.

The server supports both `.docx` and `.docm` inputs. Macro-enabled documents can retain a raw `vbaProject.bin` payload in the document model. The library also provides a C# wrapper over the F# core for applications that prefer immutable C# records and builders.

## How it works

The F# DSL is a plain data model made from records and discriminated unions. A writer converts that model into OOXML through the DocumentFormat.OpenXml SDK, while a reader performs the reverse conversion from an existing Word file into the same model. This two-way design supports document inspection and round-trip transformations, not only document creation.

Word MCP Server (FsWordDsl) MCP server exposes these capabilities as tools that an MCP-compatible agent can call. The repository describes the tool surface as covering read, write, and decompilation operations. The broader library can render a document model as a self-contained F# script, or translate it to and from XML and JSON trees. The C# wrapper includes an equivalent C# source generator.

## Setup and configuration

The MCP implementation is distributed as the `fsworddsl-mcp` .NET tool. Its program starts an MCP server over standard input and output when invoked in server mode. The same executable also provides `convert` and `build` command-line modes for workflows that do not use an MCP client.

A self-contained build is available from the project's GitHub Releases page for Windows, Linux, and macOS, with x64 and ARM64 variants. These packages are intended for machines without a separate .NET installation.

## Tools and capabilities

Word MCP Server (FsWordDsl) MCP server is suited to workflows that need to:

- Read existing `.docx` or `.docm` files into a structured document representation.
- Write document models back to Word files.
- Decompile Word documents into F# or C# source representations.
- Convert document data to or from XML.
- Convert document data to or from JSON.
- Build documents from XML or JSON input.

The model covers common document structure and formatting, including tables, lists, styles, page setup, inline images, headers and footers, bookmarks, comments, hyperlinks, content controls, tracked changes, footnotes, endnotes, and metadata. Exact feature coverage is defined by the project's `MAPPING.md`; some WordprocessingML features are approximated or not modeled.

## Limitations and notes

Round-tripping is subject to the mapping implemented by the library. The README specifically notes that some features are approximate or not yet modeled, so documents using unsupported WordprocessingML constructs may not reproduce every original detail.

JSON schema validation is described as a test-suite concern rather than a public API. XML has a public schema-loading function for validation. The MCP server depends on the capabilities implemented by the underlying F# DSL and Open XML interpretation layers.

_Full upstream README: https://allmcps.com/mcp/word-mcp-server-fsworddsl/readme_

