DM

docujson/mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

0 stars 0 forks 品質 61 トレンド 0

DocuJSON Model Context Protocol (MCP) server — connect Claude Desktop, Cursor, and other AI assistants to DocuJSON via natural language.

概要

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. 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" You don't install it directly — your MCP client (Claude Desktop) runs npx @docujson/mcp on demand. 1. Sign up at docujson.com/signup 2. Go to Dashboard → API Keys 3. Create a new key (starts with dj_) - ~/Library/Application Support/Claude/claude_desktop_config.json - %APPDATA%\Claude\claude_desktop_config.

README

以下は原文 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

  1. Sign up at docujson.com/signup
  2. Go to Dashboard → API Keys
  3. 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 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 template
  • preview_template — Generate a preview (doesn’t count toward quota)
  • list_templates — List all built-in and custom templates
  • get_template — Get template details and JSON schema
  • create_custom_template — AI-generate a new template from a description
  • update_custom_template — Update template metadata or sample data
  • delete_custom_template — Delete a custom template (requires confirmation)
  • revise_template — Submit a natural-language revision request
  • publish_template — Publish a draft template
  • list_api_keys — List workspace API keys
  • create_api_key — Create a new API key
  • revoke_api_key — Revoke (deactivate) an API key
  • get_usage — Monthly PDF usage stats
  • get_workspace — Current workspace information
GitHub で README 全文を見る

インストール

npx -y @docujson/mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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