Overview
Slash provides an MCP server that lets AI agents interact with the Slash API. The server exposes tools to list endpoints, inspect schemas, and make API calls — all through the standard MCP protocol. When an RSA public key is provided, sensitive card data (PAN and CVV) is RSA-encrypted before it reaches the agent, ensuring raw card numbers are never exposed to the AI. If no key is provided, raw card data will be returned as plaintext.Connection Parameters
| Parameter | Required | Description |
|---|---|---|
apiKey | Yes | Your Slash API key (get one here). Pass as ?apiKey= query parameter or X-API-Key header. |
rsaPublicKey | No | Base64-encoded RSA public key (no PEM markers). Pass as ?rsaPublicKey= query parameter or X-RSA-Public-Key header. When provided, card data (PAN/CVV) is RSA-encrypted before being returned. When omitted, raw card data is returned as plaintext. |
Available Tools
| Tool | Description |
|---|---|
list_endpoints | Lists all Slash API endpoints with method, path, and description. |
get_endpoint_schema | Returns the full schema for a specific endpoint, with all $ref references resolved. |
call_api_endpoint | Calls a Slash API endpoint with the given method, path, query parameters, and body. |
Setup by AI Platform
- Claude Desktop
- Claude Code
- ChatGPT
- Cursor
- Codex
- OpenClaw
Add the following to your Claude Desktop configuration file:Restart Claude Desktop to apply the changes.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Card Data Encryption
To encrypt card data before it reaches the agent, generate an RSA key pair and pass the public key:rsaPublicKey parameter to your connection URL:
apiKey and rsaPublicKey can also be passed as X-API-Key and X-RSA-Public-Key headers.
When you provide an rsaPublicKey and request card details with include_pan=true or include_cvv=true, the PAN and CVV are returned as RSA-encrypted, base64-encoded ciphertext. The agent never sees the raw card numbers.
If no rsaPublicKey is provided, the PAN and CVV are returned as plaintext.
The encryption uses RSA-OAEP with your public key.
Decrypting card data
Use your private key to decrypt the base64-encoded values:Python
Node.js
Keep your private key secure. It should never be shared, committed to source control, or exposed to the AI agent.