About Stripe
The Stripe AI repository collects SDKs and agent skills for building AI-powered products and billing on Stripe. It is aimed at developers who want to meter or bill LLM usage through Stripe and also covers access to Stripe's remote MCP server.
Key features
- 01Billing SDK for the Vercel ai library
- 02Token metering SDK for OpenAI, Anthropic and Gemini
- 03Remote MCP server with OAuth client access
- 04Agent skills and plugins for supported agent harnesses
Use cases
- 01Adding usage-based billing to an LLM application
- 02Installing the Stripe plugin in Claude Code or Cursor
- 03Guiding a coding agent to implement Stripe payments
MCP support
Stripe hosts a remote MCP server at https://mcp.stripe.com that supports secure OAuth-based client access. The repository also notes that MCP can be used to build autonomous agents.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.stripe.comclaude mcp add --transport http stripe https://mcp.stripe.com{"mcpServers":{"stripe":{"type":"http","url":"https://mcp.stripe.com"}}}Open in Cursor{"servers":{"stripe":{"type":"http","url":"https://mcp.stripe.com"}}}Open in VS Code{"mcpServers":{"stripe":{"type":"http","url":"https://mcp.stripe.com"}}}{"mcpServers":{"stripe":{"serverUrl":"https://mcp.stripe.com"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project README
Stripe AI
This repo is the one-stop shop for building AI-powered products and businesses on top of Stripe.
It contains a collection of SDKs to help you integrate Stripe with LLMs and agent frameworks, including:
@stripe/ai-sdk- for integrating Stripe's billing infrastructure with Vercel'saiand@ai-sdklibraries.@stripe/token-meter- for integrating Stripe's billing infrastructure with native SDKs from OpenAI, Anthropic, and Google Gemini, without any framework dependencies.
Model Context Protocol (MCP)
Stripe hosts a remote MCP server at https://mcp.stripe.com. This allows secure MCP client access via OAuth. View the docs here.
You can also build autonomous agents with MCP as well.
Agent skills
Agent skills are instructions that agents can use to build faster and more accurately. Stripe offers a collection of skills that help your agents use the latest best practices when building with Stripe.
If you use one of these popular agent harnesses, we recommend installing the official Stripe plugins, which include additional agent tools and update automatically.
Claude Code
Run this command in your project:
claude plugin install stripe@claude-plugins-official
Codex
Run this command in your project:
codex plugin add stripe@openai-curated
Cursor
Run this command in your project:
/add-plugin stripe
You can also install through the Cursor marketplace.
Grok Build
Run this command in your project:
grok plugin install stripe --trust
Agent Plugins
Installation methods currently vary by client for the new Agent Plugins standard, but you can point your client to our package via:
- Git URL:
https://github.com/stripe/ai - Subdirectory:
providers/agent-plugins/plugin/.
Manual installation
Manually installed skills don’t auto-update. Run
npx skills update -yto get the latest versions.
Run this command in your project:
npx skills add https://docs.stripe.com
License
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.