Hosted MCP server for Anvil — fill & generate PDFs and run Etch e-signature packets for AI agents.
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
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.
Human-readable name for the packet.
Optional payload data used to pre-fill the packet's documents.
Array of file/document objects (casts or uploads) to include. Passed straight through to Anvil.
Set true to create a test packet (no legal weight, no charge).
Default true. When true, creates a draft and sends nothing. Set false to activate and email signers.
Array of signer objects, e.g. [{ id, name, email, signerType, routingOrder, fields }]. Passed straight through to Anvil.
Optional body text for the signature-request email.
Optional subject line for the signature-request email.
The server marks this tool as destructive. Running it may delete or overwrite data on the server or in any account you connected with your headers.
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.
| Argument | Type | Description |
|---|---|---|
| data | object | Optional payload data used to pre-fill the packet's documents. |
| name* | string | Human-readable name for the packet. |
| files | array | Array of file/document objects (casts or uploads) to include. Passed straight through to Anvil. |
| isTest | boolean | Set true to create a test packet (no legal weight, no charge). |
| isDraft | boolean | Default true. When true, creates a draft and sends nothing. Set false to activate and email signers. |
| signers | array | Array of signer objects, e.g. [{ id, name, email, signerType, routingOrder, fields }]. Passed straight through to Anvil. |
| signatureEmailBody | string | Optional body text for the signature-request email. |
| signatureEmailSubject | string | Optional subject line for the signature-request email. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"name"
],
"properties": {
"data": {
"type": "object",
"description": "Optional payload data used to pre-fill the packet's documents.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"name": {
"type": "string",
"description": "Human-readable name for the packet."
},
"files": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Array of file/document objects (casts or uploads) to include. Passed straight through to Anvil."
},
"isTest": {
"type": "boolean",
"description": "Set true to create a test packet (no legal weight, no charge)."
},
"isDraft": {
"type": "boolean",
"default": true,
"description": "Default true. When true, creates a draft and sends nothing. Set false to activate and email signers."
},
"signers": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Array of signer objects, e.g. [{ id, name, email, signerType, routingOrder, fields }]. Passed straight through to Anvil."
},
"signatureEmailBody": {
"type": "string",
"description": "Optional body text for the signature-request email."
},
"signatureEmailSubject": {
"type": "string",
"description": "Optional subject line for the signature-request email."
}
}
}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.
No arguments.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
}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.
| Argument | Type | Description |
|---|---|---|
| data* | object | Object mapping the template's field aliases to values, e.g. { "name": "Sam", "date": "2026-07-16" }. |
| title | string | Optional title embedded in the generated PDF metadata. |
| cast_eid* | string | The cast (PDF template) eid to fill (from anvil_get_cast). |
| fontSize | number | Optional default font size for filled text. |
| textColor | string | Optional default text color as a hex string, e.g. #333333. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"cast_eid",
"data"
],
"properties": {
"data": {
"type": "object",
"description": "Object mapping the template's field aliases to values, e.g. { \"name\": \"Sam\", \"date\": \"2026-07-16\" }.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"title": {
"type": "string",
"description": "Optional title embedded in the generated PDF metadata."
},
"cast_eid": {
"type": "string",
"description": "The cast (PDF template) eid to fill (from anvil_get_cast)."
},
"fontSize": {
"type": "number",
"description": "Optional default font size for filled text."
},
"textColor": {
"type": "string",
"description": "Optional default text color as a hex string, e.g. #333333."
}
}
}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 }.
| Argument | Type | Description |
|---|---|---|
| signer_eid* | string | The signer eid (from the packet's documentGroup.signers). |
| client_user_id* | string | Your app's stable id for the signing user (ties the session to your user). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"signer_eid",
"client_user_id"
],
"properties": {
"signer_eid": {
"type": "string",
"description": "The signer eid (from the packet's documentGroup.signers)."
},
"client_user_id": {
"type": "string",
"description": "Your app's stable id for the signing user (ties the session to your user)."
}
}
}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 }.
| Argument | Type | Description |
|---|---|---|
| data* | any | For html: { html: "<h1>Hi</h1>", css?: "..." }. For markdown: [ { label: "Section", content: "# Title\n..." }, ... ]. |
| type | string | Source format. Default html. |
| title | string | Optional title embedded in the generated PDF metadata. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"data"
],
"properties": {
"data": {
"description": "For html: { html: \"<h1>Hi</h1>\", css?: \"...\" }. For markdown: [ { label: \"Section\", content: \"# Title\\n...\" }, ... ]."
},
"type": {
"enum": [
"html",
"markdown"
],
"type": "string",
"default": "html",
"description": "Source format. Default html."
},
"title": {
"type": "string",
"description": "Optional title embedded in the generated PDF metadata."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| eid* | string | The cast (PDF template) eid. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"eid"
],
"properties": {
"eid": {
"type": "string",
"description": "The cast (PDF template) eid."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| eid* | string | The Etch packet eid (returned by anvil_create_etch_packet). |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"eid"
],
"properties": {
"eid": {
"type": "string",
"description": "The Etch packet eid (returned by anvil_create_etch_packet)."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| eid | string | Organization eid. Provide this OR slug. |
| slug | string | Organization slug (from anvil_current_user). Provide this OR eid. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"eid": {
"type": "string",
"description": "Organization eid. Provide this OR slug."
},
"slug": {
"type": "string",
"description": "Organization slug (from anvil_current_user). Provide this OR eid."
}
}
}Fetch a weld — an Anvil workflow — by eid, including its forges (the individual form steps: eid, name, slug). GraphQL query: weld.
| Argument | Type | Description |
|---|---|---|
| eid* | string | The weld (workflow) eid. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"eid"
],
"properties": {
"eid": {
"type": "string",
"description": "The weld (workflow) eid."
}
}
}Fetch a weldData record — a single submission to a weld (workflow) — by eid: completion state, test flag, and creation time. GraphQL query: weldData.
| Argument | Type | Description |
|---|---|---|
| eid* | string | The weldData (workflow submission) eid. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"eid"
],
"properties": {
"eid": {
"type": "string",
"description": "The weldData (workflow submission) eid."
}
}
}