🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@documentero/mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@documentero/mcp

Official Documentero MCP server — list templates, get field schemas, and generate documents for AI agents (Cursor, Claude, etc.)

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@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

  • Copy your API key from Documentero → Account settings.
  • 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

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

Typical agent flow

  • list_templates → pick a templateId (respect kind / allowedFormats)
  • get_template_fields → shape data from jsonSchema (use fieldDefinitions for extra context like HTML/Markdown/image/link/QR rules)
  • 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

Keywords

documentero

FAQs

Package last updated on 24 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts