Documentero

io.github.documentero由 GitHub 账号 documentero 发布v0.1.2更新于 Oct 24, 2026

List Documentero templates, inspect field schemas, and generate Word/PDF/Excel documents.

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

Documentero 的本地 MCP 服务器让助手列出文档模板、查看字段结构,并据此生成 Word、PDF 或 Excel 文档。

可以做什么
列出可用的 Documentero 模板及其类型和允许的输出格式,并查看模板的字段结构与字段定义,以便正确组织数据。按选定模板和字段值生成 Word/PDF 或 Excel 文档,默认返回有时效的签名下载链接,也可选择内嵌 base64。
适用场景
当助手需要基于已有的 Documentero 模板产出成品业务文档(如合同、发票或报告),而不是直接写原始文件时使用。适合 Cursor、Claude Desktop 等能运行本地 stdio 服务器的桌面客户端。
运行要求
通过 npx 从 npm 包 @documentero/mcp 在本地运行,需要 Node.js。必须在 DOCUMENTERO_API_KEY 环境变量中提供 Documentero 公司 API 密钥;DOCUMENTERO_BASE_URL 可选择性覆盖云 API 基础地址。需要能访问 Documentero 云 API 的网络。
安装前请注意
API 密钥属于机密,应只放在 MCP 环境变量中,不要写入工具参数。生成文档会把模板字段数据发送到 Documentero 云 API,并受其配额和速率限制约束。生成的文档通过约一小时有效的签名链接提供,应将这些链接视为敏感信息。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Documentero,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@documentero/mcp

Official MCP server for Documentero — list templates, inspect field schemas, and generate Word/PDF/Excel documents from AI agents (Cursor, Claude Desktop, and more).

Tools

ToolDescription
list_templatesTemplates with kind (word|excel), defaultFormat, allowedFormats
get_template_fieldsJSON Schema (primary, enriched value rules) + field definitions + allowed formats
generate_documentGenerate Word/PDF or Excel document for given template and fields; signed URL (~1h) by default, or base64 if embed: true. format optional (template default).

Setup

  1. Copy your API key from Documentero → Account settings.
  2. Add the MCP server to your client config.

Cursor / Claude Desktop (npx)

json
{  "mcpServers": {    "documentero": {      "command": "npx",      "args": ["-y", "@documentero/mcp"],      "env": {        "DOCUMENTERO_API_KEY": "your-api-key"      }    }  }}

Local development

bash
git clone https://github.com/documentero/documentero-mcp.gitcd documentero-mcpnpm installnpm run build
json
{  "mcpServers": {    "documentero": {      "command": "node",      "args": ["/absolute/path/to/documentero-mcp/dist/index.js"],      "env": {        "DOCUMENTERO_API_KEY": "your-api-key",        "DOCUMENTERO_BASE_URL": "https://app.documentero.com/api"      }    }  }}

Use https://documentero-dev.web.app/api for the development environment.

Environment

VariableRequiredDefaultDescription
DOCUMENTERO_API_KEYyes—Company API key (Account settings)
DOCUMENTERO_BASE_URLnohttps://app.documentero.com/apiCloud API base URL

Typical agent flow

  1. list_templates → pick a templateId (respect kind / allowedFormats)
  2. get_template_fields → shape data from jsonSchema (use fieldDefinitions for extra context like HTML/Markdown/image/link/QR rules)
  3. generate_document → download URL (or embedded base64)

Smoke test

bash
npm run buildDOCUMENTERO_API_KEY=your-key npm run smoke

Notes

  • Thin client of the public Cloud API (/api/templates, /api/meta, /api/generate). Quotas and rate limits are enforced by Documentero as usual.
  • Do not put the API key in tool arguments — keep it in MCP env only.
  • Word templates support output format: docx / pdf; Excel templates support output format: xlsx only.
  • Remote Streamable HTTP hosting (https://mcp.documentero.com/mcp) is planned; this release is stdio only.

License

MIT © Documentero

来源:README.md,提交 4062b12

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分