MCP server for PayXor client operations - quotes, balances, entitlements
npm install @payxor/mcp-clientMCP (Model Context Protocol) server for PayXor client operations. Enables AI models to interact with PayXor for payments, quotes, and entitlement checks.
- Quote Generation: Get signed payment quotes for products
- Transaction Confirmation: Confirm payments after execution
- Balance & Allowance Checks: Query token balances and approvals
- Entitlement Verification: Check session, feature, and pass statuses
- Chain & Token Info: Access supported chains and stablecoins
``bash`
npm install @payxor/mcp-clientor
yarn add @payxor/mcp-clientor
pnpm add @payxor/mcp-client
Add the following to your AI tool's MCP config:
`json`
{
"mcpServers": {
"payxor-client": {
"command": "npx",
"args": ["@payxor/mcp-client"]
}
}
}
> Note: You can use yarn dlx or pnpm dlx instead of npx.
| AI Tool | Config File Path |
|---------|------------------|
| Cursor | .cursor/mcp.json (in project root) |~/Library/Application Support/Claude/claude_desktop_config.json
| Claude Desktop | (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) |~/.codeium/windsurf/mcp_config.json
| Windsurf | |
| Cline | VS Code Command Palette → "Cline: MCP Servers" |
Continue uses a different format. Add to ~/.continue/config.json:
`json`
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "npx",
"args": ["@payxor/mcp-client"]
}
}
]
}
}
`bash`
npx @payxor/mcp-client
| Variable | Default | Description |
|----------|---------|-------------|
| PAYXOR_API_URL | https://api.payxor.xyz | PayXor backend API URL |
Generate a signed payment quote for a product.
Parameters:
- appId (string): App ID (bytes32 hex string)productId
- (string): Product ID (bytes32 hex string)chainId
- (number): Target blockchain chain IDpayer
- (string): Payer's wallet addresstokenAddress
- (string, optional): Specific token for payment
Confirm a payment transaction after execution.
Parameters:
- txHash (string): Transaction hashquoteId
- (string): Quote ID from the quote
Check a user's token balance.
Parameters:
- tokenAddress (string): ERC20 token addressowner
- (string): Wallet addresschainId
- (number): Chain ID
Check token allowance for PayXor contract.
Parameters:
- tokenAddress (string): ERC20 token addressowner
- (string): Wallet addresschainId
- (number): Chain ID
Get public product information.
Parameters:
- appId (string): App ID (bytes32 hex string)productId
- (string): Product ID (bytes32 hex string)
Get supported stablecoins for an app on a chain.
Parameters:
- appId (string): App ID (bytes32 hex string)chainId
- (number): Chain ID
Check if a user has an active session entitlement.
Parameters:
- payer (string): User's wallet addressappId
- (string): App ID (bytes32 hex string)productId
- (string): Product ID (bytes32 hex string)chainId
- (number): Chain ID
Check if a user has unlocked a specific feature.
Parameters:
- payer (string): User's wallet addressappId
- (string): App ID (bytes32 hex string)entitlementId
- (string): Entitlement ID (bytes32 hex string)chainId
- (number): Chain ID
Check if a user holds a specific pass.
Parameters:
- payer (string): User's wallet addressappId
- (string): App ID (bytes32 hex string)passId
- (string): Pass ID (bytes32 hex string)chainId
- (number): Chain ID
List of all supported blockchain networks (mainnets and testnets).
Stablecoins available on a specific chain. Resources are registered for all supported chains.
Help guide for entitlement checks. Use the check_session, check_feature, and check_pass tools for dynamic entitlement verification.
Prompts are reusable templates that help users interact with PayXor in a consistent way.
Guides through the complete payment process: check product info, verify balance/allowance, get quote, and confirm transaction.
Parameters:
- appId (string): App ID (bytes32 hex string)productId
- (string): Product ID (bytes32 hex string)chainId
- (number): Target blockchain chain IDpayer
- (string): Payer's wallet addresstokenAddress
- (string, optional): Specific token address for payment
Template for checking various types of user entitlements (session, feature, or pass).
Parameters:
- payer (string): User's wallet addressappId
- (string): App ID (bytes32 hex string)chainId
- (number): Chain IDentitlementType
- (enum): Type of entitlement - "session", "feature", or "pass"entitlementId
- (string): Product ID (for session), Entitlement ID (for feature), or Pass ID (for pass)
Checks if a user has sufficient balance and allowance before getting a payment quote.
Parameters:
- payer (string): User's wallet addressappId
- (string): App ID (bytes32 hex string)productId
- (string): Product ID (bytes32 hex string)chainId
- (number): Chain IDtokenAddress
- (string, optional): Specific token address to check
`
User: Check if 0x1234... has an active session for product 0xabcd... on Base
AI: [Uses payxor://entitlement/session/0x1234.../0xapp.../0xabcd.../8453]
The session is active and will expire in 2 hours.
User: Get a quote for that product
AI: [Uses get_quote tool]
Here's the quote:
- Amount: 10 USDC
- Expires: 1 hour
- Quote ID: 12345
``
Mainnets: Ethereum (1), Arbitrum (42161), Base (8453), Polygon (137), Optimism (10), Avalanche (43114), BNB Chain (56), zkSync (324)
Testnets: Sepolia (11155111), Base Sepolia (84532), Arbitrum Sepolia (421614), and more
MIT