Skip to content

E-signature MCP server and API

E-signature for AI agents: an MCP server and API your agent can use on its own

Your agent connects or signs up with one Approve click from a person. Once that person starts the 14-day free trial with a card, the agent drafts the document, sends it to each signer, follows every view and signature as an event, and fetches the signed PDF with its audit certificate.

For agents: the same facts as plain text at /llms.txt.

What your agent does alone, and where a person clicks

Connecting takes one click from a person. Sending needs the 14-day free trial, which a person starts with a card. Everything after that runs on the agent's credential.

What an agent can do without a person, with one click from a person, and only with a person
Without a humanNeeds one human clickNeeds a human (payment)
  • Register itself as an OAuth client (Dynamic Client Registration or a Client ID Metadata Document)
  • Start a connection or sign-up request and poll /oauth/token for the credential
  • Refresh its OAuth tokens
  • Create, upload and edit drafts
  • Once the trial is running: send envelopes; signers get the email directly (approval is off by default)
  • Place fields, set the signing order, attach your own invoice link (on plans that include it)
  • Remind signers, void an envelope, save and send templates
  • Read status, list envelopes, download the signed PDF and audit certificate, read the audit trail
  • Follow events (events/poll, stream or webhook subscription) or register signed webhooks
  • Read its plan, whether it can send and the checkout link to hand the person (the account op)
  • Approve the connection: Allow on the OAuth consent screen (signed in), or Approve on the emailed /connect link
  • Approving from the email also creates the account if the address has none; Deny creates nothing
  • Approve an envelope, only if approval is turned on for it or for the account (an agent can never approve)
  • Start the 14-day free trial with a card (Stripe Checkout, from the dashboard); sending documents needs it
  • Change or cancel a plan, update the card (billing portal)

Also person-only, in the dashboard: account settings (including the approval switch), team members, creating or revoking API keys, disconnecting apps. Signers sign from their own email link; no op signs for them. Full steps for agents: the autonomy section of the agent docs.

How an agent gets a document signed

  1. Connect

    Add https://trustline.app/api/mcp to your MCP client. Clients with OAuth register themselves; a headless agent uses the device flow with the person's email.

  2. One click from a person

    The person allows the connection on the consent screen, or approves the emailed request after checking the code. That click creates the account if needed.

  3. The person starts the trial

    Sending needs the 14-day free trial, started with a card at Stripe Checkout. Before that, a send fails with plan_required and a checkout link the agent hands to the person. An agent cannot do this step; it can prepare drafts meanwhile.

  4. The agent sends and tracks

    It writes or uploads the document, adds signers and their order, and sends. Events report each view and signature; it downloads the signed PDF and certificate.

Connect from the client you already use

One URL, nothing to install. More setups on the integrations page.

  • Claude

    Add the URL as a custom connector and sign in with OAuth, or run claude mcp add in Claude Code. Set up Claude

  • ChatGPT

    Add a custom MCP server in developer mode; ChatGPT registers itself and asks you to confirm each write. Set up ChatGPT

  • Grok

    Connect with OAuth, or let a headless Grok agent ask for approval by email. Set up Grok

  • Cursor and VS Code

    Put the URL and an API key header in mcp.json. Set up Cursor

  • Any MCP client

    Streamable HTTP, stateless, MCP 2026-07-28 and earlier revisions on one URL. Connection options

  • Plain HTTP

    Every operation is also a REST call under /api/v1. REST quickstart

Events instead of polling

Clients on MCP 2026-07-28 use the Events extension: poll a cursor, hold a short stream, or subscribe a webhook signed with Standard Webhooks headers. The event types are sent, viewed, signed, completed, voided and declined. Events replay from a cursor for up to 30 days. Older clients register an HMAC-signed account webhook or read the status.

An audit trail a person can check

Every action on an envelope is an event in an append-only audit trail, and each event's hash covers the one before it. The finished envelope comes with the signed PDF and an audit certificate that lists the events. Anyone can upload the PDF to the verify page to check it is unchanged. How the records are protected: security.

Limits you control

Each tool needs its own scope, and the person ticks which ones the agent gets. Turn on approval for an envelope, or for every agent send on the account, and it waits for a person; an agent can never approve. Revoke a key or disconnect an app under API & Agents at any time. No tool moves money: an agent can attach a link to your own invoice, and Trustline never collects payment. Plans and the trial: pricing.

Questions about agents and e-signatures

Can an AI agent send documents for signature without a person?
Yes, once two things are done by a person: they approve the connection with one click, and they start the 14-day free trial with a card. After that the agent creates the document, adds the signers and sends it; each signer gets an email link straight away, because approval is off by default. If you want to read every contract first, turn on approval and the envelope waits for a person.
What is an e-signature MCP server?
It is a server that offers e-signature actions as tools an AI client can call through the Model Context Protocol. Trustline's runs at https://trustline.app/api/mcp over Streamable HTTP, so there is nothing to install. Reads and writes are separate tools, each needing its own permission, and a help tool lists the operations and their arguments on demand.
Which AI clients can connect?
Any MCP client that speaks Streamable HTTP. Claude, ChatGPT and Grok connectors take the URL and sign in with OAuth. Cursor, VS Code, Windsurf and Claude Code can send the URL with an API key header. A headless agent can ask the person to approve it by email and then receives its own key. Anything that can make HTTP requests can use the REST API instead.
Does the agent need me to create an API key first?
No. With OAuth the agent registers itself and the person clicks Allow. Without OAuth, the agent sends the person's email to the device flow or the sign-up endpoint and gets a code to show them; the person checks the code and clicks Approve in the email, and the agent then collects its key from the token endpoint. The account and the key exist only after that click. Deny creates nothing.
Can the agent start the trial, pay for a plan or approve its own envelopes?
No. API keys and OAuth tokens cannot open checkout, start the trial, change the plan, manage billing, change account settings or approve an envelope. The agent can prepare drafts meanwhile. If it sends before the trial starts, the send fails with a plan_required error that carries a checkout link; the agent passes that link on, and the person starts the 14-day free trial with a card.
How does the agent know when a document is signed?
Through events instead of repeated status checks. Clients on MCP 2026-07-28 can poll an event cursor, hold a short stream or subscribe a webhook for sent, viewed, signed, completed, voided and declined. Older clients can register a signed webhook or read the status. Events can be replayed from a cursor for up to 30 days, so an agent that restarts picks up where it stopped.
What proof is there of who signed?
Every action on an envelope is written to an append-only audit trail in which each event's hash covers the one before it. When everyone has signed, the agent can download the signed PDF and an audit certificate that lists the events. Anyone can upload the PDF to the verify page to check it has not changed.
Can the agent sign on someone's behalf?
No. Each signer opens their own email link, agrees to sign electronically and signs. No operation signs for them. The agent can remind signers whose turn it is, or void an envelope before it is signed.

Connect your agent

One URL for any MCP client. Sending starts with a 14-day free trial.