Documentero MCP server
✓ VerifiedAllows AI agents to list templates, inspect field schemas, and generate Word, PDF, or Excel documents.
Also known as documentero/documentero-mcp, documentero-mcp, @documentero/mcp
- Stars
- 1
- Tools
- 3
- Downloads, 30 days
- 135
- Latest version
- 0.1.2
- Last commit
- Jul 24, 2026
- License
- MIT
What is Documentero MCP?
Documentero allows AI agents to list templates, inspect field schemas, and generate Word, PDF, or Excel documents. It exposes 3 tools, such as list_templates, get_template_fields, generate_document.
Summary generated from the project's README
About Documentero MCP server
Documentero provides an MCP server that enables AI agents like Claude Desktop or Cursor to interact with the Documentero document generation platform. Developers can use this server to automate the creation of professional files by connecting their local AI clients to the Documentero Cloud API. The setup requires a DOCUMENTERO_API_KEY obtained from your account settings and operates via stdio.
The server exposes three specific tools to manage the document lifecycle. Users can call list_templates to see available options, get_template_fields to inspect JSON schemas and field definitions, and generate_document to produce the final file. It supports generating Word documents in docx or pdf formats, while Excel templates are limited to xlsx output. When a document is created, the tool provides a signed URL that lasts for approximately one hour or returns the file as a base64 string if the embed option is enabled.
Written from the project's README. Every use case is checked against a quote from it.
How to install Documentero MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall Documentero MCP in Claude Code
$ claude mcp add --env 'DOCUMENTERO_API_KEY=<YOUR_DOCUMENTERO_API_KEY>' documentero-mcp -- npx -y @documentero/mcpInstall Documentero MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"documentero-mcp": {
"command": "npx",
"args": [
"-y",
"@documentero/mcp"
],
"env": {
"DOCUMENTERO_API_KEY": "<YOUR_DOCUMENTERO_API_KEY>"
}
}
}
}Install Documentero MCP in VS Code
.vscode/mcp.json
{
"servers": {
"documentero-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@documentero/mcp"
],
"env": {
"DOCUMENTERO_API_KEY": "<YOUR_DOCUMENTERO_API_KEY>"
}
}
}
}Install Documentero MCP in VS Code CLI
$ code --add-mcp '{"name":"documentero-mcp","type":"stdio","command":"npx","args":["-y","@documentero/mcp"],"env":{"DOCUMENTERO_API_KEY":"<YOUR_DOCUMENTERO_API_KEY>"}}'Install Documentero MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"documentero-mcp": {
"command": "npx",
"args": [
"-y",
"@documentero/mcp"
],
"env": {
"DOCUMENTERO_API_KEY": "<YOUR_DOCUMENTERO_API_KEY>"
}
}
}
}Install Documentero MCP in Codex
$ codex mcp add documentero-mcp --env 'DOCUMENTERO_API_KEY=<YOUR_DOCUMENTERO_API_KEY>' -- npx -y @documentero/mcpInstall Documentero MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.documentero-mcp] command = "npx" args = ["-y", "@documentero/mcp"] [mcp_servers.documentero-mcp.env] DOCUMENTERO_API_KEY = "<YOUR_DOCUMENTERO_API_KEY>"
Install Documentero MCP in Gemini CLI
$ gemini mcp add -s user -e 'DOCUMENTERO_API_KEY=<YOUR_DOCUMENTERO_API_KEY>' documentero-mcp npx -- -y @documentero/mcpInstall Documentero MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"documentero-mcp": {
"command": "npx",
"args": [
"-y",
"@documentero/mcp"
],
"env": {
"DOCUMENTERO_API_KEY": "<YOUR_DOCUMENTERO_API_KEY>"
}
}
}
}Documentero MCP tools 3
Detected from the READMElist_templatesget_template_fieldsgenerate_document
| list_templates | — | |
| get_template_fields | — | |
| generate_document | — |
Configuration
DOCUMENTERO_API_KEYRequiredSecretCompany API key from Documentero Account settings
DOCUMENTERO_BASE_URLOptional Cloud API base URL (default: https://app.documentero.com/api)
| Name | Description | |
|---|---|---|
| DOCUMENTERO_API_KEY | Company API key from Documentero Account settings | RequiredSecret |
| DOCUMENTERO_BASE_URL | Optional Cloud API base URL (default: https://app.documentero.com/api) |
Automated checks
Ran Nov 14, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachabledocumentero/documentero-mcp is public and reachablegithub.com/documentero/documentero-mcp ↗Pass
- Package names this repository as its source@documentero/mcp names documentero/documentero-mcp as sourcenpmjs.com/package/@documentero/mcp ↗Pass
- Build provenance (Sigstore attestation)No build attestation published for this releaseNot checked
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-07-24github.com/documentero/documentero-mcp ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from @documentero/mcpPass
- No critical advisory in the package or its dependencies99 resolved dependencies checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model3 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNo tool named like delete, drop or execPass
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHub@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).
- npm:
@documentero/mcp - Source: github.com/documentero/documentero-mcp
- Website: documentero.com
- Docs: docs.documentero.com
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). |
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
| 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
list_templates→ pick atemplateId(respectkind/allowedFormats)get_template_fields→ shapedatafromjsonSchema(usefieldDefinitionsfor 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:xlsxonly. - Remote Streamable HTTP hosting (
https://mcp.documentero.com/mcp) is planned; this release is stdio only.
License
MIT © Documentero
Documentero MCP questions
How do I add Documentero MCP to Claude Code?
Run claude mcp add --env 'DOCUMENTERO_API_KEY=<YOUR_DOCUMENTERO_API_KEY>' documentero-mcp -- npx -y @documentero/mcp in your terminal. Add --scope user to make it available in every project.
How do I add Documentero MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does Documentero MCP provide?
It exposes 3 tools, including list_templates, get_template_fields, generate_document.
What file formats can I generate?
Word templates can output docx or pdf, while Excel templates only support xlsx.
How do I get the generated document?
The server provides a signed URL that lasts about one hour by default, or you can request the document as a base64 string.
Where do I find my API key?
You can copy your API key from the Account settings section in Documentero.