Koskamo

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.

x402-api MCP logo, by fernsugiCommunity listingLocal stdioSource reviewed; not executedPublished by fernsugi
You need:npm install -g @x402-api/mcp-servernpm install -g viem
Vendor documentation

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

Community listingRegistry 1.0.5
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

npm
@x402-api/mcp-server package definition
{
  "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.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.