Back to Home
PayMCP icon

paymcp-subscription-demo

Verified Safe

by PayMCP

Overview

Provides a Model Context Protocol (MCP) server that gates access to AI tools based on active Stripe subscriptions and OAuth/OIDC authentication.

Installation

Run Command
yarn dev

Environment Variables

  • HOST
  • PORT
  • OIDC_ISSUER
  • AUTH_HOST
  • AUTH_PORT
  • AUTH_REALM
  • OAUTH_CLIENT_ID
  • OAUTH_CLIENT_SECRET
  • STRIPE_SECRET_KEY
  • STRIPE_SUBSCRIPTION_ID

Security Notes

The server uses robust security libraries (jose for JWT, MCP SDK for auth middleware) and strictly relies on environment variables for secrets. CORS is set to '*' for demo purposes, which is a security risk in production and would require hardening. The token verifier explicitly warns and skips audience validation if the 'aud' claim is missing from the JWT, which is a potential misconfiguration from the identity provider.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens5
Stars0
Forks0
Last Update2025-12-05

Tags

MCPSubscriptionOAuthStripeAuthentication