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

@spotdraft/spotdraft-mcp

v0.0.7

Published

Integrate the SpotDraft API into agentic workflows via MCP

Readme

SpotDraft MCP Server

Integrate the SpotDraft API into agentic workflows via MCP.

This server provides tools to interact with SpotDraft's contract management features.

Tools

Contract Management

  1. get_contract_list: Retrieves a list of contracts.
  2. get_contract_download_link: Obtains a download link for a contract.
  3. get_contract_status: Gets the status of a specific contract.
  4. get_contract_activity_log: Retrieves the activity log (comments) for a contract.
  5. get_contract_approvals: Fetches approvals for a specific contract.
  6. get_contract_key_pointers: Fetches key pointers for a specific contract.

Template Management

  1. get_templates: Retrieves a list of contract templates.
  2. get_template_details: Fetches details for a specific contract template.
  3. get_template_metadata: Fetches metadata for a specific contract template.

Counter Party Management

  1. get_counter_parties: Retrieves a list of counter parties.
  2. get_counter_party_details: Fetches details for a specific counter party.

Facet Discovery

  1. get_workspace_facets: Retrieves available search facets for filtering and searching contracts in the workspace.
  2. get_workspace_facet_options: Gets facet options for contract search filtering.

Other Tools

  1. get_key_pointers: Retrieves key pointers.
  2. get_contract_types: Retrieves available contract types.

Alpha Software Disclaimer

This software is currently in Alpha and is not covered by any support SLA. It should not be used in production environments.

Setup

Prerequisites

  • Node.js 20 or higher
  • SpotDraft API credentials

Credentials

You will need a Client ID and Client Secret from your SpotDraft account.

Environment Variables

Set the following environment variables before running the server:

  • SPOTDRAFT_CLIENT_ID: Your SpotDraft API Client ID.
  • SPOTDRAFT_CLIENT_SECRET: Your SpotDraft API Client Secret.
  • SPOTDRAFT_BASE_URL (Optional): The base URL for the SpotDraft API. Defaults to https://api.spotdraft.com/api. You might need to change this based on your data residency region (e.g., https://api.us.spotdraft.com/api, https://api.eu.spotdraft.com/api).

Installation & Usage

Option 1: NPX (Recommended)

Usage with Claude Desktop

To use this with Claude Desktop, add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "spotdraft": {
      "command": "npx",
      "args": ["@spotdraft/spotdraft-mcp"],
      "env": {
        "SPOTDRAFT_CLIENT_ID": "<YOUR_CLIENT_ID>",
        "SPOTDRAFT_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
        "SPOTDRAFT_BASE_URL": "<SPOTDRAFT_BASE_URL>" (optional)
      }
    },
    "streamable-http-spotdraft": {
      "type": "streamable-http",
      "url": "http://localhost:3000/mcp?baseUrl=https%3A%2F%2Fapi.us.spotdraft.com%2Fapi",
      "note": "For Streamable HTTP connections, add this URL directly in your MCP Client"
    }
  }
}

Direct Usage

npx @spotdraft/spotdraft-mcp

Option 2: Local Development

  1. Clone the repository:
git clone https://github.com/spotdraft/spotdraft-mcp.git
cd spotdraft-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Set environment variables and run:
export SPOTDRAFT_CLIENT_ID="your_client_id"
export SPOTDRAFT_CLIENT_SECRET="your_client_secret"
npm start

Option 3: Docker

Build and Run

  1. Build the Docker image:
docker build -t spotdraft-mcp .
  1. Run in stdio mode (default - for MCP clients):
docker run -e SPOTDRAFT_CLIENT_ID=your_client_id -e SPOTDRAFT_CLIENT_SECRET=your_client_secret spotdraft-mcp
  1. Run in HTTP mode (for web access):
docker run -p 3000:3000 -e SPOTDRAFT_CLIENT_ID=your_client_id -e SPOTDRAFT_CLIENT_SECRET=your_client_secret -e SPOTDRAFT_BASE_URL=https://api.us.spotdraft.com/api spotdraft-mcp node build/index.js --http
  1. Run with custom port:
docker run -p 8080:8080 -e SPOTDRAFT_CLIENT_ID=your_client_id -e SPOTDRAFT_CLIENT_SECRET=your_client_secret -e SPOTDRAFT_BASE_URL=https://api.us.spotdraft.com/api spotdraft-mcp node build/index.js --http --port=8080

Docker Compose (Optional)

Create a docker-compose.yml file:

version: '3.8'
services:
  spotdraft-mcp:
    build: .
    ports:
      - '3000:3000'
    environment:
      - SPOTDRAFT_CLIENT_ID=${SPOTDRAFT_CLIENT_ID}
      - SPOTDRAFT_CLIENT_SECRET=${SPOTDRAFT_CLIENT_SECRET}
      - SPOTDRAFT_BASE_URL=${SPOTDRAFT_BASE_URL}
    command: ['node', 'build/index.js', '--http']

Then run:

docker-compose up

Server Modes

The server supports two modes:

Stdio Mode (Default)

  • Used by MCP clients like Claude Desktop
  • Communicates over standard input/output
  • No network ports required

HTTP Mode

  • Provides REST endpoints for web access
  • Useful for testing and web integrations
  • Includes health check endpoint at /health
  • Main MCP endpoint at /mcp

To run in HTTP mode, add the --http flag:

node build/index.js --http

When running in HTTP mode, you can pass the base URL using environment variables:

export SPOTDRAFT_BASE_URL="https://api.us.spotdraft.com/api"
node build/index.js --http

API Endpoints (HTTP Mode)

When running in HTTP mode, the following endpoints are available:

  • GET /health - Health check endpoint
  • POST /mcp - Main MCP endpoint for tool calls

Development

Scripts

  • npm run build - Compile TypeScript
  • npm run watch - Watch mode for development
  • npm run inspector - Run MCP inspector for debugging

Project Structure

src/
├── index.ts                 # Main server file
├── contract/               # Contract management tools
├── counter_parties/        # Counter party tools
├── key_pointers/          # Key pointers tools
└── templates/             # Template management tools

License

MIT License - see LICENSE file for details.

Support

This is alpha software. For issues and feature requests, please use the GitHub repository.