Skip to main content

Overview

The Model Context Protocol (MCP) is an open standard that lets AI agents use external tools and APIs. The hosted mag3nt MCP server turns the full mag3nt API into agent-native tools, so an assistant can issue cards, check balances, pay endpoints, and reconcile activity on its own. The server is live at mcp.mag3nt.com. That page also offers one-click install links for popular clients.
Connection URL: https://mcp.mag3nt.com/mcp (modern Streamable HTTP transport). Authenticate with the header api-key-auth: <MAG3NT_API_KEY>. Generate a key from the Developer tab at mag3nt.com.
Do not use the legacy https://mcp.mag3nt.com/sse endpoint. The HTTP+SSE transport is deprecated. Always use the /mcp Streamable HTTP endpoint.

Install

Replace mag3nt_live_YOUR_API_KEY with your own key in each example.

Cursor

Open the mcp.mag3nt.com install page and click Cursor for one-click setup, or add it manually under Cursor Settings > MCP:
{
  "mcpServers": {
    "Mag3nt": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@0.1.25",
        "https://mcp.mag3nt.com/mcp",
        "--header",
        "api-key-auth:${API_KEY_AUTH}"
      ],
      "env": {
        "API_KEY_AUTH": "mag3nt_live_YOUR_API_KEY"
      }
    }
  }
}

Claude Code

claude mcp add --transport http Mag3nt https://mcp.mag3nt.com/mcp --header "api-key-auth:mag3nt_live_YOUR_API_KEY"

Claude Desktop

Open Settings > Developer > Edit Config, then merge this into the mcpServers object in claude_desktop_config.json and restart Claude Desktop:
{
  "mcpServers": {
    "Mag3nt": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@0.1.25",
        "https://mcp.mag3nt.com/mcp",
        "--header",
        "api-key-auth:${API_KEY_AUTH}"
      ],
      "env": {
        "API_KEY_AUTH": "mag3nt_live_YOUR_API_KEY"
      }
    }
  }
}

VS Code

Use the install link on mcp.mag3nt.com, or add the same Mag3nt server entry shown above to your VS Code MCP configuration.

Gemini CLI

gemini mcp add --transport http Mag3nt https://mcp.mag3nt.com/mcp --header "api-key-auth:mag3nt_live_YOUR_API_KEY"

Codex CLI

Add this to your Codex config:
[mcp_servers.Mag3nt]
url = "https://mcp.mag3nt.com/mcp"
http_headers = { "api-key-auth" = "mag3nt_live_YOUR_API_KEY" }

Available tools

Once connected, your agent can call every capability of the mag3nt API. Tools are grouped by area below.

Cards

ToolWhat it does
cards-cards-createIssue a virtual card backed by treasury balance
cards-cards-bulk-createIssue up to 1,000 cards in one atomic request
cards-cards-listList all cards for the wallet
cards-cards-list-transactionsA single card’s transaction history
cards-cards-top-upAdd funds to an active card from treasury
cards-cards-freezeBlock all spending on a card
cards-cards-unfreezeResume spending on a frozen card
cards-cards-claimMove a card’s unspent funds back to treasury (full or partial sweep)
cards-cards-closeRetire an empty card with no open obligations
cards-cards-update-controlsUpdate MCC locks and single-use settings
transactions-list-accountWallet activity across every card, including closed ones

Payments

ToolWhat it does
payments-payments-executePay any x402, AP2, or MPP endpoint with a card; auto-detects the protocol and settles on-chain

Funding and withdrawals

ToolWhat it does
funding-funding-get-balanceTreasury balance for the wallet
funding-funding-list-tokensAccepted tokens per network
funding-funding-verifyCredit treasury from an on-chain funding transaction
funding-funding-get-wallet-balanceReal-time on-chain balance for any address
withdrawals-withdrawals-createWithdraw treasury funds to a wallet
withdrawals-withdrawals-listWithdrawal history
ToolWhat it does
pay-links-pay-links-createCreate a shareable payment link
pay-links-pay-links-listList your pay links
pay-links-pay-links-getGet public pay link details
pay-links-pay-links-cancelCancel a pay link
pay-links-pay-links-get-statusCheck payment status
pay-links-pay-links-resolveResolve a link for processing
pay-links-pay-links-prepareDiscover payment requirements
pay-links-pay-links-settleSubmit on-chain settlement proof

Protocols

ToolWhat it does
x402-x402-discoverDiscover x402 payment requirements for a URL
x402-x402-receiveVerify and accept an x402 payment
ap2-ap2-get-agent-cardGet the default agent card for AP2
ap2-ap2-list-payment-methodsList AP2 payment methods
ap2-ap2-create-mandateCreate a spending mandate for recurring payments
ap2-ap2-executeExecute a payment against a mandate
ap2-ap2-list-mandatesList a card’s mandates
ap2-ap2-settleSettle an AP2 payment between agents
mpp-mpp-create-sessionCreate an MPP payment session
mpp-mpp-discoverDiscover MPP capabilities for a URL
mpp-mpp-receiveVerify and accept an MPP payment
mpp-mpp-streams-openOpen a payment stream for continuous micropayments
mpp-mpp-streams-tickAdvance a payment stream by one tick
mpp-mpp-streams-closeClose a payment stream
mpp-mpp-streams-getGet payment stream details

Keys, webhooks, and status

ToolWhat it does
keys-keys-createGenerate an API key (returned once)
keys-keys-listList API keys
keys-keys-revokeRevoke an API key
keys-keys-validateValidate an API key
webhooks-webhooks-createRegister a signed payment.settled webhook
webhooks-webhooks-listList registered webhooks
webhooks-webhooks-deleteDelete a webhook
settlement-settlement-get-statusCheck settlement status for a transaction
status-status-getPlatform status, protocols, and capabilities
status-status-get-configTreasury addresses and token registry

Try it

Once connected, ask your agent something like:
Issue a card for $10, use it to pay for data from weather-api.com, then move any unspent funds back to my treasury and close the card.
The agent will call cards-cards-create, payments-payments-execute, cards-cards-claim, and cards-cards-close in sequence, with the full record available through transactions-list-account.