Docmosis MCP server for AI agents

Live

API KEY

DOCUMENT GENERATION

Files & Documents

Docmosis gives your agent document generation in your Docmosis environment: render PDF, DOCX, and other formats by merging JSON data into templates, inspect template fields and sample data, and check the render queue and usage.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Docmosis
agent · Acme Q3
Run
Render the invoice template to PDF with this data.
S
docmosis_document_render
910ms
Document agent
Rendered the invoice template with the supplied JSON data as a PDF.
Sources: Docmosis render, 1 template
docmosis
1 document
18:29
Message Claude...

Tools your document generation agent reaches for on Docmosis, scoped per user.

CALL ANY TOOL
15 tools for document generation in Docmosis: render documents from templates, inspect template structure and sample data, and check the environment, render queue, and tagged usage.
docmosis_document_render
Render document
Generate a document (PDF, DOCX, ODT, HTML and more) by merging JSON data into an uploaded template. Returns JSON with succeeded, the document as base64 in resultFile when it is returned to you, and page and size details. With store_to set to mailto:, the file is emailed instead. Use docmosis_template_sample_data_get to see the data shape a template expects. Each render counts against your page quota.
Parameters
Name
Type
Required
Description
output_name
string
Required
File name of the result. Its extension sets the format unless output_format is given. Example: welcome-letter.pdf.
template_name
string
Required
Template to merge into, including any folder path, from docmosis_templates_list. Separate several with ; to concatenate them. Example: samples/WelcomeTemplate.docx.
data
object
Optional
Data to merge: a JSON object whose keys match the template's fields and sections. Example: {"firstName": "Jane", "items": [{"name": "Widget", "qty": 2}]}
dev_mode
string
Optional
y to render in developer mode, where template and data errors are written into the document instead of failing. Example: y. One of: `y`, `n`.
mail_body_text
string
Optional
Plain-text email body when store_to is mailto. Example: Please find your document attached.
mail_subject
string
Optional
Email subject when store_to is mailto. Example: Your welcome pack.
output_format
string
Optional
Output format, for example pdf, docx, odt, html or txt. Separate several with ; to get a zip. Example: pdf.
password_protect
string
Optional
Password needed to open the resulting PDF or DOCX. Example: s3cret.
pdf_watermark
string
Optional
Watermark text across PDF pages. Example: DRAFT.
request_id
string
Optional
Your own identifier for the job, echoed in the response. Example: order-1042.
store_to
string
Optional
Where to send the result instead of returning it: mailto:address (several destinations separated by ;). Omit to return the file in the response. Example: mailto:jane@example.com.
tags
string
Optional
Semicolon-separated tags to record against this render, for usage reports from docmosis_render_tags_get. Example: invoices;customer-acme.
docmosis_environment_ready
Environment ready
docmosis_environment_summary
Environment summary
docmosis_image_delete
Delete image
docmosis_images_list
List images
docmosis_ping
Ping
docmosis_render_queue_get
Get render queue
docmosis_render_tags_get
Get render tags
docmosis_template_batch_upload_cancel
Cancel template batch upload
docmosis_template_batch_upload_status_get
Get template batch upload status
docmosis_template_delete
Delete template
docmosis_template_details_get
Get template details
docmosis_template_sample_data_get
Get template sample data
docmosis_template_structure_get
Get template structure
docmosis_templates_list
List templates
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Docmosis tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["docmosis"], toolNames: [
    "docmosis_templates_list",
    "docmosis_template_structure_get",
    "docmosis_document_render"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find the invoice template, show the fields it needs, and render it to PDF with this data" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["docmosis"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find the invoice template, show the fields it needs, and render it to PDF with this data" }],
  tools,
});

// Execute the tool call with the user's vaulted Docmosis API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["docmosis"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find the invoice template, show the fields it needs, and render it to PDF with this data" }],
  tools,
});

// Tool call runs with the user's vaulted Docmosis API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["docmosis"] }, pageSize: 100,
});

const agent = new Agent({
  name: "document_agent",
  model: "gemini-2.5-pro",
  instruction: "Docmosis tools scoped to this user",
  tools,
});

await agent.run("Find the invoice template, show the fields it needs, and render it to PDF with this data");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Docmosis tool. Click to copy, paste into your agent, done.
Render
Copy the prompt
Copied
Render the invoice template to PDF with this JSON data.
Copy the prompt
Copied
Generate a DOCX from the contract template.
Copy the prompt
Copied
Generate sample data for the invoice template.
Templates
Copy the prompt
Copied
List the templates in my environment.
Copy the prompt
Copied
Show the fields and repeating sections of the invoice template.
Copy the prompt
Copied
Get the details of the contract template.
Environment and usage
Copy the prompt
Copied
Is my Docmosis environment active and within quota?
Copy the prompt
Copied
Show the current render queue.
Copy the prompt
Copied
Show monthly page counts for tagged renders.
SEE HOW AUTH WORKS
Each user connects their own Docmosis API key once, and Scalekit sends it with every call. API keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Docmosis
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Docmosis
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Docmosis
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Docmosis
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other file and document connectors.
People Ops and HR teams
Offer letter routing agent
Drafts the offer in PandaDoc, blocks on the hiring manager's approval in Slack, then emails the candidate their e-signature link. Every call runs as the recruiter who triggered it, never a shared HR bot.
Test other agents
See the same per-user auth pattern across other file and document connectors.
PEOPLE OPS
Offer letter routing agent
Draft the offer in PandaDoc, gate it on hiring manager approval in Slack, then email the candidate their signature link.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Docmosis API key looks fine in a demo. In production every render looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Docmosis today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Docmosis as the user or through a shared key?
As the user. Each user connects their own Docmosis API key once, and Scalekit sends it with every call. Audit logs attribute every render to that user, not a shared service account.
Where is the Docmosis API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Docmosis?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without docmosis_template_delete, which deletes uploaded templates, and docmosis_image_delete. 2 of the 15 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Docmosis access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which formats can the agent generate?
docmosis_document_render merges JSON data into a template to produce a document such as PDF, DOCX, ODT, or HTML. docmosis_template_structure_get shows the fields and repeating sections the data must supply.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""docmosis"": {
""url"": ""https://mcp.scalekit.com/docmosis"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.docmosis]
url = ""https://mcp.scalekit.com/docmosis""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""docmosis"": {
""url"": ""https://mcp.scalekit.com/docmosis"",
""type"": ""http""
}
}
}