AI agents (MCP)
Doquill runs a Model Context Protocol server that lets an AI agent author templates in your workspace. The agent writes the template files, schema and sample data, renders previews and looks at the pages as images, then fixes what looks wrong. It publishes only when you ask it to.
The server address is https://mcp.doquill.com/mcp (Streamable HTTP). You can connect in two
ways: sign in with your Doquill account, or use an API key.
Sign in with your account
Section titled “Sign in with your account”Use this for Claude Code, Cursor, OpenCode, Claude.ai, Claude Desktop and other clients that support MCP authorization.
-
Add the server to your client.
claude mcp add --transport http doquill https://mcp.doquill.com/mcpThen run
/mcpin Claude Code, pickdoquilland choose to authenticate.Add to
~/.cursor/mcp.json, or.cursor/mcp.jsonin a project:{"mcpServers": {"doquill": {"url": "https://mcp.doquill.com/mcp"}}}Then open Cursor Settings → Tools & MCP and click Connect next to
doquill.Add to
opencode.jsonin a project, or~/.config/opencode/opencode.json:{"$schema": "https://opencode.ai/config.json","mcp": {"doquill": {"type": "remote","url": "https://mcp.doquill.com/mcp"}}}Then run
opencode mcp auth doquill.Open Settings → Connectors, choose Add custom connector and enter
https://mcp.doquill.com/mcp. Then click Connect. -
Sign in to Doquill in the browser window that opens.
-
Pick the workspace the app may use and click Allow. Only Team and Business workspaces can be picked.
The app then acts as you in that workspace, with the permissions your role has there. To connect it to another workspace, add the server a second time.
The connection keeps working as long as the app uses it at least once every 30 days. To end it, open Account in the app and click Disconnect under Connected apps. A connection also stops working if you leave the workspace or are removed from it, and being invited back doesn’t restore it.
Use an API key
Section titled “Use an API key”Use an API key for clients that only support custom headers, or when the agent should have fewer permissions than you do.
-
In the app, open Developers → API keys and click Create Key. Under Permissions, select:
Permission Lets the agent create_templatecreate new templates update_templateedit files, schema, sample data, page settings and stylesheets renderpreview templates publish_templatepublish a draft (leave it out to keep publishing to yourself) delete_templatedelete templates (optional) -
Add the server to your client, with the key as a bearer token.
claude mcp add --transport http doquill https://mcp.doquill.com/mcp \--header "Authorization: Bearer <api-key>"Add to
~/.cursor/mcp.json, or.cursor/mcp.jsonin a project:{"mcpServers": {"doquill": {"url": "https://mcp.doquill.com/mcp","headers": { "Authorization": "Bearer <api-key>" }}}}Add to
opencode.jsonin a project, or~/.config/opencode/opencode.json:{"$schema": "https://opencode.ai/config.json","mcp": {"doquill": {"type": "remote","url": "https://mcp.doquill.com/mcp","oauth": false,"headers": { "Authorization": "Bearer <api-key>" }}}}Other clients that support Streamable HTTP and custom headers are set up the same way.
Ask for a template
Section titled “Ask for a template”For example: “Create an invoice template in Doquill using Tailwind, with a line-items table and totals. Preview it with a long item list.”
Open the template in the app to review the draft, or tell the agent to publish it.
What the agent can do
Section titled “What the agent can do”| Tool | What it does |
|---|---|
list_templates, get_template, list_template_versions |
Read templates and their published versions |
create_template |
Create a blank template |
write_template_files, edit_template_file |
Write whole files or change part of a file |
update_template_data |
Set the JSON Schema and sample data |
update_template_settings |
Rename the template and set page size, margins and height |
list_assets, set_template_css |
List images and stylesheets, and turn stylesheets (including Tailwind) on or off for a template |
preview_template |
Render the draft or a published version and return page images, with the sample data or data the agent passes |
publish_template |
Publish the draft as a new version |
delete_template |
Delete a template |
get_authoring_guide |
Read the template language and function reference |
The agent edits only the draft. API renders keep using the latest published version until the draft is published.
The agent can’t upload assets. Upload images and stylesheets in the app first, and tell the agent which ones to use.
Limits
Section titled “Limits”Previews made through MCP have their own rate limit, separate from your render quota: 30 per minute on Team and 60 on Business. Each preview returns up to 10 pages.