RK
RefundKit
Now in public beta

Refund infrastructure for AI agents

Process, track, and manage refunds programmatically. Built for AI agents with MCP server support, multi-processor routing, and a TypeScript SDK.

Get StartedRead Docs

Three lines to your first refund

Install the SDK, create a client, and process refunds. The { data, error } pattern makes error handling predictable.

refund.ts
import RefundKit from '@refundkit/sdk'

const rk = new RefundKit({ apiKey: 'rk_live_...' })

const { data, error } = await rk.refunds.create({
  transactionId: 'txn_abc123',
  amount: 2999,
  reason: 'product_not_received'
})

Everything you need for refund automation

From SDK to dashboard, RefundKit handles the full refund lifecycle.

Multi-processor

Route refunds through Stripe, PayPal, or any payment processor. One unified API, regardless of where the payment originated.

Agent-ready

Built-in MCP server with 5 tools for AI agents. Connect to Claude, OpenAI, LangChain, or any MCP-compatible agent framework.

Real-time tracking

Follow every refund from initiation to completion. Webhooks, event timelines, and API logs give full visibility into every transaction.

MCP server for AI agents

Connect RefundKit to Claude, GPT, or any MCP-compatible agent. Twelve tools for complete refund management — no custom integration code needed.

claude_desktop_config.json
{
  "mcpServers": {
    "refundkit": {
      "command": "npx",
      "args": ["@refundkit/sdk", "mcp"],
      "env": {
        "REFUNDKIT_API_KEY": "rk_live_..."
      }
    }
  }
}

Frequently asked questions

Everything you need to know about RefundKit.

RefundKit is refund infrastructure for AI agents and developers. It provides a TypeScript SDK, MCP server with 12 tools, and REST API for processing refunds, managing returns, preventing disputes, and automating approval workflows — all through one unified API.

RefundKit includes an MCP (Model Context Protocol) server with 12 tools that AI agents can call directly. Configure it in Claude Desktop, Cursor, GPT, LangChain, CrewAI, or any MCP-compatible agent. Agents can check eligibility, process refunds, track returns, and assess dispute risk autonomously.

RefundKit currently supports Stripe (full refund lifecycle including create, status, and cancel) and Square (processing and status). The unified API means your code stays the same regardless of which processor handles the payment. More processors are coming soon.

Under 5 minutes. Install the SDK with npm install @refundkit/sdk, sign up at app.refundkit.dev for a free API key, connect your Stripe account, and start processing refunds. The Free plan includes 1,000 refunds/month at no cost.

RefundKit scores each transaction for chargeback risk on a 0-100 scale using signals like amount anomalies, velocity spikes, and historical patterns. Transactions scoring 50+ are flagged for manual review. You can also manually flag suspicious transactions via the API or dashboard.

Yes. RefundKit manages the full return lifecycle including automatic RMA number generation, shipment tracking, inspection status, and resolution. Returns flow through statuses from requested to completed, with full visibility at each step.

Start processing refunds today

Free to start. No credit card required. Process your first refund in under 5 minutes.

Create Free Account