Skip to main content

Overview

The Sardis MCP Server exposes 50+ payment tools through the Model Context Protocol, enabling AI assistants like Claude Desktop, Cursor, and ChatGPT to execute secure payments, manage wallets, and enforce spending policies.

What is MCP?

The Model Context Protocol is Anthropic’s standard for connecting AI assistants to external tools and data sources. Think of it as a universal API for AI agents.

When to Use MCP

  • Desktop AI Assistants: Claude Desktop, ChatGPT Desktop, Windsurf
  • IDEs: Cursor, VS Code with MCP extension, Claude Code
  • No-Code Integration: Works without writing any code
  • Multi-Tool Workflows: Combine Sardis with other MCP servers

Installation

Claude Desktop

Edit your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the Sardis MCP server:
claude_desktop_config.json
{
  "mcpServers": {
    "sardis": {
      "command": "npx",
      "args": ["-y", "@sardis/mcp-server"],
      "env": {
        "SARDIS_API_KEY": "sk_live_your_api_key_here",
        "SARDIS_WALLET_ID": "wallet_abc123",
        "SARDIS_MODE": "live"
      }
    }
  }
}
Restart Claude Desktop to load the tools.

Cursor

Create .cursor/mcp.json in your project:
.cursor/mcp.json
{
  "mcpServers": {
    "sardis": {
      "command": "npx",
      "args": ["-y", "@sardis/mcp-server"],
      "env": {
        "SARDIS_API_KEY": "sk_live_...",
        "SARDIS_WALLET_ID": "wallet_..."
      }
    }
  }
}

Claude Code CLI

claude mcp add sardis -- npx -y @sardis/mcp-server
export SARDIS_API_KEY=sk_live_...

ChatGPT Desktop

  1. Open SettingsMCP Servers
  2. Click Add Custom
  3. Enter:
    • Name: sardis
    • Command: npx -y @sardis/mcp-server
    • Environment: SARDIS_API_KEY=sk_live_...

Available Tools

The MCP server exposes all Sardis functionality through 50+ tools:

Core Payment Tools

sardis_pay

Execute a payment with policy enforcement

sardis_get_balance

Check wallet balance and limits

sardis_check_policy

Validate payment against spending policy

sardis_list_transactions

View transaction history

Hold Management (Pre-Authorization)

ToolDescription
sardis_create_holdReserve funds for future payment
sardis_capture_holdCapture reserved funds
sardis_void_holdCancel a hold and release funds
sardis_release_holdRelease hold without capture
sardis_extend_holdExtend hold expiration

Agent & Wallet Management

ToolDescription
sardis_create_agentRegister a new AI agent
sardis_create_walletCreate non-custodial MPC wallet
sardis_list_agentsList all registered agents
sardis_list_walletsList all wallets

Virtual Cards

ToolDescription
sardis_issue_cardIssue virtual card for agent
sardis_freeze_cardTemporarily freeze card
sardis_unfreeze_cardUnfreeze a card
sardis_cancel_cardPermanently cancel card

Spending Analytics

ToolDescription
sardis_get_spending_summaryGet spending totals by period
sardis_get_spending_by_vendorVendor spending breakdown
sardis_get_spending_by_categoryCategory spending analysis
sardis_get_spending_trendsIdentify spending patterns

Group Budgets

ToolDescription
sardis_create_groupCreate agent group with shared budget
sardis_add_agent_to_groupAdd agent to spending group
sardis_get_group_spendingCheck group budget usage

Approvals

ToolDescription
sardis_request_approvalRequest human approval for payment
sardis_check_approvalCheck approval status
sardis_list_pending_approvalsList pending approval requests

Fiat On/Off Ramps

ToolDescription
sardis_fund_walletFund wallet via ACH/wire
sardis_withdraw_to_bankWithdraw to bank account
sardis_onramp_fiat_to_usdcConvert USD to USDC
sardis_offramp_usdc_to_fiatConvert USDC to USD
View the complete list of 50+ tools in the MCP Tools Reference.

Example Conversations

Once configured, your AI assistant can handle payment tasks naturally:
You: Check my wallet balance and pay $50 to OpenAI for API credits

Claude:
→ Using sardis_get_balance
  Balance: 1,000 USDC on Base
  Remaining daily limit: $500

→ Using sardis_check_policy
  Payment allowed: ✓
  Within limits: ✓

→ Using sardis_pay
  ✓ Paid $50 USDC to openai.com
  TX: 0x7f3b...a2c9
  Chain: Base
  Status: Confirmed

Your payment of $50 to OpenAI has been processed successfully.

Configuration

Environment Variables

VariableRequiredDefaultDescription
SARDIS_API_KEYYes-Your Sardis API key (get one)
SARDIS_WALLET_IDNo-Default wallet for operations
SARDIS_AGENT_IDNo-Agent ID for attribution
SARDIS_MODENosandboxlive or sandbox
SARDIS_CHAINNobaseDefault chain (base, polygon, ethereum)
SARDIS_API_URLNohttps://api.sardis.shAPI endpoint

Sandbox Mode (No API Key Needed)

Test Sardis without real funds using sandbox mode:
{
  "mcpServers": {
    "sardis": {
      "command": "npx",
      "args": ["-y", "@sardis/mcp-server", "--demo"],
      "env": {
        "SARDIS_MODE": "sandbox"
      }
    }
  }
}
No API key required. All operations are simulated.

Policy Configuration

Enforce spending policies via environment variables:
{
  "env": {
    "SARDIS_API_KEY": "sk_live_...",
    "SARDIS_POLICY_BLOCKED_VENDORS": "gambling.com,casino.net",
    "SARDIS_POLICY_ALLOWED_VENDORS": "openai.com,anthropic.com,aws.com",
    "SARDIS_REQUIRE_EXPLICIT_APPROVAL": "true"
  }
}

Resources

The MCP server exposes wallet data through resources:
Resource URIDescription
sardis://wallet/balanceCurrent balance and limits
sardis://wallet/infoWallet configuration
sardis://configServer configuration status
sardis://toolsList of all available tools
Access resources with:
You: Read sardis://wallet/balance

Prompts

Use built-in prompts for common workflows:
PromptDescription
pay-vendorMake a payment with policy checks
check-balanceCheck balance and limits
sandbox-tourGuided tour of sandbox features
Invoke with:
You: Use the pay-vendor prompt for $50 to OpenAI

Rate Limiting

The MCP server enforces per-tool rate limits to prevent abuse:
Tool CategoryLimit
Payment execution5 calls/minute
Wallet mutations3 calls/minute
Hold operations10 calls/minute
Read operations60 calls/minute

Security

Non-Custodial

All wallets use Turnkey MPC. Private keys never exist in a single location.

Policy Enforcement

Every transaction validated against:
  • Per-transaction limits
  • Daily/monthly spending caps
  • Merchant allowlists/blocklists
  • Category restrictions

Audit Trail

All operations logged to append-only ledger for compliance.

Troubleshooting

Tools Not Appearing

  1. Restart your MCP client after config changes
  2. Verify JSON syntax (no trailing commas)
  3. Check that npx is in your PATH
  4. View logs: tail -f ~/Library/Logs/Claude/mcp*.log (macOS)

API Key Errors

Error: Invalid API key
Verify your API key at sardis.sh/settings/api-keys

Rate Limit Exceeded

Rate limit exceeded for sardis_pay. Maximum 5 calls per minute.
Wait 60 seconds or optimize your agent’s logic to batch operations.

Next Steps

API Reference

Full documentation of all 50+ MCP tools

Build Agents

Learn how to build autonomous payment agents

Policy Engine

Understand spending policy enforcement

SDKs

Use Sardis in your own agent frameworks

Build docs developers (and LLMs) love