x402-api
io.github.fernsugi/x402-api
About x402-api
x402-api is an MCP server published by the GitHub account fernsugi. Eight paid DeFi tools: prices, gas, swaps, token security, holders, yields, funding and wallets
It runs on your own machine: your AI client starts it from the npm package @x402-api/mcp-server at version 1.0.5.
It asks for one secret: X402_WALLET_PRIVATE_KEY. Give it a key with the least access that still works.
Version 1.0.5 was published on 30 September 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 0 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
X402_API_BASE_URL | No | No | x402 API base URL (default: https://x402-api.fly.dev) |
X402_WALLET_PRIVATE_KEY | No | Yes | Base wallet private key for optional EIP-3009 auto-pay. Default mode inspects payment requirements without paying. |
X402_MAX_PER_CALL_USDC | No | No | Maximum USDC allowed per automatic tool call (default: 0.01) |
X402_REFERRAL_SOURCE | No | No | Optional referral label: github, glama, nohumans, bazaar, mcp, eliza, demo or test. Default mcp. |
X402_EXPECTED_PAY_TO | No | No | Expected payment recipient; defaults to the official x402-api wallet. Change only when using a trusted alternative deployment. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/fernsugi/x402-api-mcp-server |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for 1 secret: X402_WALLET_PRIVATE_KEY |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account fernsugi |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | @x402-api/mcp-server@1.0.5 runs nothing at install |
| Code red flags | Pass | Read 6 files in @x402-api/mcp-server@1.0.5: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 6 files, including comments and the README |
Popularity & health: 51 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
0 forks, 2 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.fernsugi/x402-api |
|---|---|
| Publisher | GitHub account fernsugi |
| How the name is verified | Name verified via GitHub account fernsugi. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | npm @x402-api/mcp-server 1.0.5 (stdio) |
| Version | 1.0.5 |
| Published | |
| Last updated | |
| Source repository | https://github.com/fernsugi/x402-api-mcp-server |
| Website | None linked |
| Category | Security (assigned by keyword rule, not by hand) |
Related servers in Security
- botindex-mcp-server7/7DeFi signal intelligence + agent discovery. Funding arb, whale…
- cyberwarex-chain-data4/4EVM onchain data: wallet, token, price, gas, transactions, ENS…
- WalletTriage7/7Real-time exploit-exposure risk check for EVM wallets, paid per…
- Agent Kiosk — 23-in-1 B2A Intelligence, Action & x402 API4/423-in-1 MCP server: EVM tx simulator, funding rate arb, macro…
- Agent Venue Radar5/6Screen AI-work venues for inventory, funding, payouts, withdrawal,…
- cyberwarex-defi-oracle4/4Token safety: honeypot sim, contract powers, rug checks, watch…