← Back to all projects

docgen-mcp

rustmcptypstai

docgen-mcp is a type-safe document generation framework designed for AI agents, leveraging Typst and the Model Context Protocol (MCP). It enables the creation of professional documents, such as resumes and cover letters, from structured JSON data with automatic validation and PDF compilation.

Key Features

  • Type-Safe: Document structures are defined using Rust types, with automatic JSON Schema generation for robust validation.
  • AI-Optimized: The framework includes discovery tools, best practices prompts, and sandbox-aware file handling to enhance AI agent interaction.
  • Professional Output: It utilizes Typst for high-quality PDF generation, offering production-ready templates.
  • Extensible: New document types can be easily added by defining Rust types and corresponding Typst templates.
  • Code-First Approach: Maintains a single source of truth in Rust types, preventing schema drift.
  • Embedded Compiler: The Typst compiler is embedded, eliminating the need for external installations.
  • Dual Transport: Supports both HTTP/SSE for remote cloud deployments (e.g., Claude.ai) and stdio for local subprocess communication (e.g., Claude Desktop).