DocuGenerate MCP server for AI agents

Live

API KEY

DOCUMENT GENERATION

Files & Documents

DocuGenerate gives your agent document generation in your DocuGenerate account: list templates and their tags, generate documents by filling those tags with data, and read, rename, or delete generated documents.

  • 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.
DocuGenerate
agent · Acme Q3
Run
Generate a Service Agreement for Acme from the template.
S
docugenerate_document_generate
1130ms
Document agent
Generated 1 Service Agreement from the template with Acme's details filled into its tags.
Sources: DocuGenerate template, 1 document
docugenerate
1 document
18:29
Message Claude...

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

CALL ANY TOOL
8 tools for document generation in DocuGenerate: list templates, generate documents from template tags, and read, rename, or delete generated documents.
docugenerate_document_delete
Delete document
Delete a generated document and its file. Returns the result. This cannot be undone.
Parameters
Name
Type
Required
Description
document_id
string
Required
ID of the generated document. Get it from documents_list or document_generate. Example: Ap7rKq2LmX9sWzT4vBnD.
docugenerate_document_generate
Generate document
docugenerate_document_get
Get document
docugenerate_document_update
Update document
docugenerate_documents_list
List documents
docugenerate_template_delete
Delete template
docugenerate_template_get
Get template
docugenerate_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);

// DocuGenerate tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["docugenerate"], toolNames: [
    "docugenerate_templates_list",
    "docugenerate_template_get",
    "docugenerate_document_generate"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find the Service Agreement template, show its tags, and generate a copy 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: ["docugenerate"] }, pageSize: 100,
});

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

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

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

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

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

await agent.run("Find the Service Agreement template, show its tags, and generate a copy for Acme");
Try these prompts
Copy any prompt into your agent. Each maps directly to a DocuGenerate tool. Click to copy, paste into your agent, done.
Templates
Copy the prompt
Copied
List my document templates.
Copy the prompt
Copied
Show the tags I need to fill in the Service Agreement template.
Copy the prompt
Copied
List the templates in the Contracts folder.
Generate
Copy the prompt
Copied
Generate a Service Agreement for Acme from that template.
Copy the prompt
Copied
Generate 3 offer letters from the Offer template with these names.
Copy the prompt
Copied
Rename the generated document to Acme Service Agreement.
Generated documents
Copy the prompt
Copied
List the documents generated from the Offer template.
Copy the prompt
Copied
Get the details of that generated document.
Copy the prompt
Copied
Delete the test document I generated earlier.
SEE HOW AUTH WORKS
Each user connects their own DocuGenerate 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
DocuGenerate
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
DocuGenerate
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
DocuGenerate
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
DocuGenerate
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 DocuGenerate 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.
DocuGenerate 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 DocuGenerate as the user or through a shared key?
As the user. Each user connects their own DocuGenerate 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 DocuGenerate 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 DocuGenerate?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without docugenerate_template_delete, which deletes a template, and docugenerate_document_delete, which deletes a generated document and its file. 2 of the 8 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes DocuGenerate 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.
What does the agent need to generate a document?
A template. docugenerate_template_get returns the template's tags, which are the fields to fill, and docugenerate_document_generate fills those tags with your data to create one or more documents.
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"": {
""docugenerate"": {
""url"": ""https://mcp.scalekit.com/docugenerate"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.docugenerate]
url = ""https://mcp.scalekit.com/docugenerate""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""docugenerate"": {
""url"": ""https://mcp.scalekit.com/docugenerate"",
""type"": ""http""
}
}
}