MCP ExplorerExplorer

Experimental Agentic Commerce With Stripe And Mcp

@hideokamotoon 17 days ago
1 MIT
FreeCommunity
AI Systems
A demo MCP server for e-commerce with Stripe integration on Cloudflare Workers.

Overview

What is Experimental Agentic Commerce With Stripe And Mcp

The experimental-agentic-commerce-with-stripe-and-mcp is a demo application that showcases how to deploy a remote MCP server integrated with Stripe on Cloudflare Workers, providing e-commerce functionalities without requiring authentication.

Use cases

Use cases include online stores needing a simple checkout process, developers testing Stripe integrations, and educational purposes for understanding MCP server deployments.

How to use

To use the server, deploy it on Cloudflare Workers using the provided deployment button or command line. After deployment, connect to the server via the Cloudflare AI Playground or local MCP clients using the mcp-remote proxy.

Key features

Key features include creating Stripe checkout sessions, retrieving product listings with search and filtering capabilities, and accessing Stripe product data.

Where to use

This MCP server can be used in e-commerce applications, particularly for businesses looking to integrate payment processing with Stripe in a serverless environment.

Content

[Experimental Demo] Stripe E-commerce MCP Server

This demo application demonstrates how to deploy a remote MCP server with Stripe integration on Cloudflare Workers. This server provides e-commerce functionality using Stripe and operates without authentication.

Features

This MCP server provides the following functionality:

Tools

  • create_checkout_session: Create Stripe checkout sessions
  • list_products: Retrieve product listings (with search and filtering capabilities)

Resources

  • products: Access to Stripe product data

Configuration

Required Environment Variables

  • STRIPE_API_KEY: Your Stripe API key

Deployment

Deploy to Workers

Alternatively, you can create the MCP server locally using the command line:

npm create cloudflare@latest -- stripe-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

After deployment, your MCP server will be accessible at a URL like:
stripe-mcp-server.<your-account>.workers.dev/sse

Usage

1. Connecting to Cloudflare AI Playground

  1. Go to https://playground.ai.cloudflare.com/
  2. Enter your deployed MCP server URL (stripe-mcp-server.<your-account>.workers.dev/sse)
  3. You can now use the Stripe MCP tools directly from the playground!

2. Connecting to Claude Desktop

You can also connect from local MCP clients using the mcp-remote proxy.

To connect your MCP server to Claude Desktop, follow Anthropic’s Quickstart and add the following configuration in Claude Desktop > Settings > Developer > Edit Config:

Restart Claude and the tools will become available.

API Specification

create_checkout_session

Creates a Stripe checkout session.

Parameters:

  • items: Array of product price_id and quantity
  • successUrl: Redirect URL on successful payment (optional)
  • cancelUrl: Redirect URL on payment cancellation (optional)

list_products

Retrieves product listings. Provides search and filtering functionality.

Parameters:

  • description: Search by product description (optional)
  • metadata: Search by metadata (optional)
  • name: Search by product name (optional)
  • operator: AND/OR search operator (optional)
  • limit: Maximum number of products to retrieve (default: 10)

Setup Notes

  1. Obtain a valid API key from your Stripe dashboard
  2. Set the STRIPE_API_KEY environment variable
  3. Ensure that valid products are created in your Stripe account

Development and Customization

To add your own tools to the MCP server, define each tool inside the init() method of src/index.ts using this.server.tool(...).

Tools

No tools

Comments