x402-api MCP
An MCP server providing eight crypto and DeFi tools including price feeds, gas trackers, DEX quotes, token security scanning, whale tracking, yield scanning, funding rates, and wallet profiling. It utilizes the x402 protocol for pay-per-call micropayments in Base USDC, allowing agents to inspect data for free or enable autonomous payments via a wallet private key.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Retrieve real-time cryptocurrency prices for BTC, ETH, and SOL
- Check multi-chain gas prices for Ethereum, Base, Polygon, and Arbitrum
- Scan tokens for security flags and heuristic risks
- Track top whale holders and their supply shares
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@x402-api/mcp-server 1.0.5
{
"version": "1.0.5",
"transport": "stdio",
"identifier": "@x402-api/mcp-server",
"registryType": "npm",
"environmentVariables": [
{
"name": "X402_API_BASE_URL",
"format": "string",
"description": "x402 API base URL (default: https://x402-api.fly.dev)"
},
{
"name": "X402_WALLET_PRIVATE_KEY",
"format": "string",
"description": "Base wallet private key for optional EIP-3009 auto-pay. Default mode inspects payment requirements without paying."
},
{
"name": "X402_MAX_PER_CALL_USDC",
"format": "string",
"description": "Maximum USDC allowed per automatic tool call (default: 0.01)"
},
{
"name": "X402_REFERRAL_SOURCE",
"format": "string",
"description": "Optional referral label: github, glama, nohumans, bazaar, mcp, eliza, demo or test. Default mcp."
},
{
"name": "X402_EXPECTED_PAY_TO",
"format": "string",
"description": "Expected payment recipient; defaults to the official x402-api wallet. Change only when using a trusted alternative deployment."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"x402-api-mcp": {
"command": "npx",
"args": [
"-y",
"@x402-api/mcp-server@1.0.5"
],
"env": {
"X402_API_BASE_URL": "<YOUR_X402_API_BASE_URL>",
"X402_WALLET_PRIVATE_KEY": "<YOUR_X402_WALLET_PRIVATE_KEY>",
"X402_MAX_PER_CALL_USDC": "<YOUR_X402_MAX_PER_CALL_USDC>",
"X402_REFERRAL_SOURCE": "<YOUR_X402_REFERRAL_SOURCE>",
"X402_EXPECTED_PAY_TO": "<YOUR_X402_EXPECTED_PAY_TO>"
}
}
}
}Cline
{
"mcpServers": {
"x402-api-mcp": {
"command": "npx",
"args": [
"-y",
"@x402-api/mcp-server@1.0.5"
],
"env": {
"X402_API_BASE_URL": "<YOUR_X402_API_BASE_URL>",
"X402_WALLET_PRIVATE_KEY": "<YOUR_X402_WALLET_PRIVATE_KEY>",
"X402_MAX_PER_CALL_USDC": "<YOUR_X402_MAX_PER_CALL_USDC>",
"X402_REFERRAL_SOURCE": "<YOUR_X402_REFERRAL_SOURCE>",
"X402_EXPECTED_PAY_TO": "<YOUR_X402_EXPECTED_PAY_TO>"
}
}
}
}VS Code
{
"servers": {
"x402-api-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@x402-api/mcp-server@1.0.5"
],
"env": {
"X402_API_BASE_URL": "<YOUR_X402_API_BASE_URL>",
"X402_WALLET_PRIVATE_KEY": "<YOUR_X402_WALLET_PRIVATE_KEY>",
"X402_MAX_PER_CALL_USDC": "<YOUR_X402_MAX_PER_CALL_USDC>",
"X402_REFERRAL_SOURCE": "<YOUR_X402_REFERRAL_SOURCE>",
"X402_EXPECTED_PAY_TO": "<YOUR_X402_EXPECTED_PAY_TO>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"x402-api-mcp": {
"command": "npx",
"args": [
"-y",
"@x402-api/mcp-server@1.0.5"
],
"env": {
"X402_API_BASE_URL": "<YOUR_X402_API_BASE_URL>",
"X402_WALLET_PRIVATE_KEY": "<YOUR_X402_WALLET_PRIVATE_KEY>",
"X402_MAX_PER_CALL_USDC": "<YOUR_X402_MAX_PER_CALL_USDC>",
"X402_REFERRAL_SOURCE": "<YOUR_X402_REFERRAL_SOURCE>",
"X402_EXPECTED_PAY_TO": "<YOUR_X402_EXPECTED_PAY_TO>"
}
}
}
}Let your agent find its tools
Find servers like x402-api MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.