Skip to main content
Glama
MoRSwitch MCP

MoRSwitch MCP

Official
by spleyapp

MoRSwitch + CA SB 122 MCP (io.github.spleyapp/morswitch-mcp)

MoRSwitch Lemon Squeezy Shutdown & CA SB 122 Billing Audit Preview

Zero-dependency, 100% read-only Model Context Protocol (MCP) server and Node 20+ CLI auditing both urgent 2027 SaaS billing & tax cliffs locally with zero API keys and zero telemetry:

  1. March 31, 2027 Lemon Squeezy Shutdown (audit_lemon_squeezy_country_and_mrr) — Checks Stripe Managed Payments' 37-country allowlist across 197 countries, quantifies PayPal recurring subscription churn exposure, flags dropped features (License Keys, Digital Files, Native Affiliates, Hosted Storefront), and models Year-1 vs. Year-2 MoR fees (including Stripe Managed Payments' Dec 1, 2027 1.5% -> 3.5% promo cliff) across Creem.io, Dodo Payments, Polar.sh, Paddle Billing, Stripe Managed Payments, Whop, and Gumroad.

  2. January 1, 2027 California SB 122 SaaS & AI Sales Tax (audit_ca_sb122_tax_split) — Evaluates California's $500,000 current/prior-year economic nexus with explicit separation of marketplace-facilitated CA sales (AWS/Shopify/Apple) vs. direct-billed CA sales so you never double-remit, calculates legal savings from unbundling exempt IaaS (txcd_10010001), custom dev (txcd_10701300), and video games (txcd_10201000) from taxable SaaS/AI (txcd_10103001) and downloaded software (txcd_10202003), and outputs the 3-point pre-Jan-1 Stripe verification checklist.

  3. Migration Resources & PayAI x402 Endpoints (get_billing_migration_resources) — Direct machine-readable references to interactive calculators, Migration Kits ($49/$99/$149), Done-For-You Sprints ($499), and PayAI Base Mainnet x402 API endpoints ($0.01/$0.02 USDC).


Install in Claude Desktop, Claude Code, Cursor, or Windsurf

MCP Config (Zero Install via npx)

{
  "mcpServers": {
    "morswitch": {
      "command": "npx",
      "args": ["-y", "github:spleyapp/morswitch-mcp"]
    }
  }
}

One-Click .mcpb Bundle

Download morswitch-mcp.mcpb from GitHub Releases or install directly from the Official MCP Registry (io.github.spleyapp/morswitch-mcp).

Quick Terminal CLI Mode

# Run both audits (Ukraine $12k MRR Lemon Squeezy exit + CA SB 122 marketplace-triggered nexus)
npx -y github:spleyapp/morswitch-mcp --demo

# Audit a specific Lemon Squeezy store
npx -y github:spleyapp/morswitch-mcp --mor --country=IN --mrr=15000 --aov=49 --intl=60 --paypal=20

# Audit California SB 122 direct + marketplace sales
npx -y github:spleyapp/morswitch-mcp --sb122 --ca-sales=220000 --marketplace-ca-revenue=310000 --mix=saas:45,ai:25,iaas:20,dev:10

Related MCP server: EU Data Act SaaS Switching & Zero-Egress Fee Auditor MCP Server

Exposed MCP Tools (Read-Only, Local Deterministic Math)

1. audit_lemon_squeezy_country_and_mrr

Parameter

Type

Default

Description

countryCode

string

"US"

ISO-2 country code or country name across 197 countries (e.g. "UA", "IN", "BR", "GB")

monthlyGmv

number

10000

Monthly GMV / MRR in USD

avgOrderValue

number

39

Average invoice / order value in USD

intlPct

number

55

International card share (0-100)

paypalPct

number

22

PayPal recurring share (0-100) exposed to March 31, 2027 drop

needsLicenseKeys

boolean

true

Requires Lemon Squeezy License Key API replacement

needsDigitalFiles

boolean

false

Requires hosted file delivery

needsAffiliates

boolean

true

Requires affiliate tracking

needsStorefront

boolean

false

Requires hosted storefront

hasShippedBinaries

boolean

false

Customers run desktop/CLI/WP binaries that cannot auto-update overnight

codeSnippet

string

""

Optional code snippet scanned for hardcoded api.lemonsqueezy.com/v1/licenses/* calls

exportedKeyStatuses

string[]

null

Exported license statuses (flags revocation leaks if "disabled" / "expired" omitted)

preservesExistingKeyStrings

boolean

null

Whether existing customer license key strings are imported verbatim

failOpenGraceDays

number

null

Offline grace-window duration (days) for legacy binaries hitting 410/DNS errors

v1.1.0 License-Key Migration Hardening (license_key_migration_risks): Every audit_lemon_squeezy_country_and_mrr call now checks hardcoded api.lemonsqueezy.com/v1/licenses/* calls, the disabled/expired key export revocation trap, shipped-binary update windows & fail-open grace policies, and verbatim customer key string preservation. (Informed by DEV.to community discussion — credit: Arthur / Keyharbor.)

2. audit_ca_sb122_tax_split

Parameter

Type

Default

Description

caSales

number

650000

Direct-billed annual California sales (USD)

marketplaceCaRevenue

number

0

Marketplace-facilitated CA revenue (counts toward $500k nexus; excluded from direct tax base)

mix

object | string

saas:50,ai:20,dl:5,iaas:15,dev:10

SKU weights (saas, ai, dl, iaas, dev, games)

ratePct

number

9.25

Blended CA district sales tax rate (7.25-11.5)

resalePct

number

10

B2B CDTFA-230 resale-exempt share (0-100)

physical

boolean

false

California employees, contractors, office, or inventory

maxBuyer

number

0

Largest single CA buyer annual spend (>$5M Direct Pay Permit rule)

3. get_billing_migration_resources

Parameter

Type

Default

Description

topic

"all" | "lemon-squeezy" | "ca-sb122" | "x402"

"all"

Returns calculators, Kits ($49/$99/$149), $499 DFY Sprints, and PayAI x402 specs


Live Interactive Calculators, Deep-Dive Articles & Kits


Disclaimer: morswitch-mcp provides deterministic fee comparisons, Stripe txcd_* reference mappings, and informational tax readiness estimates. It is not licensed CPA, tax, or legal advice. Verify final tax obligations with a qualified California tax professional and merchant underwriting terms directly with your billing provider.

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables auditing of bank transactions and receipts against IRS Schedule C expense categories such as home office, software, mileage, and meals. It calculates deductible amounts and estimated tax savings while flagging potential audit risks.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables compliance teams and AI agents to bulk-audit SaaS, cloud, API, and hosted AI domains for the 12 January 2027 switching and egress-fee rules, open export obligations, portability registers, government-access disclosures, and DORA exit readiness. Produces compliance scores, prioritized findings, SDK fingerprints, outreach hooks, and ready-to-paste remediation artifacts.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP-compatible AI assistants to determine which states a business has crossed sales tax nexus thresholds in, which vendors require 1099-NEC or 1099-MISC filings, how healthy a set of books is, and which federal business tax deadlines apply by entity type (including Form 5472 for foreign-owned single-member LLCs). Requires no sign-up or API key and never requests SSNs, EINs, or bank details.
      5
      323 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables local, offline auditing of AI provider billing statements to detect runaway spend anomalies, generate dispute evidence PDFs and preventive guardrail configs, and split multi-client usage into client-ready invoice PDFs.
      MIT