Skip to main content
Glama
gate

gatepay-local-mcp

by gate

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
EVM_PRIVATE_KEYNoLocal EVM private key for local_private_key mode, hex with or without 0x prefix
SVM_PRIVATE_KEYNoLocal Solana private key for local_private_key mode, base58 encoded (optional)
GATE_PAY_CLIENT_IDNoMerchant client id for centralized payment payloads
PLUGIN_WALLET_TOKENNoMCP token from browser extension wallet for plugin_wallet mode
GATE_PAY_OAUTH_SCOPENoOAuth scope for device/login flow
QUICK_WALLET_API_KEYNoAPI key for MCP wallet service (optional)
QUICK_WALLET_MCP_URLNoMCP wallet endpoint URL for quick_wallet modehttps://walletmcp.gate.com/mcp
GATE_PAY_OAUTH_CLIENT_IDNoGate Pay OAuth client id for centralized payment mode
GATE_PAY_OAUTH_TOKEN_URLNoExplicit token endpoint path (optional)
PLUGIN_WALLET_SERVER_URLNoPlugin wallet server URL (optional, used in some configurations)
GATE_PAY_OAUTH_REFRESH_URLNoExplicit refresh endpoint path (optional)
GATE_PAY_OAUTH_CALLBACK_PORTNoLocal port for OAuth redirect18473
GATE_PAY_OAUTH_CLIENT_SECRETNoGate Pay OAuth client secret for centralized payment mode
GATE_PAY_OAUTH_BACKEND_ORIGINNoBase URL for OAuth backend for centralized payment mode
GATE_PAY_OAUTH_TOKEN_BASE_URLNoOrigin used to derive default token and refresh endpoints (optional)
GATE_PAY_CENTRALIZED_PAYMENT_URLNoHTTPS endpoint for submitting centralized payments
GATE_PAY_ACCOUNT_AUTHORIZE_ORIGINNoDomain for Gate Pay authorization pagehttps://gate.com
GATE_PAY_OAUTH_AUTHORIZE_USER_AGENTNoCustom User-Agent for authorization preflightgateio/web

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

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
x402_place_orderB

Send an HTTP request and return complete response information including headers, body, and the original request details. Returns status code, all response headers (including PAYMENT-REQUIRED if present), response body, and the original request parameters. Use this for any HTTP request where you need full response details.

x402_sign_paymentA

Parse X402 payment requirements from PAYMENT-REQUIRED header or response body, create a signed payment authorization, and submit the payment to complete a 402-protected request. Supports signing modes: local_private_key (local EVM wallet), quick_wallet (custodial MCP wallet), and plugin_wallet (browser extension wallet). For centralized payment (中心化支付), obtain Gate Pay access_token via x402_gate_pay_auth and use x402_submit_payment with sign_mode centralized_payment — no MCP calls for Gate Pay auth. Provide either payment_required_header or response_body containing X402 payment requirements.

x402_create_signatureA

Parse X402 payment requirements and create a signed payment authorization. Returns the complete payment payload including signature and the base64-encoded PAYMENT-SIGNATURE header value. Supports signing modes: local_private_key, quick_wallet, and plugin_wallet. The output can be used with x402_submit_payment to complete the payment request.

x402_submit_paymentA

Submit a signed payment to complete a 402-protected request. Takes the payment_signature from x402_create_signature and sends it to the merchant along with the original request. When sign_mode is centralized_payment, runs Gate Pay OAuth (local callback + remote token exchange) if needed, same as x402_gate_pay_auth, no MCP, and attaches Authorization: Bearer . Returns the final response from the merchant.

x402_gate_pay_authA

When the user chooses centralized_payment (中心化支付), run this tool to complete Gate Pay OAuth: browser opens Gate authorize URL, redirect hits localhost callback, then the client exchanges the code for access_token via the remote OAuth backend (GATE_PAY_OAUTH_TOKEN_BASE_URL, etc.). Stores access_token in-process for Authorization: Bearer on x402_submit_payment when sign_mode is centralized_payment. Success JSON includes gate_pay_access_token_masked and gate_pay_uid_masked (脱敏). Wallet MCP login (x402_quick_wallet_auth) is separate and not used for Gate Pay.

x402_quick_wallet_authA

When the user selects sign_mode quick_wallet, run this tool first to perform the same device-flow login/authorization as the quick_wallet signing path. If the in-process MCP token is already valid, returns ready status and wallet addresses; otherwise opens the browser flow (Gate by default, or Google if wallet_login_provider is google). After a fresh login succeeds, the user may need to confirm before continuing to payment. To switch authorization provider (e.g. Gate vs Google), restart the MCP server; the in-process wallet client keeps the current session until restart.

x402_centralized_paymentA

Execute centralized payment (中心化支付) by parsing PAYMENT-REQUIRED header, extracting payment information, and calling the Gate Pay centralized payment API. Automatically handles Gate Pay OAuth authentication if needed (same as x402_gate_pay_auth). Parses amount (converts from smallest unit by dividing by 10^6), currency, prepayId, and orderId from the header. Returns payment result including transaction details.

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/gate/gatepay-local-mcp'

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