Stripe Fraud MCP

Stripe Fraud MCP

Enables fraud analysis and management through Stripe's Radar system, allowing users to assess payment risk, create refunds, and access any Stripe API endpoint. Focuses on fraud detection with automated recommendations while providing full Stripe API access.

Category
Visit Server

README

Stripe Fraud MCP

TypeScript Model Context Protocol (MCP) server that wraps the official stripe SDK. The server focuses on fraud and Radar operations while still exposing a raw request tool that lets an LLM call any Stripe REST endpoint. It is designed to run locally or inside Smithery for hosting.

Features

  • stripe_fraud_insight – Given a payment_intent_id or charge_id, pulls Radar early fraud warnings, risk scores, disputes, refunds, and reviews, then returns a recommendation (refund, manual_review, or monitor).
  • stripe_create_refund – Creates refunds against a charge or payment intent, supporting partial amounts, reasons, and metadata.
  • stripe_raw_request – Full access to the Stripe API via stripe.rawRequest, so you can reach any endpoint that is not yet wrapped in a specialized tool.
  • Built for Smithery (stdio + Streamable HTTP builds) so you can host it as a managed MCP service without writing glue code.

Prerequisites

  • Node.js 20+
  • Stripe secret key with the necessary permissions.
  • Smithery CLI (npx @smithery/cli) for local builds and development.

Smithery Configuration

The Smithery runtime picks up the configuration schema that lives in src/index.ts. When you install or run the server you will be prompted for:

Config key Required Description
stripe_api_key Secret key used to authenticate Stripe requests.
stripe_api_version Optional API version override (defaults to your account version).
default_stripe_account Optional connected account ID used when a request does not specify one.
log_level Minimum log level to emit (debug, info, warn, error). Defaults to info.

The repository includes smithery.yaml, so Smithery knows to treat it as a TypeScript project and to compile from src/index.ts.

Local Development

npm install
npm run dev  # wraps `smithery dev`

smithery dev will prompt for your configuration values (or you can provide a --config file). It spins up both stdio and SHTTP transports so you can test with smithery proxy, Claude Desktop, or any MCP client.

Building for Deployment

  • npm run build:stdio – Produces .smithery/stdio/index.cjs for stdio transport.
  • npm run build:shttp – Produces .smithery/shttp/index.cjs for Streamable HTTP transport.
  • npm run build – Builds both artefacts.

When you push to Smithery, it runs the same build pipeline and hosts the generated artefact automatically.

Tool Reference

stripe_status

  • Input: Optional stripe_account override.
  • Output: Current server time, effective configuration (API version, log level, default account), and key flags from the Stripe account (charges/payouts enabled). Useful for quick health checks in Smithery.

stripe_fraud_insight

  • Input: payment_intent_id or charge_id (one required), include_events (boolean, default true).
  • Output: Structured fraud/risk summary with Stripe Radar data and an automated recommendation.

stripe_create_refund

  • Input: payment_intent_id or charge_id, optional amount, reason, metadata.
  • Output: Created refund plus Stripe response metadata.

stripe_raw_request

  • Input: HTTP method (GET, POST, DELETE), path, optional query, payload, idempotency_key, stripe_account, api_version.
  • Output: Raw response body and headers so you can reach any Stripe endpoint from the LLM.

Project Scripts

  • npm run dev – Runs smithery dev for interactive local development.
  • npm run build – Builds stdio and SHTTP bundles under .smithery/.
  • npm run build:stdio / npm run build:shttp – Build individual transports.
  • npm run typecheck – TypeScript diagnostics without emitting files.

Logging

  • The server emits structured JSON logs with timestamps, logger names, and context to make triage in Smithery or other observability tooling straightforward.
  • Set log_level in the Smithery configuration to control verbosity; debug includes every Stripe call and fraud-analysis step, while info surfaces tool invocations and outcomes.
  • Sensitive values (Stripe API keys, tokens, etc.) are automatically redacted from logged context.

Next Steps

  • Add additional purpose-built tools for dispute responses, Radar rule management, value list operations, etc., by wrapping the official SDK in new MCP handlers.
  • Implement optional caching or memoization if you anticipate repeated lookups.
  • Instrument with logging/observability before production use.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured