
docmcp — Word & Excel files
io.github.Adirdavi由 GitHub 账号 Adirdavi 发布v0.2.0更新于 Oct 24, 2026
Real .docx and .xlsx files from structured data, with automatic Hebrew/Arabic RTL.
概览
一个托管式 MCP 服务器,可将结构化数据生成真正的 Word(.docx)和 Excel(.xlsx)文件,并自动支持希伯来语和阿拉伯语的从右到左排版。
- 可以做什么
- 创建 Word 文档,支持标题、段落、项目符号或编号列表、表格、分页符,以及希伯来语和阿拉伯语的从右到左排版。创建 Excel 工作簿,支持多工作表、加粗并冻结的表头、自动筛选、列宽设置,并保留数值格式。查询本月已用调用次数与配额。生成的文件以短期下载链接返回,而非内联数据。
- 适用场景
- 当助手需要交付真正的 Word 或 Excel 文件而不是 Markdown 时使用,尤其适合报告、表格或希伯来语、阿拉伯语文档。也适合希望直接使用托管端点、不在本地运行任何程序的用户。
- 运行要求
- 需要远程 HTTP 端点,无需本地运行时。必须在 Authorization 请求头中提供 Bearer API 密钥。免费密钥每月可生成 10 份文档,另有付费方案。托管服务空闲时会休眠,唤醒可能需要数十秒。
安装
在 SourceWeft 中
- 打开 控制台中的 docmcp — Word & Excel files,将其添加到工作区。
- 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.Adirdavi%2Fdocmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"docmcp-word-excel-files": {
"type": "http",
"url": "https://docmcp.onrender.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
docmcp
Live: https://docmcp.onrender.com — free key at POST /keys/free, 10 docs/month.
Paid: $10/mo for 100, $30/mo for 500. Quotas live in PLANS in src/store.ts.
A paid MCP server that turns structured data into real .docx and .xlsx files.
Agents are good at prose and bad at file formats — they emit Markdown and hope. This
gives them a tool that returns a Word or Excel file with actual headings, tables,
bold headers, frozen panes and RTL support.
Returns a short-lived download URL rather than a base64 blob: a 200KB docx inlined into a tool result costs the caller ~70k tokens.
Two modes, one codebase:
--stdio— local client (Claude Desktop / Code). No auth, no quota, no expiry; files are written toOUT_DIRand the tool returns the path.- default — hosted HTTP at
/mcp. API key required, quota metered, files served as URLs that expire after 24h. This is the product.
Local
Already registered in Claude Desktop as docmcp (output → ~/Documents/docmcp).
To register elsewhere:
Absolute paths matter — the client launches with a minimal PATH.
Hosted
Tools
Env
Plans and quotas live in PLANS in src/store.ts.
Deploy
Any Docker host with a Postgres URL. There is no persistent disk requirement: generated files live on the container filesystem and expire in 24h anyway, so a restart only breaks links that were about to die. Everything that must survive — keys, quotas, the IP salt — is in Postgres.
Currently Render (web service, free tier) + Neon (Postgres, free, no expiry). Deliberately two providers: state lives somewhere that isn't tied to whoever is hosting the container this month. Render builds the Dockerfile straight from GitHub.
BASE_URL must be the public URL — it is baked into every download link handed to a
client, so getting it wrong produces links to a host that does not exist. You only
learn the URL after the first deploy, so set it then and redeploy.
Render's free tier sleeps after 15 minutes idle and takes 30–50s to wake. That is the cost of not having a card on file; fix it by upgrading once a customer pays.
Billing flow
/buy/starter → Stripe Checkout → webhook checkout.session.completed → key issued →
customer lands on /success and sees the key there. No email provider needed.
customer.subscription.deleted deactivates it. There are no user accounts: the key
is the account.
Test
Covers both generators (including a ragged table row and a / in a sheet name — both
things an LLM will send eventually), number preservation through an xlsx round-trip,
and that quota stops exactly at the plan limit.
Known gaps
- No PDF. Good PDF output needs headless Chrome or LibreOffice, which triples the deploy. Word and Excel are the actual gap — everyone already ships Markdown→PDF. Add it when a paying user asks.
- A lost key cannot be recovered. It is shown once on
/success. Add email delivery or a "resend by email" route when the first customer asks. - Files are on the container filesystem. Deliberate — see Deploy. Move to object storage only if 24h links breaking on restart ever actually bothers someone.
- Free keys are rate limited, not abuse-proof. One per IP per 24h plus a global
daily ceiling (
FREE_KEYS_PER_DAY, default 200). Rotating VPNs still defeats it — nothing stops that, and no free tier anywhere survives a determined attacker. The limits exist to bound the worst case, not to eliminate it. /adminneedsADMIN_TOKEN. Unset, the route 404s, so an unconfigured deploy never exposes it. Visit/admin?token=….
来源:README.md,提交 b0e11da
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分