McpStamp Word Documents

io.github.theluckystrike由 GitHub 帳號 theluckystrike 發布v0.23.0更新於 Nov 3, 2026

從章節或markdown建立Word .docx檔案,填充模板,並從.docx中讀取文字。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

Create Word .docx files from sections or markdown, fill templates, and read text from a .docx.

已驗證Streamable HTTP可網頁執行效率與工作流檔案與儲存

概覽

McpStamp Word Documents 的託管 MCP 服務(mcp.zovo.one);無需登入;Streamable HTTP;14 個工具。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

端點
mcp.zovo.one
最近檢查

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 McpStamp Word Documents,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.theluckystrike%2Fdocx-document-generator-proposal-contract-markdown/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "mcpstamp-word-documents": {
      "type": "http",
      "url": "https://mcp.zovo.one/mcp/docx"
    }
  }
}

README

Create .docx Word documents from Claude

Say "write a proposal for Beta Corp, checkout rebuild, 4,500 EUR, three phases" and get a real .docx you can send. This MCP server writes Word documents from chat, proposals, quotes, service agreements, statements of work and letters, with your letterhead, headings, bullet and numbered lists and tables. It also turns markdown into .docx, reads an existing .docx back as text and outline, and fills {{placeholders}} in a template you already use, keeping every style, table, header and image of the original. Everything runs locally: no upload, no account, no native dependency.

In the official MCP Registry (io.github.theluckystrike/docx-document-generator-proposal-contract-markdown).

[docx demo]

Real Word documents from chat, proposals, contracts and letters, without a template site or an office subscription.

60-second install

npm publish for @theluckystrike/mcp-docx is pending. Until then, the .mcpb one-click bundle or a clone+build is the working path, both are verified below.

One-click (.mcpb): download docx.mcpb from the latest release and double-click it in Claude Desktop: https://github.com/theluckystrike/mcp-servers/releases/latest

(claude_desktop_config.json):

json
{  "mcpServers": {    "docx": {      "command": "npx",      "args": ["-y", "@theluckystrike/mcp-docx"]    }  }}

Claude Code:

sh
claude mcp add docx -- npx -y @theluckystrike/mcp-docx

(.cursor/mcp.json):

json
{  "mcpServers": {    "docx": {      "command": "npx",      "args": ["-y", "@theluckystrike/mcp-docx"]    }  }}

The npx form above starts working the moment the package is published. Until then, use the .mcpb bundle above, or build from source with exactly these three commands:

sh
git clone https://github.com/theluckystrike/mcp-servers.git && cd mcp-serversnpm installnpm run build -w packages/mcp-license -w servers/docx

Then point your client's command at node with one arg: the absolute path to servers/docx/dist/index.js.

To run in Pro mode set MCP_LICENSE_KEY in the same config block, or call license_activate once with your key.

Tools

ToolWhat it does
business_setStore the sender profile printed on every document: name, address, email, VAT id, IBAN, bank, logo, letterhead colour, default currency, tax rate, payment terms. Same field set as mcp-invoice, so one profile serves both
doc_createWrite a .docx from sections: headings, paragraphs, bullet lists, numbered lists and tables. Layouts: plain, letter (sender block, date, addressee) and proposal (letterhead band, cover title)
doc_from_markdownMarkdown to .docx: ATX headings, paragraphs, bullet and numbered lists (indentation kept, up to Word's nine levels), GFM pipe tables, fenced code blocks as monospace, and **bold** / *italic* / `code` inline
doc_readExtract text, headings with levels, list items and tables from any existing .docx, in document order. format: "json" returns the block structure
doc_to_htmlConvert a .docx to semantic HTML with a print stylesheet. This is the PDF route -- see the note below
doc_fill_templateReplace {{placeholders}} in a .docx and write a new file, keeping every style, table, header, footer and image. Called with no values, it lists the placeholders the template contains
proposal_createA client-ready proposal: summary, scope, deliverables, timeline table, price, terms, validity and signature block, with a reference number that is never reused
proposal_updateRewrite an existing proposal in place from its reference: only the fields you pass change, the rest comes from the structured data stored with the document, and the file and reference number stay the same
contract_createA plain freelance service agreement skeleton: parties, services, term, fee, IP, confidentiality, contractor status, termination, liability, governing law. A template with labelled placeholders for a lawyer, not legal advice
license_statusShow free or Pro mode
license_activateActivate a Pro key (verified offline)

Resource: docs://recent returns the last 25 documents written, newest first, with kind, client, reference and path. Prompt: write_proposal_from_hours turns tracked hours (or an invoice_summary from mcp-time-tracker) into a priced proposal.

There is no doc_to_pdf, and that is deliberate

Every pure-JavaScript path from Word to PDF needs either a native dependency (LibreOffice, a Chromium binary, a C++ rendering library) or a cloud API. This collection ships neither, so npx works on any machine with Node and nothing else. doc_to_html writes semantic HTML with a print stylesheet instead: open it, print to PDF, and the result is what you would have got. The tool description and the tool's own answer say the same thing, so the model does not promise a PDF it cannot produce.

What you can say

You sayTool
"Set up my letterhead: Acme Consulting, 1 Road Warsaw, VAT PL1234567890."business_set
"Write a proposal for Beta Corp: checkout rebuild, 4,500 EUR, 50/50, three phases."proposal_create
"Draft a service agreement with Beta Corp, 3,000 EUR monthly, starting October."contract_create
"Turn these meeting notes into a Word document."doc_from_markdown
"Write a letter to Beta Corp with an agenda for Tuesday."doc_create with style: "letter"
"What does this proposal.docx actually say?"doc_read
"Fill my NDA template with this client's details."doc_fill_template
"Give me a printable version of that document."doc_to_html

Worked example

You: Write a proposal for Beta Corp. Checkout rebuild, 4,500 EUR, 50% onsignature 50% on delivery, three phases: discovery 1 week, build 3 weeks,launch 1 week. Valid until the end of the year.
  proposal_create {    client: "Beta Corp", project_title: "Checkout rebuild",    summary: "Beta Corp loses orders at checkout. This project rebuilds it.",    scope: ["Audit the current funnel", "Rebuild the checkout", "Ship and measure"],    deliverables: ["New checkout in production", "A one-page handover"],    timeline: [{phase: "Discovery", duration: "1 week"},               {phase: "Build", duration: "3 weeks"},               {phase: "Launch", duration: "1 week"}],    price: {amount: 4500, currency: "EUR", terms: "50% on signature, 50% on delivery"},    valid_until: "2026-12-31"  }  -> PROP-2026-0001, EUR 4,500.00  -> ~/.local/share/mcp-servers/docx/documents/checkout-rebuild.docx

The file opens in Word, Pages, LibreOffice and Google Docs: letterhead, cover title, "Prepared for Beta Corp", Summary, Scope of work, Deliverables, a Timeline table, an Investment table with EUR 4,500.00, the payment terms, and a signature block for both parties. Every amount carries its currency code, no bare numbers.

Free vs Pro

FreePro
doc_create, doc_from_markdown, doc_read, doc_to_htmlUnlimitedUnlimited
proposal_create, contract_create3 per calendar month, combinedUnlimited
doc_fill_templateTemplates with up to 10 placeholdersAny template
FooterCarries "Generated with mcp-docx by theluckystrike"No branding
Letterhead logo and colourDefault colour, no logoYour logo_path and brand_color
Tables, lists, letter and proposal layouts, reference numberingYesYes

Pro is a one-time $19, or $39 for every server in the collection, lifetime.

How the .docx is produced and read

Documents are written with docx, a pure-JavaScript OOXML writer, no native module, no headless browser, no office install.

Reading and template filling use no dependency at all. A .docx is a ZIP, so node:zlib opens it and a small WordprocessingML walk pulls out paragraphs, heading levels (from w:pStyle), list items and tables in document order. Numbered lists are told apart from bullets by resolving each paragraph's w:numId against word/numbering.xml, which is the only place that distinction is recorded, without it every numbered list reads back as bullets.

Template filling substitutes on the joined text of each paragraph, not per run. Word routinely breaks a placeholder you typed as {{client}} into three runs ({{cli, ent}}, ...) after an edit or a spell-check pass, and per-run replacement silently misses those, the document comes back with the placeholder still in it. The replaced text goes into the first run, keeping its formatting, and the remaining runs of that paragraph are blanked. Every other part of the package is copied byte-for-byte, so styles, images, headers, footers and section setup survive. A placeholder with no value is left in place and reported, never blanked.

Existing files are never overwritten

Every tool that writes a file (doc_create, doc_from_markdown, doc_to_html, doc_fill_template, proposal_create, contract_create) refuses an out_path that already exists and tells you so:

Error: /path/acme-proposal.docx already exists and nothing was written.Pass overwrite: true to replace it, or give a different out_path.

The path is reserved with an exclusive create, not an existence check, so two processes writing the same out_path at the same time cannot clobber each other: one wins, the other is refused and writes nothing.

When you do not pass an out_path, the file name is derived from the title, and a derived path never lands on an earlier document: a second proposal with the same title is written as ...-2.docx. To change a proposal you already sent, use proposal_update {reference} instead: it rewrites the same file from the stored structured data and keeps the reference number.

The check runs before anything is built or written, so a refused call leaves the disk untouched and burns no reference number. Pass overwrite: true when replacing the file is what you want.

Characters Word cannot carry

XML 1.0 allows TAB, LF and CR but no other control code. Every string that reaches word/document.xml is cleaned first: control codes and unpaired surrogates are removed, literal \n escapes become real paragraph breaks, and stray whitespace collapses. When something was removed the tool says so in its answer instead of handing you a file Word would offer to repair.

How it stores data

The business profile, the document register and the reference counter live under ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/docx/ as plain JSON, plus a documents/ subfolder holding the generated files when you do not pass out_path. Every mutating call runs inside an advisory lock on .../docx/.lock, so two clients on one data directory cannot allocate the same reference number or lose a record. Saves go to a temporary file and are renamed into place.

If one of those JSON files is unreadable or not valid JSON, it is never treated as "empty". The file is moved aside byte-for-byte as <name>.json.corrupt-<timestamp>, a <name>.json.corrupt marker is written, and every tool returns data file is corrupt; moved to ...; nothing was written until you restore a good copy and delete the marker.

Reference numbers are PROP-YYYY-NNNN for proposals and AGR-YYYY-NNNN for agreements. The counter is written before the record is stored, so a crash burns a number rather than reusing one, and existing numbers are scanned so a restored register can never hand back a reference that is already on a sent document.

Limits and honest caveats

  • No PDF output. Use doc_to_html and print. See the section above for why.
  • doc_read reads .docx only. Legacy .doc, .rtf and Pages files are refused with a message that says so.
  • doc_read extracts text structure: headings, paragraphs, lists and tables. It does not report fonts, colours, comments, tracked changes, footnotes or embedded images.
  • doc_fill_template keeps the first run's formatting for the whole paragraph it rewrites. A paragraph that mixes bold and regular text around a placeholder comes back in the first run's formatting.
  • contract_create writes a drafting skeleton with [BRACKETED PLACEHOLDERS] and says on the document itself that it is a template and not legal advice. Nothing here has been reviewed by a lawyer in any jurisdiction.
  • The free-tier limit of 3 counts proposals and contracts together, per calendar month, and resets on the 1st. Everything else stays unlimited when it closes.

Privacy

All data stays local. The server reads and writes files on your machine, stores its register under your data directory, and makes no network request of any kind, not for licensing (keys are verified offline), not for fonts, not for telemetry.

Pairs with

  • mcp-invoice, same business_set profile shape; the proposal you accepted becomes the invoice you send.
  • mcp-time-tracker, the write_proposal_from_hours prompt turns invoice_summary hours into a priced proposal.
  • mcp-expense-tracker, quote a project with its pass-through costs already counted.
  • office-suite, several servers behind one install, one config entry.

Troubleshooting

  • npx hangs or fails to find the package: npm publish for this package is pending. Use the .mcpb bundle or the clone-and-build path above until it lands.
  • "Wrote ... .docx" but Word will not open it: check the path is not inside a synced folder that was still uploading. The file is complete when the tool returns; nothing is written incrementally.
  • A placeholder did not get replaced: call doc_fill_template with no values to list what the template actually contains. Names are matched exactly, whitespace inside {{ }} is ignored, and the response names every key you passed that the template does not have.
  • The letterhead shows "Your business": run business_set once. Documents are never blocked by a missing profile; the response says the sender block is a placeholder.
  • No logo on the document: the logo is a Pro feature, and logo_path must exist and be a PNG, JPG or GIF.
  • Node version: requires Node >= 18. Check with node -v.

MIT licensed. Support: [email protected]

Built by theluckystrike.

One business profile for the whole suite

Your identity is stored once, at ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/profile/business.json, and every server in the suite reads it: the invoice issuer, the docx letterhead, the recurring issuer, expense-tracker's default VAT rate, time-tracker's and timezone's home zone, and the resume and contract letterheads. Set it once with business_set (invoice or docx) - you never repeat it anywhere else. An email address is only ever taken from that profile or from an explicit argument; when none is stored, documents show [add: email] and the tool says so rather than letting anyone improvise an address.

Frequently asked questions

Is there an MCP server for Word documents (.docx)?

Yes. The docx server at mcp.zovo.one creates .docx files from Claude: template-based documents, headings, tables and formatting, batch generation. Free tier, hosted endpoint or one-click .mcpb install.

How do I create a .docx from Claude?

Connect https://mcp.zovo.one/mcp/docx and describe the document - 'Create a proposal.docx with these three sections and a pricing table.' The file is written to your local storage directory.

Use these docs as an MCP server

Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:

來源:servers/docx/README.md,提交 6535b33

工具

14

business_set

Set your business details

Store the sender details printed on every proposal, contract and letter, plus the currency, VAT, terms and prefix defaults. It writes the SAME shared profile as the invoice server's business_set.

輸入參數vatbankibanname必填emailphonevat_idaddresstax_ratetimezonevat_ratelogo_path另有 5 個

doc_create

Create a Word document

Call this tool to write a real .docx file from structured sections. Returns the file path, the number of blocks written and the layout used. Free and unlimited.

輸入參數datestyletitle必填out_pathsections必填overwriterecipient

doc_from_markdown

Markdown to Word

Call this tool to turn markdown into a .docx, returning the file and a count of blocks by type. Headings, lists, GFM tables and code fences are honoured. Empty markdown is refused, and so is overwriting without the flag.

輸入參數styletitlemarkdown必填out_pathoverwrite

doc_read

Read a Word document

Call this tool to extract the text of an existing .docx. Returns an outline of the headings and the full text in document order, or the block structure. Free and unlimited.

輸入參數pathformatdocx_base64

doc_to_html

Word document to HTML

Call this tool to convert a .docx to semantic HTML you can open in a browser and print to PDF. Returns the path of the .html file. This is the supported PDF route; no PDF is rendered here. Free and unlimited.

輸入參數path必填out_pathoverwrite

doc_fill_template

Fill a Word template

Call this tool to replace {{placeholders}} in a .docx and write a new file, reporting what was filled, unfilled or ignored. Call it with no values to list them. Free: templates up to 10 placeholders.

輸入參數valuesout_pathoverwritedocx_base64template_path

proposal_create

Create a proposal

Call this tool to produce a client-ready .docx proposal from summary, scope, deliverables, timeline, price and terms. Returns the reference, the total and the file path. Free tier: 3 proposals or contracts per month.

輸入參數price必填scopeclient必填summaryout_pathtimelineoverwritevalid_untildeliverablesproject_title必填

proposal_update

Update a proposal

Rewrite an existing proposal in place from its reference. Only the fields you pass change; the rest comes from the data stored at creation. Returns the fields that changed and the file path.

輸入參數pricescopeclientsummarytimelinereference必填valid_untildeliverablesproject_title

contract_create

Create a service agreement

Call this tool to produce a freelance service agreement .docx. Returns the reference, the fee and the file path. It is a template skeleton for a lawyer to review, not legal advice. Free tier: 3 agreements per month.

輸入參數fee必填client必填clausesend_dateout_pathservices必填overwritestart_date必填governing_law

license_status

License status

Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.

無需輸入參數。

license_activate

Activate license

Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.

輸入參數key必填

doc_upload

Upload a .docx to work on

Send an existing Word document to this hosted endpoint. There is no filesystem here, so instead of a path you upload the file once with doc_upload and then pass its name as `path` to doc_read, doc_to_html and doc_fill_template. Give exactly one of docx_base64 or url. url: fetch a public file instead of pasting base64 (recommended above about 10 KB): a 13 KB base64 paste can take minutes to write out, while a url costs one line and the fetch happens here (10 second timeout, at most 3 redirects, public http(s) hosts only, 2 MB cap). Uploads are kept for your token between calls; doc_read and doc_fill_template also take docx_base64 directly; that file is stored under the name you give (default 'inline' / 'template') and can be removed with doc_delete_upload. Documents this server writes come back as a download link valid for one hour.

輸入參數urlname必填docx_base64

doc_files

List uploaded documents

List the documents uploaded for your token, with their sizes.

無需輸入參數。

doc_delete_upload

Delete an uploaded document

Delete one document uploaded for your token: name is the name it was uploaded under, without .docx. doc_files lists them. A name nothing is stored under is refused and nothing is deleted.

輸入參數name必填

版本歷史

4
  1. v0.23.0最新Nov 3, 2026
  2. v0.22.6Oct 14, 2026
  3. v0.22.0Sep 17, 2026
  4. v0.21.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分