@docujson/mcp
Connects AI assistants to DocuJSON for PDF generation, template management, and API operations via natural language. It enables tasks like creating invoices, managing templates, and viewing usage stats through MCP-compatible tools.
README
@docujson/mcp
DocuJSON Model Context Protocol (MCP) server. Connect AI assistants like Claude Desktop, Cursor, and other MCP-compatible tools to DocuJSON for PDF generation, template management, and API key operations via natural language.
What it does
This package is a thin stdio bridge that forwards MCP requests from your AI assistant to the hosted DocuJSON MCP server at https://mcp.docujson.com.
With this connected, you can ask your AI assistant things like:
- "Generate an invoice PDF for Acme Corp with 3 line items totaling $4,500"
- "Create a weekly status report template"
- "Show me my PDF usage this month"
- "List all my custom templates"
- "Revise the invoice template to use a blue header"
Installation
You don't install it directly — your MCP client (Claude Desktop) runs npx @docujson/mcp on demand.
Setup
1. Get a DocuJSON API key
- Sign up at docujson.com/signup
- Go to Dashboard → API Keys
- Create a new key (starts with
dj_)
2. Configure your MCP client
Claude Desktop
Edit your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the DocuJSON server:
{
"mcpServers": {
"docujson": {
"command": "npx",
"args": ["-y", "@docujson/mcp"],
"env": {
"DOCUJSON_API_KEY": "dj_your_api_key_here"
}
}
}
}
Restart Claude Desktop. You should see DocuJSON tools available in the tools panel.
Cursor (HTTP — recommended)
Cursor supports the HTTP transport directly, so you don't need this stdio bridge. Use the hosted server URL:
Cursor Settings → MCP → Add server:
- Name:
docujson - URL:
https://mcp.docujson.com?apiKey=dj_your_api_key
Continue, Zed, or other MCP clients
Use the HTTP URL if your client supports it. Otherwise use the stdio config pattern from the Claude Desktop example above.
Available tools
generate_pdf— Generate a PDF from any templatepreview_template— Generate a preview (doesn't count toward quota)list_templates— List all built-in and custom templatesget_template— Get template details and JSON schemacreate_custom_template— AI-generate a new template from a descriptionupdate_custom_template— Update template metadata or sample datadelete_custom_template— Delete a custom template (requires confirmation)revise_template— Submit a natural-language revision requestpublish_template— Publish a draft templatelist_api_keys— List workspace API keyscreate_api_key— Create a new API keyrevoke_api_key— Revoke (deactivate) an API keyget_usage— Monthly PDF usage statsget_workspace— Current workspace informationlist_integrations— Supported integration platformsget_integration_script— Code snippet for a specific integration
Full tool reference: docujson.com/mcp
Environment variables
DOCUJSON_API_KEY(required) — Your DocuJSON API keyDOCUJSON_MCP_URL(optional) — Override the MCP server URL. Defaults tohttps://mcp.docujson.com
Troubleshooting
"Missing DOCUJSON_API_KEY"
Set the environment variable in your MCP client config (see Setup above).
Tools don't show up in Claude Desktop
- Restart Claude Desktop completely
- Check the developer logs: View → Developer → Open Developer Tools
- Verify the config JSON is valid (trailing commas break it)
"Unauthorized" errors
- Verify your API key is active in the DocuJSON dashboard
- Make sure it starts with
dj_
License
MIT
Links
- Documentation: docujson.com/mcp
- API Reference: docujson.com/docs
- Dashboard: docujson.com/dashboard
- Support: support@docujson.com
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.