Skip to main content
Glama

@rendoc/mcp-server

npm version License: MIT CI

rendoc MCPサーバーを使用すると、Claude Desktop、Cursor、その他MCP互換クライアントなどのAIアシスタントが、オンデマンドでプロフェッショナルなPDFドキュメントを生成できるようになります。AIをrendocに接続することで、自然言語のプロンプトから、再利用可能なテンプレートやインラインのHTML/Handlebarsマークアップを使用して、請求書、契約書、レポート、証明書などのあらゆるPDFを作成できます。

「Acme Corp向けの請求書を作成して。コンサルティング40時間、時給85ユーロで」という指示を、数秒でPDFとして出力します。

ユースケース

ユースケース

プロンプト例

請求書

「クライアントX向けの請求書を以下の項目で作成して...」

契約書

「TechStart SL向けのフリーランス契約書を起草して。報酬18,000ユーロ、前払い50%...」

証明書

「María González向けのコース修了証を発行して...」

レポート

「以下のKPIを使用して2026年3月の売上レポートを作成して...」

一括生成

「このCSVに含まれる50人全員分の証明書を生成して」

カスタムドキュメント

HTML + データで記述できるものなら何でも

詳細なチュートリアルは examples/ を参照してください。

Related MCP server: PDF Export for AI Agents

特徴

  • 7つのツール:ドキュメント生成、テンプレート管理、利用状況追跡

  • テンプレートベースまたはインライン:再利用可能なテンプレートの保存、またはその場でのマークアップ送信

  • Handlebars構文:マークアップ内で {{variables}}、{{#each}}、{{#if}} を使用可能

  • 複数の用紙サイズ:A4、Letter、Legal、A3、A5、縦向きまたは横向き

  • スキーマ検証:テンプレートにJSONスキーマを定義し、AIによる不正なデータ入力を防止

  • 設定不要:RENDOC_API_KEY を設定するだけですぐに使用可能

  • 軽量:解凍時約35 KB、純粋なTypeScript、ランタイム依存関係はわずか2つ

  • Glamaで検証済み:セキュリティ、品質、ライセンスチェックを通過済み

Claude Desktopのクイックセットアップ

Claude Desktopの設定ファイル (claude_desktop_config.json) に以下を追加してください:

{
  "mcpServers": {
    "rendoc": {
      "command": "npx",
      "args": ["-y", "@rendoc/mcp-server"],
      "env": {
        "RENDOC_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Desktopを再起動します。MCPツールメニューにrendocツールが表示されます。

Claude Codeのクイックセットアップ

プロジェクトまたはグローバル設定 (.claude/settings.json) に以下を追加してください:

{
  "mcpServers": {
    "rendoc": {
      "command": "npx",
      "args": ["-y", "@rendoc/mcp-server"],
      "env": {
        "RENDOC_API_KEY": "your-api-key"
      }
    }
  }
}

Cursorのクイックセットアップ

~/.cursor/mcp.json (またはプロジェクトの .cursor/mcp.json) に以下を追加してください:

{
  "mcpServers": {
    "rendoc": {
      "command": "npx",
      "args": ["-y", "@rendoc/mcp-server"],
      "env": {
        "RENDOC_API_KEY": "your-api-key"
      }
    }
  }
}

利用可能なツール

ツール

説明

主要パラメータ

generate_document

テンプレートまたはインラインマークアップからPDFを生成

template_id または markup, data, paper_size?, orientation?, filename?

list_templates

利用可能なドキュメントテンプレートを一覧表示

category?

preview_template

テンプレートのマークアップ、スタイル、スキーマを確認

template_id

create_template

新しい再利用可能なテンプレートを作成

name, slug, markup, schema, category?, styles?, sample_data?, paper_size?, orientation?, is_public?

delete_template

IDでテンプレートを削除

template_id

get_document

生成されたドキュメントの詳細を取得

document_id

get_usage

月間のAPI利用統計を表示

(なし)

各ツールは、ダウンロードURL、ドキュメントID、およびアシスタントが処理可能なメタデータを含む構造化されたJSONを返します。

APIキーの取得

  1. rendoc.dev にサインアップ

  2. API Keysダッシュボード に移動

  3. 新しいキーを作成し、MCPクライアント設定にコピー

環境変数

変数

必須

デフォルト

説明

RENDOC_API_KEY

はい

—

認証用のrendoc APIキー

RENDOC_API_URL

いいえ

https://rendoc.dev

rendoc APIのベースURL(セルフホストインスタンス用)

例

実際のプロンプトとツール呼び出しを含む詳細なチュートリアル:

仕組み

┌──────────────┐   MCP/stdio    ┌────────────────────┐   HTTPS   ┌─────────────┐
│ Claude Code  │ ─────────────▶ │ @rendoc/mcp-server │ ────────▶ │ rendoc API  │
│ / Desktop    │                │   (this package)    │           │  (PDF gen)  │
└──────────────┘ ◀───────────── └────────────────────┘ ◀──────── └─────────────┘
        ▲         tool results                        download URL
        │
        └── User prompt: "Generate an invoice for..."

MCPサーバーは、AIアシスタントからの自然言語によるツール呼び出しを、rendoc APIへの認証済みRESTリクエストに変換し、PDFダウンロードURLを含む構造化されたレスポンスを返します。

貢献

貢献を歓迎します。開発セットアップとPRガイドラインについては CONTRIBUTING.md を参照してください。

セキュリティ上の問題については SECURITY.md を確認し、info@rendoc.dev までメールでご連絡ください。公開のIssueは作成しないでください。

リンク

ライセンス

MIT — LICENSE を参照してください。

Available Tools

7 tools
create_templateA

Create a new reusable document template. Templates use HTML/Handlebars markup with a JSON schema defining the expected data fields. Once created, use the returned template ID with generate_document to produce PDFs.

Inputs: name (required), slug (required), markup (required), schema (required), +7 more.

delete_templateA

Delete a template by its ID. This action is irreversible. Only templates you own can be deleted.

Inputs: template_id (required).

generate_documentA

Generate a PDF document from a template and data. Returns a download URL for the generated PDF. Provide either template_id (to use a saved template) or markup (inline HTML/Handlebars template). The data object is injected into the template to produce the final document. Supports custom paper sizes, orientation, and filenames.

Inputs: data (required), template_id, markup, paper_size, +2 more.

get_documentA

Get details about a previously generated document by its ID. Returns the document status, download URL, file size, page count, and creation date.

Inputs: document_id (required).

get_usageA

Get current API usage statistics for this billing month. Returns your plan name, document count vs limit, page count, and remaining quota.

Inputs: no named parameters.

list_templatesA

List available document templates. Optionally filter by category. Returns template names, slugs, categories, descriptions, paper sizes, and IDs. Use the returned ID with generate_document or preview_template.

Inputs: category.

preview_templateA

Get the full markup, styles, and data schema of a template. Use this to inspect a template before generating a document. The schema shows which data fields the template expects. Sample data (if available) shows example values for each field.

Inputs: template_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: create_template, delete_template, list_templates, and preview_template handle template management; generate_document and get_document handle document generation and retrieval; get_usage provides API usage stats. The descriptions reinforce these boundaries, making tool selection unambiguous.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with snake_case naming (e.g., create_template, generate_document, get_usage). The verbs are clear and appropriate for their actions, and there are no deviations or mixed conventions throughout the set.

    Tool Count5/5

    With 7 tools, the server is well-scoped for document generation and template management. Each tool earns its place by covering essential operations like CRUD for templates, document generation, retrieval, and usage monitoring, without being too sparse or bloated.

    Completeness5/5

    The tool set provides complete coverage for the document generation domain: full CRUD for templates (create, delete, list, preview), document generation and retrieval, and usage monitoring. There are no obvious gaps, and the tools support core workflows from template creation to PDF output without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers