Anvil MCP by usefulapi

v1.40.4
io.usefulapi/anvil Checked 8 hours ago Published 14 days ago

Hosted 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.

ParameterTypeDescription
eidstringOrganization eid. Provide this OR slug.
slugstringOrganization 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.

ParameterTypeDescription
eid *stringThe 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.

ParameterTypeDescription
eid *stringThe 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.

ParameterTypeDescription
eid *stringThe 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.

ParameterTypeDescription
eid *stringThe 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.

ParameterTypeDescription
cast_eid *stringThe cast (PDF template) eid to fill (from anvil_get_cast).
data *objectObject mapping the template's field aliases to values, e.g. { "name": "Sam", "date": "2026-07-16" }.
fontSizenumberOptional default font size for filled text.
textColorstringOptional default text color as a hex string, e.g. #333333.
titlestringOptional 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 }.

ParameterTypeDescription
data *For html: { html: "<h1>Hi</h1>", css?: "..." }. For markdown: [ { label: "Section", content: "# Title\n..." }, ... ].
titlestringOptional title embedded in the generated PDF metadata.
typestringSource 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.

ParameterTypeDescription
name *stringHuman-readable name for the packet.
dataobjectOptional payload data used to pre-fill the packet's documents.
filesarrayArray of file/document objects (casts or uploads) to include. Passed straight through to Anvil.
isDraftbooleanDefault true. When true, creates a draft and sends nothing. Set false to activate and email signers.
isTestbooleanSet true to create a test packet (no legal weight, no charge).
signatureEmailBodystringOptional body text for the signature-request email.
signatureEmailSubjectstringOptional subject line for the signature-request email.
signersarrayArray 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 }.

ParameterTypeDescription
client_user_id *stringYour app's stable id for the signing user (ties the session to your user).
signer_eid *stringThe signer eid (from the packet's documentGroup.signers).