{{Gext}}
MCP Server

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.

Prompt
AI Agent
{{Gext}}
Google Docs
PDF

Get started in 3 steps

1

Sign in

Log in with your Google account to connect your Google Docs and Drive.

2

Generate API Key

Create your personal MCP API key on this page. It grants agents access to all your templates.

3

Configure MCP Client

Copy the config snippet below into Claude Desktop, Cursor, Gemini CLI, or ChatGPT settings.

Your API Key

Loading...

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.

Params: None

get_template

Get full template details including the complete variable schema with types and labels.

Params: template_id

create_template

Import a Google Doc URL as a new template. Extracts variables and creates the API endpoint.

Params: google_doc_url, name?

generate_document

Generate a filled document + PDF from a template with variable values.

Params: template_id, variables, file_name?, output_folder_id?

generate_ai_template

Create a template from a text prompt using Gemini AI. Describe what you need.

Params: prompt, name?

toggle_public_form

Enable or disable a shareable public form URL for a template. Anyone can fill it out to generate a PDF.

Params: template_id, enabled

get_public_form_url

Get the public form URL for a template. Returns the shareable link if enabled.

Params: template_id
CLI

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.

bash
# 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>