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
コメント