Skip to main content
Glama
documentero

documentero

Official
by documentero

@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

Tool

Description

list_templates

Templates with kind (word|excel), defaultFormat, allowedFormats

get_template_fields

JSON Schema (primary, enriched value rules) + field definitions + allowed formats

generate_document

Generate Word/PDF or Excel document for given template and fields; signed URL (~1h) by default, or base64 if embed: true. format optional (template default).

Related MCP server: Document Generator MCP

Setup

  1. Copy your API key from Documentero → Account settings.

  2. Add the MCP server to your client config.

Cursor / Claude Desktop (npx)

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

Local development

git clone https://github.com/documentero/documentero-mcp.git
cd documentero-mcp
npm install
npm run build
{
  "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

Variable

Required

Default

Description

DOCUMENTERO_API_KEY

yes

Company API key (Account settings)

DOCUMENTERO_BASE_URL

no

https://app.documentero.com/api

Cloud 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

npm run build
DOCUMENTERO_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

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Document API for AI-native software: render PDFs, e-sign, PAdES-seal, and verify.

  • Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.

  • Generate PDF/DOCX/XLSX/PPTX from templates+JSON. Convert Office/HTML/MD to PDF. Universal templating

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/documentero/documentero-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server