Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAX_PAY_USDNoMaximum payment amount in USD per call.1
THREE_WS_BASENoBase URL for three.ws API.https://three.ws
SOLANA_RPC_URLNoSolana mainnet RPC endpoint URL.https://api.mainnet-beta.solana.com
REQUIRE_CONFIRMNoIf 'true', requires explicit confirm=true parameter in pay_and_call.true
SOLANA_SECRET_KEYNoBase58 secret key of the Solana wallet that holds USDC. Required for pay_and_call and x402_wallet (to see balance) but not for read-only tools.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
x402_walletA

Show a Solana wallet's address and live SOL + USDC balance. With no address, derives the wallet from the configured signer (SOLANA_SECRET_KEY) — call this before pay_and_call to confirm there's USDC to spend. Read-only; never moves funds.

find_servicesA

Search the live x402 facilitator network (PayAI + Coinbase CDP bazaar) for paid services — HTTP APIs and MCP tools. Returns each match with its price, networks, and resource URL. Pass a resource into pay_and_call to use it. Read-only.

inspect_endpointA

Fetch an x402 endpoint and return its 402 payment requirements — every accepted scheme, network, asset, price and pay-to address — WITHOUT paying. If the endpoint is free, returns its result instead. No signer required. Use this to learn the cost before pay_and_call.

pay_and_callA

Call a paid x402 endpoint and settle the payment automatically, then return the result.

Two modes: • Self-custodial (default): signs with SOLANA_SECRET_KEY or secret arg — you hold the key. • Session-governed: pass session_token (a three.ws Payment Session token) — the platform wallet signs on your behalf; the session's budget, allowlist, and per-tx cap are enforced by the platform. No private key required. Supports Solana USDC and Base USDC sessions.

Pay in USDC (default) or, when the endpoint advertises it, in $THREE (set token:"three"). Bounded by max_usd and the MAX_PAY_USD cap; refuses before any money moves if the price is over the cap. With REQUIRE_CONFIRM on, the call refuses until re-issued with confirm:true.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nirholas/x402-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server