Your AI agent can
generate documents
Stop copy-pasting into templates. Give Claude, Gemini, ChatGPT, or Cursor direct access to your Google Docs templates — they fill variables, generate PDFs, and create new templates in one shot.
Get started in 3 steps
Sign in
Log in with your Google account to connect your Google Docs and Drive.
Generate API Key
Create your personal MCP API key on this page. It grants agents access to all your templates.
Configure MCP Client
Copy the config snippet below into Claude Desktop, Cursor, Gemini CLI, or ChatGPT settings.
Your API Key
Available Tools
These MCP tools are available to any connected AI agent. Each tool has rich descriptions so the agent understands usage without external documentation.
list_templates
List all your templates with IDs, names, types, and variable names.
get_template
Get full template details including the complete variable schema with types and labels.
create_template
Import a Google Doc URL as a new template. Extracts variables and creates the API endpoint.
generate_document
Generate a filled document + PDF from a template with variable values.
generate_ai_template
Create a template from a text prompt using Gemini AI. Describe what you need.
toggle_public_form
Enable or disable a shareable public form URL for a template. Anyone can fill it out to generate a PDF.
get_public_form_url
Get the public form URL for a template. Returns the shareable link if enabled.
Or use the command line
The Gext CLI lets agents and humans manage templates, generate documents, and automate workflows from the terminal. All commands support --json for structured output.
# Install
npm install -g @gext/cli
# Authenticate
gext login
# List templates
gext templates list --json
# Get schema for a template
gext templates schema <template-id> --json
# Generate a document
gext generate <template-id> --json '{"name": "Alice", "date": "2026-03-05"}' --output-json
# Interactive mode
gext generate <template-id> --interactive
# Use API key (for CI/CD, no browser login)
gext generate <template-id> --api-key gext_sk_xxx --json '{"name": "Bot"}' --output-json
# Pipe AI sample data directly into generation
gext templates sample-data <template-id> | gext generate <template-id>