MCP.so
登录

Pdf Generator Api MCP Server

@pdfgeneratorapi

基本信息

分类

开发工具

传输方式

stdio

作者

pdfgeneratorapi

提交者

Bruno Farias

关于 Pdf Generator Api MCP Server

Model Context Protocol (MCP) server for the PDF Generator API, generated from the OpenAPI v4 specification.

Pdf Generator Api MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "pdf-generator-api": {
      "command": "node",
      "args": [
        "/path/to/mcp-server/build/index.js"
      ],
      "env": {
        "API_BASE_URL": "https://us1.pdfgeneratorapi.com/api/v4",
        "BEARER_TOKEN_JWT": "your-jwt-token-here"
      }
    }
  }
}

Pdf Generator Api MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Pdf Generator Api?

Pdf Generator Api is a Model Context Protocol (MCP) server for the PDF Generator API, generated from its OpenAPI v4 specification. It supports both stdio mode for local MCP clients (Claude Desktop, Claude Code, Cline, etc.) and HTTP mode for production deployment, marketplaces, and multiple clients.

How to use Pdf Generator Api?

Install and build with npm install and npm run build, then configure your MCP client with the command node and the path to the built index.js, plus environment variables API_BASE_URL and BEARER_TOKEN_JWT. For HTTP mode, run npm run start:http (port 3000) or use the provided Docker Compose file. Authentication requires a JWT token passed via environment variable or HTTP header.

Key features of Pdf Generator Api

  • Supports stdio and HTTP transports
  • Docker deployment support
  • Configurable environment variables
  • JWT authentication with token generation guidance
  • Session idle timeout and CORS configuration
  • Health check endpoint
  • Regeneratable from OpenAPI specification
  • Includes testing scripts

Use cases of Pdf Generator Api

  • Integrate PDF generation into Claude Desktop or Claude Code
  • Deploy a production MCP server accessible by multiple clients
  • Automate PDF document creation in CI/CD pipelines
  • Use as a local development proxy for the PDF Generator API

常见问题

1

What authentication is required?

You need a JWT token signed with your workspace ID, workspace identifier, and secret key from the PDF Generator API dashboard. In stdio mode pass it as `BEARER_TOKEN_JWT`; in HTTP mode include it in the `Authorization` header.

2

How do I generate a JWT token?

Use the `jsonwebtoken` library (Node.js) or the `jsonwebtoken-cli` npx one-liner with your workspace credentials and a chosen expiration time. Example: `jwt.sign({ iss: 'YOUR_WORKSPACE_ID', sub: 'YOUR_WORKSPACE_IDENTIFIER' }, 'YOUR_SECRET_KEY', { algorithm: 'HS256', expiresIn: '24h' })`.

3

What environment variables are available?

Key variables include `API_BASE_URL` (default `https://us1.pdfgeneratorapi.com/api/v4`), `BEARER_TOKEN_JWT` (for stdio), `PORT` (HTTP, default 3000), `LOG_LEVEL`, `SESSION_TTL_MINUTES` (HTTP, default 30), and `CORS_ORIGIN` (HTTP, default `*`).

4

Can I run it in production?

Yes, use HTTP mode with Docker or direct start. Set `CORS_ORIGIN` appropriately and consider using HTTPS. JWT tokens should have a shorter TTL (e.g., 1 hour) for production.

5

How do I regenerate the server after API changes?

Place the updated OpenAPI spec at `docs/apiv4.json` and run `./scripts/generate-mcp.sh`. After regeneration, custom patches may need to be re-applied.

评论

开发工具 分类下的更多 MCP 服务器