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

@swft-checkout/mcp

v1.0.0

Published

MCP server for Swft Checkout — query analytics, sessions and merchants from AI assistants

Readme

@swft-checkout/mcp

MCP server for Swft Checkout. Lets Claude and other AI assistants query your checkout analytics, sessions, billing, and merchant data directly.


Installation

Claude Desktop

Add to your Claude Desktop config file:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "swft": {
      "command": "npx",
      "args": ["-y", "@swft-checkout/mcp"],
      "env": {
        "SWFT_API_KEY": "your_merchant_api_key_here"
      }
    }
  }
}

Restart Claude Desktop after saving. You'll see "swft" appear in the tools panel.

Custom API URL

If you're self-hosting or using a staging environment:

{
  "mcpServers": {
    "swft": {
      "command": "npx",
      "args": ["-y", "@swft-checkout/mcp"],
      "env": {
        "SWFT_API_KEY": "your_merchant_api_key_here",
        "SWFT_API_URL": "https://api.staging.swft.co.uk"
      }
    }
  }
}

Tools

swft_analytics

Checkout performance overview: sessions started, completed, abandoned, and conversion rate. Optionally includes billing summary.

Parameters:

  • range7d, 30d, or 90d (default: 30d)
  • include_billingtrue to add GMV and fee breakdown (default: false)

Example prompts:

  • "What's my checkout conversion rate this month?"
  • "How is Swft performing over the last 90 days?"
  • "Show me checkout analytics including billing"

swft_sessions

Lists recent checkout sessions with customer email (masked), date, and WooCommerce order reference.

Parameters:

  • range7d, 30d, or 90d (default: 7d)
  • limit — number of sessions to return, max 50 (default: 10)

Example prompts:

  • "Show me the last 20 checkout sessions"
  • "List sessions from the past week"

swft_merchant_info

Returns your merchant account details: store URL, Stripe connection status, custom domain, checkout template, and webhook URL.

Example prompts:

  • "Is my Stripe account connected?"
  • "What domain is my Swft checkout on?"
  • "Show my merchant account details"

swft_recovery_stats

Abandoned cart recovery email performance broken down by the three recovery steps (30 min, 24 hr, 72 hr): emails sent, conversions, and recovery rates per step.

Parameters:

  • range7d, 30d, or 90d (default: 30d)

Example prompts:

  • "Show me my abandoned cart recovery stats"
  • "How well are my recovery emails performing?"
  • "Which recovery email step converts best?"

swft_billing

Total GMV processed through Swft, platform fees paid, net revenue, and average order value.

Parameters:

  • range7d, 30d, or 90d (default: 30d)

Example prompts:

  • "How much have I paid in Swft fees this quarter?"
  • "What's my total GMV through Swft this month?"
  • "Show me average order value for the last 30 days"

swft_ab_results

A/B test results if a test is configured: variant names, sessions per variant, conversion rates, and which variant is currently winning.

Example prompts:

  • "Is my A/B test showing a winner?"
  • "How are my checkout variants performing?"
  • "Which checkout template converts better?"

swft_list_merchants — Agency only

Lists all merchant accounts under your agency with their Stripe status and 30-day conversion rates. Requires an agency API key.

Example prompts:

  • "List all my client merchants and their conversion rates"
  • "Which of my clients has the lowest conversion rate?"
  • "Show me all merchants under my agency"

Agency Usage

Agency accounts work identically — use your agency API key instead of a merchant key. The swft_list_merchants tool becomes available, returning data across all merchants you manage.

{
  "mcpServers": {
    "swft": {
      "command": "npx",
      "args": ["-y", "@swft-checkout/mcp"],
      "env": {
        "SWFT_API_KEY": "your_agency_api_key_here"
      }
    }
  }
}

Local Development

cd sdk/mcp
npm install
npm run build
node dist/index.js

The server requires SWFT_API_KEY to be set in the environment before starting.