Word MCP Server (FsWordDsl) logo

Word MCP Server (FsWordDsl)

Read, write, decompile, and build Word documents from F#, C#, XML, or JSON through MCP tools.

Install Word MCP Server (FsWordDsl)

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Word MCP Server (FsWordDsl), and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Word MCP Server (FsWordDsl) MCP server lets compatible AI agents read and write .docx or .docm files through MCP tools. It uses a typed F# document model interpreted through the DocumentFormat.OpenXml SDK, and can decompile existing documents into F#, C#, XML, or JSON representations. Reach for it when an agent needs to inspect, transform, generate, or round-trip Word documents rather than only create new files.

Use cases

  • Read existing Word documents into structured data
  • Generate Word files from XML or JSON
  • Decompile documents into F# or C# source
  • Round-trip .docx and .docm files
  • Transform Word content through an MCP-compatible agent

Key features

  • Read and write .docx and .docm files
  • Decompile documents to F# or C#
  • Convert documents to and from XML
  • Convert documents to and from JSON
  • Run as an MCP stdio server or CLI
  • Support structured Word document features

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 83d

How Word MCP Server (FsWordDsl) works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Word MCP Server (FsWordDsl)

Word MCP Server (FsWordDsl) is an MCP server that connects AI agents to Word .docx and .docm files through the DocumentFormat.OpenXml SDK and exposes tools to read, write, decompile, and build documents from XML or JSON. It supports round-trip conversion through a typed F# document model.

Install it as the `fsworddsl-mcp` .NET tool, or download a self-contained release build. Releases are provided for Windows, Linux, and macOS on x64 and ARM64, so a separate .NET installation is not required for those packages.

Yes, it can decompile Word documents into readable source representations. The library can generate self-contained F# scripts, and the C# wrapper provides C# source generation; the MCP surface exposes the repository's read and decompilation capabilities.

Yes, it can build documents from XML or JSON representations. The library provides `Xml.toDocument` and `Json.toDocument` conversions, while the executable also offers a `build` command for non-MCP workflows.

It starts an MCP server over standard input and output, so configuration depends on whether the chosen MCP client supports standard MCP stdio servers.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWord MCP Server (FsWordDsl) AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/word-mcp-server-fsworddsl?style=directory)](https://allmcps.com/mcp/word-mcp-server-fsworddsl)
HTML Embed
<a href="https://allmcps.com/mcp/word-mcp-server-fsworddsl"><img src="https://allmcps.com/api/badge/word-mcp-server-fsworddsl?style=directory" alt="Word MCP Server (FsWordDsl) on AllMCPs" /></a>