@asterpay/mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MOCK | No | Set to true to run locally with mock demo data; no API key is needed. | |
| MODE | No | Server mode: seller or buyer. Can also be set with the --mode CLI flag. | seller |
| DEBUG | No | Enable verbose logging to stderr. | false |
| MERCHANT_SLUG | No | Your merchant identifier for seller mode. | |
| ASTERPAY_API_KEY | No | Your AsterPay API key. Required for non-mock operation; not needed when using --mock. | |
| ASTERPAY_API_URL | No | AsterPay API endpoint. | https://api.asterpay.io |
| SPENDING_LIMIT_DAILY_EUR | No | Daily spending hard cap in EUR. For non-mock buyer mode, at least one of SPENDING_LIMIT_DAILY_EUR or SPENDING_LIMIT_WEEKLY_EUR is required. | |
| SPENDING_LIMIT_WEEKLY_EUR | No | Weekly spending hard cap in EUR. For non-mock buyer mode, at least one of SPENDING_LIMIT_DAILY_EUR or SPENDING_LIMIT_WEEKLY_EUR is required. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_productsA | List all products available from the merchant. Returns names, prices in EUR, descriptions, availability, and variants. |
| get_productA | Get detailed information about a specific product by its ID. Use list_products first to find available product IDs. |
| check_availabilityB | Check if a specific product is currently in stock. Returns availability status, stock quantity, and current price. |
| get_business_infoA | Get business information for the merchant: operating hours, contact details, delivery zones and fees, return policy, and accepted payment methods. |
| 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. |
| get_order_statusA | Check the status of an existing order. Returns status (pending, confirmed, rejected, expired), payment info, and items. |
| 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. |
| 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. |
| 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| budget | Set up or check this agent's prepaid spending budget (AsterPay /budget) |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| merchant-info | Merchant business information: name, hours, contact, delivery, returns. |
| settlement | Settlement information: supported currencies, payment methods, facilitator details. |
| trust | Probe KYA (Know Your Agent) trust score and attestation data for this merchant. |
| agents-txt | Auto-generated agents.txt for this merchant, following the agents.txt discovery convention. |
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.