Anvil MCP by usefulapi
v1.40.4Hosted MCP server for Anvil — fill & generate PDFs and run Etch e-signature packets for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
anvil_current_user Current Anvil user
Get the authenticated Anvil user (from the API key) and the organizations they belong to (eid, name, slug). Good first call to discover org slugs/eids for other tools. GraphQL query: currentUser.
anvil_get_organization Get organization
Fetch an Anvil organization and its PDF templates (casts) and workflows (welds). Provide either its slug or its eid (at least one is required). GraphQL query: organization.
| Parameter | Type | Description |
|---|---|---|
eid | string | Organization eid. Provide this OR slug. |
slug | string | Organization slug (from anvil_current_user). Provide this OR eid. |
anvil_get_cast Get cast (PDF template)
Fetch a cast — an Anvil PDF template — by its eid: title, version number, and whether it is a template. Use the returned eid as the cast_eid for anvil_fill_pdf. GraphQL query: cast.
| Parameter | Type | Description |
|---|---|---|
eid * | string | The cast (PDF template) eid. |
anvil_get_etch_packet Get Etch e-signature packet
Fetch an Etch e-signature packet by eid: its status, details URL, document group, and every signer (eid, aliasId, name, email, status, routing order). Use this to check signature progress. GraphQL query: etchPacket.
| Parameter | Type | Description |
|---|---|---|
eid * | string | The Etch packet eid (returned by anvil_create_etch_packet). |
anvil_get_weld Get weld (workflow)
Fetch a weld — an Anvil workflow — by eid, including its forges (the individual form steps: eid, name, slug). GraphQL query: weld.
| Parameter | Type | Description |
|---|---|---|
eid * | string | The weld (workflow) eid. |
anvil_get_weld_data Get weld data (workflow submission)
Fetch a weldData record — a single submission to a weld (workflow) — by eid: completion state, test flag, and creation time. GraphQL query: weldData.
| Parameter | Type | Description |
|---|---|---|
eid * | string | The weldData (workflow submission) eid. |
anvil_fill_pdf Fill a PDF template
Fill an Anvil PDF template (cast) with data and return the finished PDF as base64. REST: POST /fill/{castEid}.pdf. Returns { filename, byteLength, pdfBase64 }. The `data` object's keys are the template's field aliases.
| Parameter | Type | Description |
|---|---|---|
cast_eid * | string | The cast (PDF template) eid to fill (from anvil_get_cast). |
data * | object | Object mapping the template's field aliases to values, e.g. { "name": "Sam", "date": "2026-07-16" }. |
fontSize | number | Optional default font size for filled text. |
textColor | string | Optional default text color as a hex string, e.g. #333333. |
title | string | Optional title embedded in the generated PDF metadata. |
anvil_generate_pdf Generate a PDF from HTML or Markdown
Generate a brand-new PDF from HTML or Markdown and return it as base64. REST: POST /generate-pdf. For type=html, pass data = { html, css? }. For type=markdown, pass data = [ { label, content }, ... ]. Returns { filename, byteLength, pdfBase64 }.
| Parameter | Type | Description |
|---|---|---|
data * | For html: { html: "<h1>Hi</h1>", css?: "..." }. For markdown: [ { label: "Section", content: "# Title\n..." }, ... ]. | |
title | string | Optional title embedded in the generated PDF metadata. |
type | string | Source format. Default html. |
anvil_create_etch_packet Create Etch e-signature packet
Create an Etch e-signature packet (documents + signers). GraphQL mutation: createEtchPacket. IMPORTANT: isDraft defaults to true (a safe draft that sends nothing). Setting isDraft=false with real signers SENDS signature-request emails to those signers. Use isTest=true while developing.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable name for the packet. |
data | object | Optional payload data used to pre-fill the packet's documents. |
files | array | Array of file/document objects (casts or uploads) to include. Passed straight through to Anvil. |
isDraft | boolean | Default true. When true, creates a draft and sends nothing. Set false to activate and email signers. |
isTest | boolean | Set true to create a test packet (no legal weight, no charge). |
signatureEmailBody | string | Optional body text for the signature-request email. |
signatureEmailSubject | string | Optional subject line for the signature-request email. |
signers | array | Array of signer objects, e.g. [{ id, name, email, signerType, routingOrder, fields }]. Passed straight through to Anvil. |
anvil_generate_etch_sign_url Generate Etch signing URL
Generate a one-time embedded signing URL for a specific signer in an Etch packet (for iframe/redirect signing flows). GraphQL mutation: generateEtchSignURL. Returns { url }.
| Parameter | Type | Description |
|---|---|---|
client_user_id * | string | Your app's stable id for the signing user (ties the session to your user). |
signer_eid * | string | The signer eid (from the packet's documentGroup.signers). |