swiftsign-mcp

swiftsign-mcp

E-signature for AI agents. One unauthenticated call returns a sandbox API key (no account, no browser), then the agent can send documents for signature, check status, and download the sealed PDF plus Certificate of Completion.

Category
Visit Server

README

SwiftSign

AI-native e-signatures. Send, track, and seal contracts from your terminal — Claude Code, Cursor, Zed, or any MCP-aware agent. ESIGN / UETA / PIPEDA compliant sealed PDFs with audit trail.

Stack

  • Next.js 16.2 (App Router, Turbopack, React 19)
  • Prisma 7 (preview) + Neon PostgreSQL via @prisma/adapter-pg
  • Cloudflare R2 (S3-compatible) for PDFs + page images
  • Resend for transactional email
  • Stripe for billing (Free / Pro $15 / Team $79, monthly)
  • Upstash Redis for rate limiting
  • Sentry for error tracking

Setup on a fresh machine

git clone https://github.com/shahdadk/swiftsign.git
cd swiftsign
./scripts/bootstrap.sh

The bootstrap script installs Vercel CLI, logs you in (browser auth), links the checkout to the SwiftSign Vercel project, pulls production env vars into .env.local, and runs npm install. After it finishes, run npm run dev and you're operational.

Manual local development

# Install (legacy-peer-deps is pinned in .npmrc, required for React 19 / Next 16)
npm install

# Generate the Prisma client (writes to src/generated/prisma/, gitignored)
npx prisma generate

# Apply schema migrations to your dev DB
npx prisma migrate deploy

# Run the dev server
npm run dev

Copy .env.local.example to .env.local and fill in the values, or run ./scripts/bootstrap.sh to pull them from Vercel.

Commands

  • npm run dev — start dev server on port 3000
  • npm run build — production build (Turbopack)
  • npm run start — run the built server
  • npm run lint — ESLint
  • npx prisma generate — regenerate the Prisma client
  • npx prisma migrate dev --name <slug> — create a new migration
  • npx tsx prisma/seed.ts — seed a local user (manual)

Deploying to Vercel

  1. Provision services:

    • Neon PostgreSQL database; copy the pooled connection string to DATABASE_URL.
    • Cloudflare R2 bucket; create an API token with read/write; copy account ID, access key ID, secret, bucket name.
    • Resend domain (verify DNS for the EMAIL_FROM domain) and an API key.
    • Stripe products: SwiftSign Pro ($15/mo recurring), SwiftSign Team ($79/mo recurring); copy price IDs. Enable Stripe Tax if collecting GST/HST/VAT. Set the customer portal return URL to https://swiftsign.ca/dashboard/billing and enable cancel + payment-method update.
    • Stripe webhook endpoint: https://swiftsign.ca/api/stripe/webhook, listening for checkout.session.completed, customer.subscription.created/updated/deleted, invoice.paid, invoice.payment_failed. Copy the signing secret.
    • Upstash Redis instance for rate limiting; copy REST URL and token.
    • Sentry project (Next.js); copy the DSN.
    • Generate a CRON_SECRET (16+ random chars). Vercel cron will pass this as Authorization: Bearer <CRON_SECRET>.
  2. Set environment variables on the Vercel project (Production + Preview). See .env.local.example for the full list.

  3. Deploy: connect the repo, push to main. Vercel runs npx prisma generate and next build from package.json.

    Run schema migrations once via npx prisma migrate deploy — locally, or as part of a build hook. Subsequent deploys re-apply automatically if you wire it into the build command.

  4. Verify: visit /api/healthcheck. Returns { status: "ok" } with DB and R2 checks green.

Architecture

  • /api/v1/envelopes — public REST API; bearer-token auth via Authorization: Bearer <apiKey>. Quota enforced (5/mo on Free, unlimited on Pro/Team).
  • /sign/[token] + /api/sign/[token] — recipient signing flow. No account; signingToken is the only credential.
  • /dashboard/* — sender UI. Cookie session via swiftsign_session. Pages: envelopes list, envelope detail, billing, settings (API key + sessions), webhooks.
  • /api/stripe/webhook — Stripe → DB sync (subscription + plan).
  • /api/cron/webhook-retry — runs every 5 minutes via vercel.json to retry failed outbound webhook deliveries.

MCP server

Independent npm package at mcp/. Build + publish:

cd mcp
npm install
npm run build
npm publish

Users install with:

claude mcp add swiftsign -- npx -y swiftsign-mcp

Configure with SWIFTSIGN_API_KEY (and optionally SWIFTSIGN_API_URL for self-hosted instances).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured