Draftable MCP server for AI agents

Live

API KEY

DOCUMENT COMPARISON

Files & Documents

Draftable gives your agent document comparison in your Draftable account: compare two PDF, Word, PowerPoint, or text documents from URLs, check comparison status, and export results as PDF.

  • 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.
Draftable
agent · Acme Q3
Run
Compare these two versions of the contract.
S
draftable_comparison_create
773ms
Document comparison agent
Started a comparison of the two contract versions and returned its identifier.
Sources: Draftable comparison, 2 documents
draftable
1 comparison
18:29
Message Claude...

Tools your document comparison agent reaches for on Draftable, scoped per user.

CALL ANY TOOL
6 tools for document comparison in Draftable: create comparisons, read their processing state, and export them as PDF.
draftable_comparison_create
Create comparison
Compare two documents (PDF, Word, PowerPoint or text) that Draftable downloads from URLs. Returns the new comparison with identifier, ready false and the document details; it is usually ready within seconds. Use Get Comparison to poll. View it at https://api.draftable.com/v1/comparisons/viewer/<account_id>/<identifier> (private comparisons need a signed URL).
Parameters
Name
Type
Required
Description
left_file_type
string
Required
File type of the left document: pdf, docx, docm, doc, rtf, pptx, pptm, ppt or txt. Example: pdf. One of: `pdf`, `docx`, `docm`, `doc`, `rtf`, `pptx`, `pptm`, `ppt`, `txt`.
left_source_url
string
Required
URL Draftable downloads the left document from (a public or one-time signed URL). Example: https://api.draftable.com/static/test-documents/paper/left.pdf.
right_file_type
string
Required
File type of the right document: pdf, docx, docm, doc, rtf, pptx, pptm, ppt or txt. Example: pdf. One of: `pdf`, `docx`, `docm`, `doc`, `rtf`, `pptx`, `pptm`, `ppt`, `txt`.
right_source_url
string
Required
URL Draftable downloads the right document from (a public or one-time signed URL). Example: https://api.draftable.com/static/test-documents/paper/right.pdf.
expiry_time
string
Optional
ISO 8601 time when the comparison is deleted automatically; never when empty. Example: 2025-02-15T00:00:00Z.
identifier
string
Optional
Optional custom identifier, unique in the account (reusable after the comparison is deleted). Example: contract-2025-v1-v2.
left_display_name
string
Optional
Name shown for the left document in the viewer. Example: Contract v1.
public
boolean
Optional
Set true to let anyone with the viewer URL see the comparison; private (false) is the default. Example: false.
right_display_name
string
Optional
Name shown for the right document in the viewer. Example: Contract v1.
draftable_comparison_delete
Delete comparison
draftable_comparison_get
Get comparison
draftable_comparisons_list
List comparisons
draftable_export_create
Create export
draftable_export_get
Get export
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);

// Draftable tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["draftable"], toolNames: [
    "draftable_comparison_create",
    "draftable_comparison_get",
    "draftable_export_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Compare these two contract versions, check that the comparison is ready, and export it as a single-page PDF" }] });
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: ["draftable"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Compare these two contract versions, check that the comparison is ready, and export it as a single-page PDF" }],
  tools,
});

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

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Compare these two contract versions, check that the comparison is ready, and export it as a single-page PDF" }],
  tools,
});

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

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

await agent.run("Compare these two contract versions, check that the comparison is ready, and export it as a single-page PDF");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Draftable tool. Click to copy, paste into your agent, done.
Compare
Copy the prompt
Copied
Compare these two versions of the contract from their URLs.
Copy the prompt
Copied
Compare the old and new policy documents.
Copy the prompt
Copied
Compare v1.docx and v2.docx from these links.
Track
Copy the prompt
Copied
List my recent comparisons.
Copy the prompt
Copied
Is comparison abc123 ready?
Copy the prompt
Copied
Get the details of comparison abc123.
Export and clean up
Copy the prompt
Copied
Export that comparison as a single-page PDF.
Copy the prompt
Copied
Check the status of my export.
Copy the prompt
Copied
Delete comparison abc123.
SEE HOW AUTH WORKS
Each user connects their own Draftable 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
Draftable
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
Draftable
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
Draftable
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
Draftable
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.
GTM and RevOps Teams
Deal room sync
Pulls opportunity context from Salesforce, captures key decisions from Slack, and syncs a running summary to the deal room doc in Google Drive, but only when the deal actually changed.
Test other agents
See the same per-user auth pattern across other file and document connectors.
GTM
Deal room sync agent
Pull opportunity context from Salesforce, capture decisions from Slack, and keep the Google Drive deal room doc current.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Draftable API key looks fine in a demo. In production every comparison 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.
Draftable 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 Draftable as the user or through a shared key?
As the user. Each user connects their own Draftable API key once, and Scalekit sends it with every call. Audit logs attribute every comparison to that user, not a shared service account.
Where is the Draftable 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 Draftable?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without draftable_comparison_delete, which deletes a comparison. 1 of the 6 tools is destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Draftable 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 can the agent export from a comparison?
draftable_export_create exports a ready comparison as a PDF: single_page with changes marked, combined with both documents interleaved, or the left or right document only. draftable_export_get returns the export status and download URL.
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"": {
""draftable"": {
""url"": ""https://mcp.scalekit.com/draftable"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.draftable]
url = ""https://mcp.scalekit.com/draftable""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""draftable"": {
""url"": ""https://mcp.scalekit.com/draftable"",
""type"": ""http""
}
}
}