Documint MCP server for AI agents

Live

API KEY

DOCUMENT GENERATION

Files & Documents

Documint gives your agent document generation in your Documint account: list templates, merge data into a template to generate a document, and rename, deactivate, trash, or delete templates.

  • 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.
Documint
agent · Acme Q3
Run
Generate a proposal for Acme from the Proposal template.
S
documint_document_create
840ms
Document agent
Merged Acme's details into the Proposal template and returned a link to the generated file.
Sources: Documint template, 1 document
documint
1 document
18:29
Message Claude...

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

CALL ANY TOOL
5 tools for document generation in Documint: list and read templates, merge data into a template to generate a document, and update or delete templates.
documint_document_create
Create document
Merge data into a Documint template to generate a document (usually a PDF). Returns url (link to the generated file), name, fileExtension, timestamp, templateName and templateId. Use documint_templates_list to find the template ID; the data keys must match the template's field tokens. Set preview true to generate a preview document.
Parameters
Name
Type
Required
Description
data
object
Required
Merge data whose keys match the template's field tokens; nested objects and arrays fill nested fields and repeat loops. Example: {"customer_name": "Acme Inc.", "invoice_number": "INV-1001", "items": [{"description": "Consulting", "amount": 1200}]}
template_id
string
Required
ID of the template to merge, from documint_templates_list. Example: 64f1c2a9e4b0a1b2c3d4e5f6.
active
boolean
Optional
Set to true to merge the template's active version, as in Documint's API examples. Example: true.
preview
boolean
Optional
Set to true to create a preview document instead of a final one. Example: true.
documint_template_delete
Delete template
documint_template_get
Get template
documint_template_update
Update template
documint_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);

// Documint tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["documint"], toolNames: [
    "documint_templates_list",
    "documint_template_get",
    "documint_document_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find the Proposal template, check its details, and generate a proposal for Acme" }] });
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: ["documint"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find the Proposal template, check its details, and generate a proposal for Acme" }],
  tools,
});

// Execute the tool call with the user's vaulted Documint 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: ["documint"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find the Proposal template, check its details, and generate a proposal for Acme" }],
  tools,
});

// Tool call runs with the user's vaulted Documint 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: ["documint"] }, pageSize: 100,
});

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

await agent.run("Find the Proposal template, check its details, and generate a proposal for Acme");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Documint tool. Click to copy, paste into your agent, done.
Templates
Copy the prompt
Copied
List my document templates.
Copy the prompt
Copied
Get the details of the Proposal template.
Copy the prompt
Copied
Show the first 10 templates in my account.
Generate
Copy the prompt
Copied
Generate a proposal for Acme from the Proposal template.
Copy the prompt
Copied
Generate an invoice document for each of these 3 customers.
Copy the prompt
Copied
Merge this JSON data into the Invoice template.
Manage templates
Copy the prompt
Copied
Rename the Proposal template to Proposal 2026.
Copy the prompt
Copied
Deactivate the old Invoice template.
Copy the prompt
Copied
Move the draft template to the trash.
SEE HOW AUTH WORKS
Each user connects their own Documint 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
Documint
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
Documint
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
Documint
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
Documint
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 Documint API key looks fine in a demo. In production every document 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.
Documint 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 Documint as the user or through a shared key?
As the user. Each user connects their own Documint API key once, and Scalekit sends it with every call. Audit logs attribute every document to that user, not a shared service account.
Where is the Documint 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 Documint?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example documint_templates_list and documint_template_get without documint_template_delete, which permanently deletes a template. 1 of the 5 tools is destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Documint 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.
Can the agent retire a template without deleting it?
Yes. documint_template_update can deactivate a template or move it to the trash. documint_template_delete is the permanent option and cannot be undone.
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"": {
""documint"": {
""url"": ""https://mcp.scalekit.com/documint"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.documint]
url = ""https://mcp.scalekit.com/documint""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""documint"": {
""url"": ""https://mcp.scalekit.com/documint"",
""type"": ""http""
}
}
}