SuperAPIAI Directory

signdocs-mcp-server

github.com · AI developer platforms

Official MCP server for SignDocs Brasil, used to connect electronic signature and digital signature capabilities to MCP-enabled AI clients. Built on the official @signdocs-brasil/api SDK, it provides tools for creating signature sessions, managing multi-signer envelopes, uploading and downloading documents, verifying signatures, and managing webhooks, and supports both local stdio and remote Streamable HTTP transports. Remote mode supports per-session and per-tenant authentication and can act as an OAuth 2.0 resource server providing discovery endpoints. The server targets clients such as Claude Desktop, Claude Code, Cursor, and n8n, and is suitable for initiating signatures, handling documents, and receiving signature events within AI agent workflows.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Purpose

SignDocs Brasil MCP Server is a Model Context Protocol server for the SignDocs Brasil electronic signature API. It lets MCP-enabled AI clients (such as Claude Desktop, Claude Code, Cursor, etc.) directly call signature-related capabilities, including creating signature sessions, managing multi-signer envelopes, uploading and downloading documents, verifying signatures, and managing webhooks. Its action catalog is consistent with the official n8n, Zapier, and Make.com integrations.

The server is a lightweight adapter layer on top of the official @signdocs-brasil/api SDK; OAuth2 token exchange, caching, retries, and error handling are handled by the SDK.

Key capabilities

  • Create signature sessions.
  • Manage multi-signer envelopes.
  • Upload and download documents.
  • Verify signatures.
  • Manage webhooks.
  • Provide on-demand documentation via MCP resources: signdocs://quickstart (minimal signing flow and security notes), signdocs://policy-profiles (valid policyProfile values and CUSTOM steps), signdocs://webhook-events (subscribable event types).
  • Tools carry destructiveHint annotations and description warnings; compliant clients will prompt for human confirmation before calling. Annotations are only hints, and the client's auto-approval settings should still be checked.

Usage

  1. Create API credentials in the SignDocs console (app.signdocs.com.br → API) and provide them as environment variables.
  2. It is recommended to start in the hml environment first; HML data expires after about 7 days and is suitable for testing. Switch to production only when you need to create real, legally binding signatures.
  3. Connect an AI client: Claude Desktop is configured via claude_desktop_config.json; n8n uses AI Agent + MCP Client Tool, pointing to the hosted endpoint (https://mcp-hml.signdocs.com.br/mcp or https://mcp.signdocs.com.br/mcp),传输方式为 HTTP Streamable, and pass credentials via the X-SignDocs-Client-Id / X-SignDocs-Client-Secret request headers.

Remote HTTP transport (multi-tenant): the same set of tools is also provided via Streamable HTTP, so a single deployment can serve multiple AI agents/tenants, with each session authenticating using its own SignDocs credentials. The endpoint is POST /mcp, and MCP initialize requests must be authenticated, supporting three methods: Authorization: Bearer <token> (a SignDocs OAuth2 access token, passed through directly); Authorization: Basic base64(clientId:clientSecret) (the server performs the client_credentials exchange on your behalf); and the two plain request headers X-SignDocs-Client-Id + X-SignDocs-Client-Secret. You can use X-SignDocs-Environment: hml|production to select the environment per session.

The server acts as an OAuth 2.0 resource server: it provides GET /.well-known/oauth-protected-resource (RFC 9728, pointing to the SignDocs authorization server), and an unauthenticated initialize returns 401 + WWW-Authenticate; GET /healthz is a health check that requires no authentication.

Server environment variables include PORT, HOST, SIGNDOCS_ENVIRONMENT, MCP_PUBLIC_URL, MCP_CORS_ORIGIN, MCP_DNS_REBINDING_PROTECTION=true, and MCP_ALLOWED_HOSTS / MCP_ALLOWED_ORIGINS (recommended to enable in production).

Sessions are stored in process memory, so you should run a single instance or use sticky routing; multi-instance/serverless scenarios require sticky sessions in front, or replacing the session mapping with shared storage + EventStore (for recoverability). The expected production path is deployment as a NestedStack into the existing external-api Lambda + API Gateway. For serverless hosting, you can use the createLambdaHandler exported from @signdocs-brasil/mcp-server/lambda (an API Gateway HTTP API v2 handler that runs the MCP transport statelessly, with one server per invocation, no session storage, and the same authentication methods).

Known issues

n8n (observed on 2.47.4): add an Edit Fields node after the Chat Trigger. When the AI Agent calls a tool, n8n merges the agent input item into the tool parameters; under the When chat message received trigger, that item carries action: "sendMessage", and the create_signing_session tool has an optional action parameter, so when the model omits action, n8n fills in "sendMessage", causing the call to fail (path: ["action"], Expected object, received string). Workaround: place an Edit Fields (Set) node between the Chat Trigger and the AI Agent, keeping only chatInput ({{ $json.chatInput }}) and sessionId ({{ $json.sessionId }}), and turn off Include Other Input Fields. Any trigger field with the same name as a tool parameter will be affected by this merging.

Use cases and limitations

Suitable for scenarios involving initiating electronic signatures, managing signing envelopes, processing documents, and receiving signature events in AI agent workflows, and especially suitable for processes in the Brazilian market that require ICP-Brasil digital signatures, biometrics, and OTP.

Limitations: Trust sessions (/v1/trust-sessions) and resend-invite are not yet available in @signdocs-brasil/api v1.6.1 and will be added once the SDK supports them; ICP-Brasil A1 digital signatures are performed through the lower-level transaction/advance flow rather than hosted session configuration. Sessions are stored in process memory, so horizontal scaling requires an additional solution.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools