AI
MCP
Automation

Use DocuJSON directly from AI assistants

Generate PDFs, create templates, manage your workspace — all through natural language in Claude Desktop, Cursor, ChatGPT, and any MCP-compatible tool. The Model Context Protocol connects DocuJSON directly to AI agents.

Works with Claude Desktop, Cursor, Continue, Zed, and any MCP client.

claude — docujson-mcpconnected
you
Generate an invoice PDF for Acme Corp — 3 line items totaling $4,500
claude
calling generate_pdf
{
templateId: "invoice-basic",
data: { customer, items, totals }
}
200 OK · pdfUrl returned
Done. Invoice INV-2026-041.pdf is ready — $4,500 across 3 line items for Acme Corp.
Features

Everything you need to integrate DocuJSON with MCP

Natural Language

Control DocuJSON by describing what you want. No API reference to memorize.

Full API Access

Generate PDFs, manage templates, upload assets, check usage — every API endpoint exposed as a tool.

18+ Tools

Complete coverage of the DocuJSON API. From template creation to PDF generation, everything is available.

Remote & Local

Use our hosted server over HTTP, or run locally via npx @docujson/mcp for Claude Desktop.

Getting started

Set up in under 60 seconds

Pick your client, drop in your API key, and start talking to DocuJSON.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "docujson": {
      "command": "npx",
      "args": ["-y", "@docujson/mcp"],
      "env": {
        "DOCUJSON_API_KEY": "dj_your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop. You can now ask Claude to generate PDFs, create templates, or check your usage.

In conversation

Just describe what you need

Example prompts you can send to your AI assistant — no API knowledge required.

Create a weekly status report template with project name, milestones, and team updates
create_custom_template
Drafted a weekly-status-report template with sections for project name, milestones (with dates + status), and team updates. Published as template ID weekly-status-v1.
Generate a PDF invoice for client Acme Corp with 3 line items totaling $4,500
generate_pdf
Generated INV-2026-041 using the invoice-basic template. PDF ready at blob.docujson.com/inv-2026-041.pdf.
Show me my PDF generation usage this month
get_usage
You've generated 1,248 PDFs this month across 2 workspaces. That's 62% of your Pro plan limit (2,000/mo). Top template: weekly-report (543 generations).
List all my custom templates and their statuses
list_templates
You have 7 custom templates: 5 published (invoice-v2, weekly-report, sales-deck, kpi-q1, calendar-2026) and 2 drafts (proposal-v3, onboarding-pdf).
Tool catalog

18 tools covering the full API

Every tool the DocuJSON REST API supports is exposed as an MCP tool. No endpoints hidden behind the dashboard.

Generation

2 tools

generate_pdfGeneration

Render a PDF from a template + JSON data.

preview_templateGeneration

Get a PDF preview without counting toward quota.

Templates

7 tools

list_templatesTemplates

List all templates in your workspace.

get_templateTemplates

Fetch a single template with schema + metadata.

create_custom_templateTemplates

Create a new template from a prompt or HTML.

update_custom_templateTemplates

Edit an existing custom template.

delete_custom_templateTemplates

Remove a custom template from the workspace.

revise_templateTemplates

Ask AI to revise a template from natural language.

publish_templateTemplates

Promote a draft template to a stable templateId.

API Keys

3 tools

list_api_keysAPI Keys

List active API keys in the workspace.

create_api_keyAPI Keys

Mint a new dj_ API key.

revoke_api_keyAPI Keys

Immediately revoke an API key.

Account

2 tools

get_usageAccount

Current month usage, quota, and plan details.

get_workspaceAccount

Workspace metadata, members, and settings.

Integrations

4 tools

list_integrationsIntegrations

All supported integration platforms.

get_integration_scriptIntegrations

Ready-to-paste snippet for Zapier, Make, n8n, etc.

get_webhook_urlIntegrations

Return the workspace webhook endpoint.

test_webhookIntegrations

Fire a test payload to verify webhook delivery.

FAQ

Frequently asked questions

MCP (Model Context Protocol) is an open standard by Anthropic that lets AI assistants interact with external tools and services. With DocuJSON's MCP server, Claude, Cursor, and other AI tools can directly use your DocuJSON workspace through natural language.

Ready to use DocuJSON from your AI assistant?

Sign up free, create an API key, and set up MCP in under a minute.