Gotoquill

Built by Shay Levi.
Gotoquill lets AI assistants ask a person to sign a PDF, with explicit human consent in the signing UI. It supports ChatGPT, Claude, Gemini, Le Chat, Muse, and local MCP clients. Form filling is outside the project scope.
Website · Support · Feedback · Privacy · Security · Contributing
Quickstart
For hosted signing, connect your assistant to https://mcp.gotoquill.com/mcp. See the setup guides. Ask it to request your signature on a PDF, review the document, and confirm in the signing UI.
For your first Cloud chat, paste:
Create a short sample NDA between my company and Dana Cohen, then let me sign it.
Run Local with uvx gotoquill mcp. Source: gotoquill/gotoquill. See the client configurations below. The following workflow describes local sealed-link signing.
The agent calls one tool with a PDF path and gets back a link (and a QR code).
You open it on your phone or any computer, see the document, draw or type your
signature, tick the consent box and press Sign. The page says
"Signed ✓ , you can close this page". The signed PDF and a proof record are
saved next to the original file, on the agent's computer.
- No account, no server of your own. The link is end-to-end encrypted: the secret key is in the
part of the link after
#, which browsers never send to any server.
- Other ways are still there: a local page on
127.0.0.1 / inside the chat (delivery="page") and an
offline file (delivery="file").
- Output:
contract - signed.pdf and contract - signed.audit.json (who, when, SHA-256 of both files).
- Auto-placement: signature form fields first, else labels such as Signature, Sign here, חתימת המבוטח
(also reversed RTL text), Firma, Unterschrift, Assinatura, Podpis, Подпись, توقيع, 署名, next to
the nearest empty drawn box or ruled line (left, right, above or below). All detected spots are signed unless
you pass
spots ("first", "last", [1, 3]). With add_date, matching Date / תאריך boxes or fields
get the signing date. Scanned PDFs with no text fall back to the bottom-right of the last page and the result
says it is a guess (placement_info.guess).
- Preview:
request_signature returns placements and preview_png_path (the page with the spots
highlighted). Show it to the user first. The signing page highlights the same spots.
- When it is signed,
get_signature_status returns signed_pdf_path, a small signed_preview_png_path and a
next hint. Agents should send the signed PDF back to the signer in the chat right away, without being
asked.
Install
Python 3.10 through 3.13 and uv are required:
uvx gotoquill mcp
For a persistent executable (including self-hosted Rakazo), use uv tool install gotoquill,
then gotoquill mcp. Use an absolute executable path if your host does not inherit your PATH.
Developers can clone the source and follow the setup in CONTRIBUTING.md.
Choose Cloud or Local and follow Choose / Connect / Verify / Switch at the
connection chooser. Connect and verify the
destination before retiring the previous connection after pending work finishes.
Switching changes where new requests are created, without moving PDFs or requests.
Add it to your agent
Claude Desktop: in Settings → Developer → Edit Config (claude_desktop_config.json):
{"mcpServers": {"gotoquill": {"command": "uvx", "args": ["gotoquill", "mcp"]}}}
Claude Code:
claude mcp add gotoquill -- uvx gotoquill mcp
Cursor: ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{"mcpServers": {"gotoquill": {"command": "uvx", "args": ["gotoquill", "mcp"]}}}
VS Code (Copilot):
code --add-mcp '{"name":"gotoquill","command":"uvx","args":["gotoquill","mcp"]}'
Goose:
goose session --with-extension "uvx gotoquill mcp"
(or add it for good with goose configure → Add Extension → Command-line Extension, using the same command)
Codex CLI / ChatGPT desktop (Codex):
codex mcp add gotoquill -- uvx gotoquill mcp
Gemini CLI:
gemini mcp add --trust --timeout 900000 gotoquill gotoquill mcp
Use --trust (or "trust": true on the server in .gemini/settings.json). Without it, headless gemini -p runs wait forever for a tool confirmation (gemini-cli #11459). The long timeout covers wait_for_signature.
LangChain / LangGraph (Python and TypeScript): follow the runnable
Python example or
TypeScript example. Both support an
installed Local executable or Cloud OAuth by changing one connection block.
They use the current official adapters and the shared unpublished helpers.
Present the browser signing link and wait for human UI consent; there is no
in-chat signing card in these integrations.
Not using MCP? See "Plain function calling" below.
Then just ask: "Get my signature on ~/Downloads/contract.pdf."
Tools
| Tool |
What it does |
request_signature(pdf_path, ...) |
Returns request_id, sign_url, qr_png_path, qr_ascii, output_path. Options: delivery ("link" default, "page", "file"), output_path, signer_name, message, add_date, placements, expires_in_minutes, open_browser, return_to (Back-to-chat target, see below), wait_seconds (default 0; block until final, max 600). |
get_signature_status(request_id, wait_seconds=0) |
pending, completed, declined, expired or cancelled. When completed it gives output_path/signed_pdf_path, audit_path, signed_preview_png_path and next (send the signed PDF back to the signer in chat right away, unasked). Use wait_seconds (up to 600) to wait for the human. For links, this is when the reply is fetched and the PDF is signed. |
wait_for_signature(request_id, wait_seconds=600) |
Same result as get_signature_status, waiting by default. Call it right after sending the link, in the same turn, and again while pending. In MCP it is async and sends progress notifications, so the server stays responsive. |
connect_notifications(...) |
One-time setup: saves notify targets (OpenClaw, webhook, Telegram) that every later request uses automatically. action="status" / "test" / "remove". See below. |
cancel_request(request_id) |
Cancels and closes the page. |
apply_signature_response(request_id, response_path or response_text) |
Finishes a delivery="file" request with the reply the signer sent back. |
Where the signature goes: if you don't pass placements, gotoquill looks for a
signature line or field ("Signature", "Sign here", a PDF signature field) and
puts it there. Otherwise it goes at the bottom of the last page.
Getting told when it's signed
Agents only act on their own turns. If the agent sends the link and ends its turn, nobody tells it when the
human signs on their phone. gotoquill makes sure something wakes the agent:
-
gotoquill wait <request_id> [--timeout SECONDS] blocks until the request is final, pulls the encrypted
reply, stamps the PDF, prints the final status JSON (with signed_pdf_path and next) and exits with:
| exit |
meaning |
| 0 |
completed (signed) |
| 3 |
declined |
| 4 |
expired |
| 5 |
cancelled |
| 6 |
--timeout passed, still pending (run it again) |
| 2 |
error (e.g. unknown request id) |
Default timeout: until the request expires. Run it as a background job in agents whose host notifies them
when a background command finishes (e.g. coding agents with background shells).
-
Completion hooks on request_signature (MCP, gotoquill.tools, CLI sign --on-complete-command/--on-complete-webhook):
on_complete_command: shell command; status JSON on stdin; env GOTOQUILL_STATUS, GOTOQUILL_SIGNED_PDF,
GOTOQUILL_REQUEST_ID, GOTOQUILL_PREVIEW_PNG, GOTOQUILL_AUDIT, GOTOQUILL_NEXT.
on_complete_webhook: the status JSON is POSTed to this URL (headers X-Gotoquill-Request, X-Gotoquill-Status,
plus the HMAC headers below). Optional webhook_headers (CLI --webhook-header K=V, K=env:VAR) and
webhook_body (a JSON body template, CLI --webhook-body '{...}').
Hooks fire exactly once (an atomic marker file guards them across processes), from whichever process sees
the final status first. A watcher keeps polling the relay even if the agent forgets: a detached process
for the CLI / Python tools (it survives the call returning), a task inside the long-lived MCP server. The
watcher stamps the signed PDF before firing, so GOTOQUILL_SIGNED_PDF is ready. Results are in
~/.config/gotoquill/notify/<request_id>/hook-result.json (config dir).
-
MCP notifications. The MCP server watches every link/page request. When it finishes, it sends
notifications/resources/updated for the resource gotoquill://requests/<request_id> (readable: the status
JSON) and a notice log message. While get_signature_status waits it sends progress and log notifications.
One-time setup: gotoquill connect
Run once (by the agent itself: CLI gotoquill connect or MCP connect_notifications). It saves notify
targets, and from then on every request_signature without its own hooks uses them automatically, so a
finished signature wakes the agent with no copy/paste by the human.
gotoquill connect # auto-detects OpenClaw; shows a plan, then:
gotoquill connect --yes # applies it (backs up openclaw.json first)
gotoquill connect --webhook https://n8n.example/webhook/sign --header-env Authorization=GOTOQUILL_WAKE_AUTH
gotoquill connect --telegram-bot-token-env TELEGRAM_BOT_TOKEN --chat-id 123456789
gotoquill connect --status # targets, secrets masked
gotoquill connect --test # ping every target
gotoquill connect --remove [ID] # remove one target, or all
- OpenClaw (detected via
~/.openclaw/openclaw.json, OPENCLAW_CONFIG_PATH, OPENCLAW_STATE_DIR): sets
hooks.enabled, a hooks.token (keeps an existing one) and puts a mapping gotoquill first
(match.path: "gotoquill", action: "wake", textTemplate: "{{message}}"), then posts to
http://127.0.0.1:<gateway port>/hooks/gotoquill with Authorization: Bearer <token>. The gateway hot-reloads
config. --openclaw-action agent [--openclaw-agent ID] runs an isolated agent turn (session hook:gotoquill,
reply to the last channel) instead of waking the main session. An existing config is never changed without
--yes (MCP yes=true): without it you get a masked diff and exit code 1. The original is saved as
openclaw.json.gotoquill-backup-<time> (mode 0600). JSON5 files with comments are not edited; you get the
snippet to paste instead. Symlinked configs are refused.
- Webhook (n8n, Zapier, Make, a LangGraph/your own server):
--header K=V or --header-env K=ENVVAR
(env:VAR values are read from the environment when the hook fires, so the secret never sits in gotoquill's
files); --body-template '{"text": "{{message}}"}'.
- Telegram:
sendMessage to --chat-id, bot token read from the env var named by --telegram-bot-token-env
at send time. Note: bots never see their own messages, so this tells the human (and any agent reading that
chat through another account), not a bot-based agent itself.
Every POST is signed: X-Gotoquill-Timestamp: <unix> and X-Gotoquill-Signature: sha256=<hex> =
HMAC-SHA256(secret, <timestamp>.<raw body>). The secret (secrets.token_urlsafe(32)) and targets live in
<config dir>/notify-targets.json, encrypted with a key in the OS keychain (or a 0600 file without a
keychain). Verify in Python with gotoquill.targets.verify(body, ts, sig, secret).
Body template placeholders: {{request_id}}, {{status}}, {{document_name}}, {{signed_pdf_path}},
{{audit_path}}, {{next}}, {{message}} (a ready "Document … was signed …" sentence), and the whole value
"{{status_json}}" for the status object. Default: the status JSON. Exit codes: 0 ok, 1 needs --yes,
3 a target or test failed, 2 error. Secrets are never printed.
What the agent must do (also in next, the MCP instructions and tool descriptions): right after
request_signature, immediately start waiting in a way that will wake it, and never end its turn assuming it
will be told:
(a) if it can run background shell jobs that notify on exit, run gotoquill wait <request_id> in the background;
(b) otherwise call wait_for_signature(request_id) (= get_signature_status(request_id, wait_seconds=600)) again and
again in the same turn;
(c) or use the hooks. When it is completed, send the signed PDF back to the signer in the chat right away.
Optional “Signed by” line
The signing sheet has an optional checkbox, off by default: Add “Signed by {name} · {date}” under my signature. When the signer ticks it, the reply carries signed_by_line: true and the signed PDF gets one small grey line under each signature spot. Left unticked, nothing extra is added.
Back to chat (the signer's side)
No chat host wakes the model on its own, so gotoquill also makes it one tap for the human to tell the agent: