@asterpay/mcp-server
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., "@@asterpay/mcp-server Find bakeries in Berlin and order 2 croissants"
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.
@asterpay/mcp-server
EUR settlement MCP server for AI agent commerce.
The first MCP server that lets AI agents discover and buy from European merchants using the x402 protocol with EUR settlement via SEPA Instant.
Quick Start
Demo Mode (no API key needed)
Try it out immediately with built-in mock data:
{
"mcpServers": {
"asterpay-demo": {
"command": "npx",
"args": ["@asterpay/mcp-server", "--mock"]
}
}
}Seller Mode
Expose your products to AI agents:
{
"mcpServers": {
"my-shop": {
"command": "npx",
"args": ["@asterpay/mcp-server", "--mode", "seller"],
"env": {
"ASTERPAY_API_KEY": "ap_write_xxxxxxxxxxxx",
"MERCHANT_SLUG": "your-shop-slug"
}
}
}
}Buyer Mode
Let your agent discover and purchase from merchants:
{
"mcpServers": {
"asterpay-buyer": {
"command": "npx",
"args": ["@asterpay/mcp-server", "--mode", "buyer"],
"env": {
"ASTERPAY_API_KEY": "ap_buyer_xxxxxxxxxxxx",
"SPENDING_LIMIT_DAILY_EUR": "50",
"SPENDING_LIMIT_WEEKLY_EUR": "200"
}
}
}
}Related MCP server: @hpp-io/x402-mcp-bridge
Configuration
Variable | Required | Default | Description |
| No |
| Server mode: |
| Yes* | — | Your API key. *Not needed with |
| No |
| API endpoint |
| No | — | Your merchant identifier (seller mode) |
| No** | — | Daily spending cap. **Required for buyer mode (non-mock) |
| No** | — | Weekly spending cap. **At least one limit required for buyer mode |
| No |
| Enable verbose logging to stderr |
CLI Flags
asterpay-mcp --mode seller|buyer # Set mode
asterpay-mcp --mock # Use demo data, no API key needed
asterpay-mcp --smoke-test # Run diagnostic check and exit
asterpay-mcp --help # Show helpTools
Seller Mode (7 tools)
Tool | Description |
| List all products with prices in EUR, descriptions, availability |
| Get details for a specific product by ID |
| Check stock status and current price |
| Operating hours, contact, delivery zones, return policy |
| Place an order — returns x402 payment details |
| Check order status (pending/confirmed/rejected/expired) |
| Get x402 facilitator endpoint, USDC amount, network |
Buyer Mode (10 tools)
All seller tools plus:
Tool | Description |
| Find merchants by category, city, country, or trust score |
| Set soft spending limits within your hard caps |
| View spending today/this week and remaining budget |
Resources
Loaded automatically when the server starts:
URI | Content |
| Business name, hours, contact, delivery, returns |
| Currency (EUR), SEPA Instant, facilitator details |
| Probe KYA trust score (0-100), attestation count |
| Auto-generated agents.txt for discovery |
How It Works
AI Agent → MCP Server → AsterPay API → Merchant
│ │ │ │
│ list_products │ │
│ ──────────────► │ │
│ │ GET /products│ │
│ │ ────────────►│ │
│ │ │ │
│ place_order │ │ │
│ ──────────────► │ │
│ │ POST /orders │ │
│ │ ────────────►│ │
│ │ │ SEPA EUR │
│ │ x402 header │ ────────────►
│ ◄────────────── │ │
│ │ │ │
│ Agent pays USDC via x402 │ │
│ ────────────────────────────► │
│ │ AsterPay converts USDC→EUR │
│ │ │ ────────────►x402 Payment
place_order returns an x402 payment header. The actual USDC payment must be executed by your agent's x402 client.
Environments with full x402 support:
Custom agents with
@x402/axiosor similarHermes agents
Any MCP client with x402 integration
Claude Desktop limitation: Claude Desktop does not include an x402 client. Use --mock mode for testing and demos. For production, use a custom agent with x402 support.
Spending Limits
Spending limits are tracked in-memory for the lifetime of the server process:
ENV hard cap: Set via
SPENDING_LIMIT_DAILY_EUR/SPENDING_LIMIT_WEEKLY_EUR. Cannot be exceeded.Soft limits: Set at runtime via
set_spending_limit. Must be within the hard cap.Reset: Limits reset when the server restarts. Each
npxinvocation starts fresh.
Spending limits are best-effort and not a security boundary. For production enforcement, backend-side limits will be available in a future release.
Security
Scoped API keys: Use the narrowest scope for your use case (
ap_read_*,ap_write_*,ap_buyer_*)No secrets in logs: API keys are never logged, even in debug mode
x402 keys: The MCP server never handles private keys — that's your agent's responsibility
Prompt injection: ENV hard caps limit damage from prompt injection attacks
Development
git clone https://github.com/asterpay/mcp-server.git
cd mcp-server
npm install
npm run build
npm testRun locally in mock mode:
MOCK=true npx tsx src/index.tsLicense
Apache-2.0 — see LICENSE for details.
Built by AELIRA LTD for the x402 ecosystem.
Available Tools
9 toolscheck_availabilityB
Check if a specific product is currently in stock. Returns availability status, stock quantity, and current price.
Inputs: product_id (required), merchantSlug.
get_budget_statusA
Check the prepaid /budget balance: remaining USD, total spent, recent calls with per-call prices. Use BEFORE expensive calls to spend gracefully. FREE, no API key needed.
Inputs: token.
get_business_infoA
Get business information for the merchant: operating hours, contact details, delivery zones and fees, return policy, and accepted payment methods.
Inputs: merchantSlug.
get_order_statusA
Check the status of an existing order. Returns status (pending, confirmed, rejected, expired), payment info, and items.
Inputs: order_id (required), merchantSlug.
get_productA
Get detailed information about a specific product by its ID. Use list_products first to find available product IDs.
Inputs: product_id (required), merchantSlug.
get_x402_payment_detailsA
Get x402 payment details for an order: facilitator endpoint, USDC amount, network, and payment header. Your agent needs an x402 client (e.g. @x402/axios) to execute the actual payment.
Inputs: order_id (required), merchantSlug.
list_productsA
List all products available from the merchant. Returns names, prices in EUR, descriptions, availability, and variants.
Inputs: merchantSlug.
place_orderB
Place an order with a merchant. Creates an intent, then submits the order. Returns x402 payment details that your agent's x402 client needs to execute. In mock mode, simulates a successful order.
Inputs: items (required), merchantSlug, delivery_address.
set_budgetA
Activate a prepaid budget (AsterPay /budget) so the agent can spend on paid x402 APIs with a hard cap. Three modes: (1) pass an existing budget token (bud_...) to activate it; (2) pass amount_usd + tx_hash + wallet after your HUMAN sent the USDC, to create a new budget; (3) pass nothing to get funding instructions. An agent cannot grant itself money — a human must make the one-time USDC transfer (1-500 USDC on Base). Credited 1:1, no platform fee. Funding wallet is sanctions-screened (Chainalysis). No API key needed.
Inputs: token, wallet, tx_hash, amount_usd.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have clearly distinct resource/action boundaries: product browsing, ordering, payment details, and budget management are well separated. Minor overlap exists because availability and price appear in list/get product outputs, and place_order returns x402 payment details that get_x402_payment_details can also retrieve, but descriptions make the intended use clear.
All tool names use consistent snake_case with a verb_noun pattern: list_products, get_product, check_availability, get_business_info, place_order, get_order_status, get_x402_payment_details, set_budget, and get_budget_status. The prefixes are predictable and readable throughout.
Nine tools is well-scoped for a merchant commerce and x402 payment server. Each tool maps to a meaningful operation, and there is no unnecessary bloat.
The surface covers the core agent workflow: browse products, check stock, get business info, place orders, check order status, retrieve x402 payment details, and manage a prepaid budget. Some minor gaps remain, such as listing existing orders or canceling/refunding orders, but these are workarounds or outside the primary purchasing flow.
Maintenance
Related MCP Connectors
Agentic commerce network: discover sellers and products, negotiate, and pay USDC on Base via x402.
EUR settlement + trust for AI agent commerce: budgets, KYA, merchant discovery. 22 tools.
Multi-seller shopping for AI agents. Settle via Stripe MPP or x402 USDC on Base. Hosted.
Multi-seller shopping for AI agents. Settle via Stripe MPP or x402 USDC on Base. Hosted.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to perform e-commerce operations through a standardized interface implementing the x402 and Agentic Commerce Protocol (ACP). Supports merchant sessions, product search, and payment orchestration with production-ready security features.-

@hpp-io/x402-mcp-bridgeofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to autonomously pay for and discover services using HPP USDC.e over the x402 protocol, without API keys or manual signing.136 npmApache 2.0- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover and interact with a merchant's commerce layer, including product listing and checkout creation, while payments settle directly to the merchant's Stripe account.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI buyers to discover products, create orders, and complete payments across any merchant implementing the protocol, with enforced spending limits, consent checks, prompt-injection sanitization, and an immutable audit trail.-