alexa-pay-mcp
Provides an Alexa+ agent with a wallet and payment tools, enabling it to pay for 402-gated resources via the AwLPay x402 rail, quote conversions, verify settlement receipts, list available rails, and check wallet balance.
Supports settling payments on the Bitcoin rail as part of the 402 payment flow.
Supports settling payments over the Bitcoin Lightning rail as part of the 402 payment flow.
Supports settling payments on the Solana USDC rail as part of the 402 payment flow.
Supports settling payments on the Stellar XLM rail as part of the 402 payment flow.
Click on "Deploy 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., "@alexa-pay-mcppay 1.00 USDC for the 402-gated report at example.com"
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.
This repo has moved into the verse. Development continues at ceedot-rock/WalletVerse, in folder alexa-pay-mcp/. This copy is archived and read-only - history preserved, nothing lost.
alexa-pay-mcp
Give an Alexa+ agent a wallet. A self-hosted MCP server (spec 2025-11-25, Streamable HTTP) that lets an AI agent pay for 402-gated resources — powered by the AwLPay x402 rail.
Built for the Amazon Build, Ship, Shape hackathon — Alexa+ track (self-hosted MCP server / Agent Skill on the open MCP standard).
What it does
Agents hit HTTP 402 Payment Required and stop. This server is the missing
client: five tools that take an agent from "pay 1 USDC for the report"
to a verified settlement receipt.
Tool | What it does |
| Full 402 flow: GET → 402 → pick rail from |
| Anything-to-anything conversion quote via AwLPay's ConverterRouter (or refusal when the law says no) |
| Check a settlement receipt: tx hash, rail, integer amount, payee, timestamp |
| Rails the payer can settle: Base USDC, Solana USDC, Tron USDT, Bitcoin, Lightning, Stellar XLM, BSC |
| Address, network, caps, lifetime spend ledger |
Related MCP server: @arispay/payagent-mcp
How it works
Alexa+ agent ──MCP/Streamable HTTP──► alexa-pay-mcp ──x402──► seller (402)
pay("1.00 USDC for the report")
│
▼
402 + accepts[] → select rail → EIP-712 sign (resource-bound)
│ caps enforced BEFORE signing
▼
X-PAYMENT ──► 200 + receipt ──► verified (5 checks) ──► ledgerMoney rules: amounts are integers parsed from decimal strings ("1.00" →
1,000,000 micro-USDC); floats are refused at the door. Caps ($10/call,
$25/lifetime) live in the wallet, not the caller. Testnet default; mainnet
needs the literal confirmation string. Replay a proof and the seller 409s it.
See docs/ARCHITECTURE.md for the full flow.
Install & run
git clone https://github.com/ceedot-rock/alexa-pay-mcp && cd alexa-pay-mcp
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
# stdio (Claude Desktop / MCP inspector)
PYTHONPATH=src .venv/bin/python -m alexa_pay_mcp.server
# Streamable HTTP (self-hosted, Alexa+ track)
MCP_TRANSPORT=streamable-http PYTHONPATH=src .venv/bin/python -m alexa_pay_mcp.serverClaude Desktop config:
{ "mcpServers": { "alexa-pay": {
"command": "/path/to/alexa-pay-mcp/.venv/bin/python",
"args": ["-m", "alexa_pay_mcp.server"],
"env": { "PYTHONPATH": "/path/to/alexa-pay-mcp/src" } } } }Demo (zero real money — mock seller):
PYTHONPATH=src .venv/bin/python demo/demo_flow.pyTests:
PYTHONPATH=src .venv/bin/python -m pytest tests/ -q # 29 passedLive mode: AWL_MODE=live (default AWLPAY_BASE_URL=https://awlpay.fly.dev).
Wallet: AWL_WALLET_PASSWORD (required — no default), AWL_WALLET_DIR;
mainnet additionally needs AWL_NETWORK=mainnet +
AWL_MAINNET_CONFIRM="I UNDERSTAND".
Security (fail closed since the 2026-10-08 disclosure):
The Streamable-HTTP transport (
MCP_TRANSPORT=streamable-http) refuses to start withoutMCP_BEARER_TOKEN; every request needs the matchingAuthorization: Bearerheader. It binds127.0.0.1by default (override withMCP_HTTP_HOST,MCP_HTTP_PORT).Live-mode
resource_urls are scheme-checked (http/https only) and refused when they resolve to internal addresses.
Product feedback (for Amazon)
What worked: FastMCP made the Streamable HTTP server straightforward; the MCP 2025-11-25 tool surface mapped cleanly onto a pay/quote/verify flow; EIP-712 typed-data signing keeps the auth gasless and resource-bound.
What didn't: end-to-end testing against a real Alexa+ client requires Amazon-side access we don't have — all client interop was validated against the MCP inspector and stdio/HTTP transports locally.
What we'd change about the Alexa+ MCP surface: a standard way for a server to advertise payment capability (402 handling, accepted rails) in its capability handshake, so agents discover "I can pay" the same way they discover tools.
License
Apache-2.0 — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Attribution and settlement infrastructure for AI agent content access over HTTP 402 and MCP.
Pay-per-action access to APIs and MCP tools over Lightning L402 and Base USDC x402.
Discover machine-payable APIs, probe x402 payment terms, and run seller operations. Non-custodial.
Non-custodial stablecoin bill-pay rails on Celo & Base for AI agents, settled on-chain via MCP.
Related MCP Servers
- AlicenseAqualityAmaintenanceA budget-bound x402 payment wallet for AI agents: it autonomously pays HTTP 402 payment-gated URLs across every major chain (EVM, Solana, and many non-EVM families). Self-custodial and backendless, your key, your RPC, with spend caps enforced before any on-chain send.89MIT

@arispay/payagent-mcpofficial
AlicenseAqualityAmaintenanceEnables AI agents to call paid APIs and settle HTTP 402 payment challenges with USDC on Base, without private keys ever being involved.7173 npmMIT- AlicenseNot gradedqualityDmaintenanceEnables pay-per-call access control for AI agents using HTTP 402 and on-chain settlement, allowing microtransactions for API usage.46 PyPIMIT
- AlicenseAqualityCmaintenanceEnables AI agents to discover and pay for x402-gated HTTP APIs, handling 402 Payment Required flows with local signing. Supports EVM and Solana with non-custodial wallet management.3127 npmMIT