payments-toolkit-mcp
Provides card number validation and network identification for American Express cards, including Luhn checksum verification and IIN/BIN prefix recognition.
Provides card number validation and network identification for Diners Club cards, including Luhn checksum verification and IIN/BIN prefix recognition.
Provides card number validation and network identification for Discover cards, including Luhn checksum verification and IIN/BIN prefix recognition.
Provides card number validation and network identification for JCB cards, including Luhn checksum verification and IIN/BIN prefix recognition.
Provides card number validation and network identification for Mastercard cards, including Luhn checksum verification and IIN/BIN prefix recognition.
Provides card number validation and network identification for Visa cards, including Luhn checksum verification and IIN/BIN prefix recognition.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@payments-toolkit-mcpCheck if this card number is valid: 4111 1111 1111 1111"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
payments-toolkit-mcp
A minimal Model Context Protocol (MCP) server, built as a hands-on learning project (see PLAN.md for the full step-by-step walkthrough).
It exposes payments-related validation utilities as MCP tools and one static resource — all local logic, no network calls, no API keys required.
Tools
validate_card_number— Luhn checksum validation for a card number (digits only, 8-19 length).detect_card_type— identifies the card network (Visa, Mastercard, American Express, Discover, Diners Club, JCB) from the IIN/BIN prefix.validate_iban— format, country-specific length, and ISO 13616 mod-97 checksum validation for an IBAN.
Related MCP server: stripe-mcp-server
Resources
card_networks(payments-toolkit://card-networks) — static JSON listing of supported card networks and their prefix ranges.
Prerequisites
Node.js 18+ (project developed against v24)
Setup
pnpm install
pnpm run buildUsage
Run the server standalone (it waits on stdio, so this is mainly for sanity checking):
pnpm run startInspect and call the tools/resource directly via a local web UI, without wiring up a client:
pnpm run inspectConnect to Claude Code
claude mcp add payments-toolkit-mcp -- node /path/to/payments-toolkit-mcp/dist/index.js
claude mcp listInside a Claude Code session, run /mcp to confirm the connection and see
the discovered tools/resources.
Project structure
src/
index.ts # composition root: creates the server, wires up transport
lib/ # pure validation/lookup logic (no MCP dependency)
luhn.ts
card-networks.ts
iban.ts
schemas.ts
tools/ # one file per registered MCP tool
validate-card-number.ts
detect-card-type.ts
validate-iban.ts
resources/ # one file per registered MCP resource
card-networks.tsNotes
Never
console.login this server — stdout is reserved for the JSON-RPC protocol stream over stdio. Useconsole.errorfor any debug output.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceAn MCP server for validating JSON against schemas, checking email deliverability, verifying URLs, assessing data quality, and validating API responses using RFC-compliant checks and heuristic analysis.11MIT
- AlicenseAqualityBmaintenanceA local MCP server for Stripe payment operations with 52 tools across 8 domains, featuring built-in PII redaction and strict input validation for safe AI-assisted development workflows.52401MIT
- AlicenseAqualityCmaintenanceAn MCP server that provides AI agents with tools to validate SWIFT MT and ISO 20022 MX payment messages, check BIC/IBAN correctness, and convert between MT and MX formats.711MIT
- AlicenseAqualityAmaintenanceA fully local, closed-world MCP server that manages, validates, and serves bank-specific ISO 20022 clearing profiles and rule packs, enabling AI agents to discover profiles, fetch them, lint payloads against them, and validate rule-pack definitions.41Apache 2.0
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Conformance checker for MCP servers. Free, no key, verdicts recomputable and re-measured daily.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ramigs/payments-toolkit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server