npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@signatrust/mcp-server

v0.1.2

Published

Model Context Protocol server for the SignaTrust document signing API

Downloads

47

Readme

@signatrust/mcp-server

Model Context Protocol (MCP) server for the SignaTrust document signing API. Enables AI assistants like Claude to create envelopes, manage templates, check signing status, and verify blockchain anchors via natural language.

Quick Start

Claude Code

claude mcp add signatrust -- npx -y @signatrust/mcp-server

Then set your API key in the MCP server environment.

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "signatrust": {
      "command": "npx",
      "args": ["-y", "@signatrust/mcp-server"],
      "env": {
        "SIGNATRUST_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

Available Tools

| Tool | Description | Required Scope | |------|-------------|---------------| | list_envelopes | List envelopes with status filter and pagination | envelopes:read | | get_envelope | Get full envelope details (signers, docs, blockchain) | envelopes:read | | create_envelope | Create and send envelope for signing. Accepts documentIds (after upload_document) or templateId (backend copies the template). Supports three-tier securityLevel. | envelopes:write | | list_templates | List available document templates | templates:read | | upload_document | Read a local file and upload it to SignaTrust, returning a document ID for create_envelope | documents:write | | analyze_document | Run AI contract analysis on an envelope (Gemini-powered risk/sentiment review, plan-gated) | ai:analyze | | verify_blockchain | Verify Solana anchor and return composite hash + file hash + explorer URL | envelopes:read |

Three-tier security. create_envelope accepts securityLevel: STANDARD (bearer token only), VERIFIED (adds SMS/email OTP — recommended for employment, vendor, or healthcare consent), or CERTIFIED (adds WebAuthn biometric + device binding — recommended for real estate, high-value, or regulatory signings).

API Key Scopes

Create an API key at Settings > API Keys in your SignaTrust dashboard. Assign scopes based on what tools you need:

| Scope | Tools Enabled | |-------|--------------| | envelopes:read | list_envelopes, get_envelope, verify_blockchain | | envelopes:write | create_envelope | | templates:read | list_templates | | documents:write | upload_document | | ai:analyze | analyze_document |

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | SIGNATRUST_API_KEY | Yes | - | API key starting with sk_live_ | | SIGNATRUST_API_URL | No | https://app.signatrust.io | API base URL |

Natural Language Examples

Once connected, you can ask your AI assistant things like:

  • "List all my pending envelopes"
  • "Upload ~/Documents/nda.pdf and send it to [email protected] with VERIFIED security"
  • "Show me available templates, then create a lease agreement from the residential template for John Doe"
  • "Check the blockchain verification for envelope env_abc123 and show me the composite hash"
  • "Run AI analysis on envelope env_xyz — I want to know if there are any risky clauses before the signer reviews it"

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Type check
npm run typecheck

# Local smoke test
SIGNATRUST_API_KEY=sk_live_xxx SIGNATRUST_API_URL=http://localhost:3000 node dist/server.js

Architecture

src/
  server.ts                      # Entry point — env validation, MCP server setup, stdio transport
  handlers.ts                    # Tool definitions and handler dispatch (testable)
  errors.ts                      # RFC 7807 ProblemDetails -> MCP tool error mapping
  vendor/signatrust-sdk/         # Vendored HTTP client + types (zero external runtime deps)
  *.test.ts                      # Co-located test files

The HTTP client and API types are vendored under src/vendor/signatrust-sdk/ so this package has no external runtime dependencies beyond @modelcontextprotocol/sdk.