mcpField
P
payport

payport

Local
github.com/CloudCorpRecordsFinance0Updated 2w ago

About payport

payport is a CLI and MCP server for managing Stripe account data and payment operations. It lets agents or terminal users work with customers, catalog items, invoices, payments, disputes, and subscriptions through Stripe’s REST API.

Key features

  1. 01Manage customers and products
  2. 02Create prices and payment links
  3. 03Create and finalize invoices
  4. 04Check balances and issue refunds
  5. 05Manage coupons, disputes, and subscriptions
  6. 06CLI and stdio MCP modes

Use cases

  1. 01Create a customer and catalog product
  2. 02Generate a hosted payment link
  3. 03Prepare and finalize an invoice
  4. 04Review disputes or cancel subscriptions

MCP support

It runs as a stdio MCP server and exposes Stripe operations as tools for MCP clients. Calls use the Stripe REST API and return its JSON response.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"cloudcorprecords-payport": {
"command": "npx",
"args": [
"-y",
"@reneturcios/payport"
]
}
}
}
Run commandnpx -y @reneturcios/payport

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@reneturcios/payport0.1.0
ocighcr.io/cloudcorprecords/payport:0.1.0

Tools

21

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
namestringYesThe customer's full name.
emailstringNoThe customer's email address.

Details

From the project README

payport

payport gives an agent a working doorway into a Stripe account: open a customer record, put a product and a price in the catalog, hand a buyer a hosted payment link, draft an invoice and finalize it, check the balance, refund a payment, issue a coupon, answer a dispute, and manage subscriptions. Each operation is one call against the Stripe REST API, and the API's JSON answer comes back as-is. It runs from the command line or as an MCP server for agents.

A Stripe secret key is required. Put it in the STRIPE_SECRET_KEY environment variable; the key is sent to the API as a Bearer token and never appears in output. When the variable is missing, every operation fails with an error that names it.

Install

npx @reneturcios/payport list-customers --limit 5

Or run the container image:

docker run -i -e STRIPE_SECRET_KEY ghcr.io/cloudcorprecords/payport

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

CLI

export STRIPE_SECRET_KEY="your secret key"

payport create-customer --name "Ada Lovelace" --email [email protected]
payport list-customers --email [email protected] --limit 5
payport create-product --name "Trail Guide" --description "A field guide"
payport list-products --limit 10
payport retrieve-balance

payport --version

Exit codes: 0 on success, 1 when an API call fails (including a missing STRIPE_SECRET_KEY), 2 for usage errors.

MCP server

One bin serves both faces. The mcp subcommand starts a stdio MCP server:

npx -y @reneturcios/payport mcp

MCP client configuration:

{
  "mcpServers": {
    "payport": {
      "command": "npx",
      "args": ["-y", "@reneturcios/payport", "mcp"],
      "env": { "STRIPE_SECRET_KEY": "your secret key" }
    }
  }
}
Tools
ToolInputWhat it does
create_customername (string, required), email (string, optional)Create a customer.
list_customersemail (string, optional), limit (integer, optional)List customers, optionally filtered by exact email.
create_productname (string, required), description (string, optional)Create a catalog product.
list_productslimit (integer, optional)List products.
create_priceproduct, currency, unit_amount (all required)Create a price for a product; unit_amount is in the smallest currency unit.
list_pricesproduct (optional), limit (optional)List prices, optionally for one product.
create_payment_linkprice, quantity (required), redirect_url (optional)Create a hosted payment link.
list_payment_intentscustomer (optional), limit (optional)List payment intents.
create_invoicecustomer (required), days_until_due (optional)Create a draft invoice sent by email (send_invoice).
create_invoice_itemcustomer, price, invoice (all required)Add a priced line item to a draft invoice.
list_invoicescustomer (optional), limit (optional)List invoices.
finalize_invoiceinvoice (required)Finalize a draft invoice.
retrieve_balance—Retrieve the account balance.
create_refundpayment_intent (required), amount (optional)Refund a payment intent, in full or in part.
create_couponduration (required), percent_off, amount_off, currency, name, duration_in_months (optional)Create a coupon.
list_couponslimit (optional)List coupons.
list_disputescharge, payment_intent, limit (all optional)List disputes.
update_disputedispute (required), evidence (object, optional), submit (boolean, optional)Add evidence to a dispute and optionally submit it.
list_subscriptionscustomer, status, limit (all optional)List subscriptions.
cancel_subscriptionsubscription (required)Cancel a subscription.
update_subscriptionsubscription (required), price, cancel_at_period_end (optional)Update a subscription.

This is the documented core subset of the Stripe agent toolkit's 22-tool MCP set: search_stripe_documentation (a hosted documentation search, not a Stripe API operation) is not implemented.

Development

npm install
npm run build   # tsc -> dist/
npm test        # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

Comments

Markdown supported

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.