Minimal example: an AI agent discovering, paying for, and unlocking live trading data over MCP using the x402 pattern.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/imrane2019/mcp-x402-example{
"mcpServers": {
"mcp-x402-example": {
"command": "node",
"args": ["/path/to/mcp-x402-example/dist/index.js"]
}
}
}MCP Servers overview
# AlphaBotPro MCP + x402 Example A minimal, runnable example showing an AI agent **discovering, paying for, and unlocking** live trading data over [MCP](https://modelcontextprotocol.io) using the [x402](https://www.x402.org/) machine-payment pattern — no human, no dashboard, no checkout form. This talks to the real, live AlphaBotPro MCP server. Nothing here is a mock. ## What it demonstrates 1. **`initialize`** — standard MCP JSON-RPC handshake 2. **`tools/list`** — discover the available tools 3. **`get_catalog`** — a public tool: prices and sample payloads, no auth 4. **`get_signals`** without a key — a clean, structured `payment_required` error (the x402 pattern) instead of a silent failure 5. **`purchase_access`** — request a crypto invoice (USDT/USDC on TRON, Polygon or Base) for a paid tier 6. **`check_payment`** — poll until the invoice settles, then receive a scoped API key 7. **`get_signals`** again, now authenticated ## Run it ```bash node example.mjs ``` No dependencies, no API key required to run steps 1–5 (only step 6/7 need a real payment to complete — the script prints the payment instructions and exits there unless you pass `--pay`, which is left as a manual step since it requires a funded wallet). ## Server details - MCP endpoint: `https://mcp.alphabotpro.cloud/v1/mcp` (JSON-RPC 2.0 over HTTPS, stateless) - Manifest: [`.well-known/mcp/server-card.json`](https://alphabotpro.cloud/.well-known/mcp/server-card.json) - Plugin manifest: [`.well-known/ai-plugin.json`](https://alphabotpro.cloud/.well-known/ai-plugin.json) - REST + OpenAPI: [`openapi.json`](https://alphabotpro.cloud/openapi.json) · [docs](https://alphabotpro.cloud/api/docs) - Pricing/catalog (human-readable): https://alphabotpro.cloud/api-mcp ## Why this exists Most "AI-ready" APIs still assume a human signs up, enters a card number, and pastes a key into a config file. That breaks the moment the buyer is an autonomous agent. This server lets an agent discover the price, pay in stablecoins, and start pulling data — all inside one continuous session. Full write-up: https://alphabotpro.cloud/blog/post/how-ai-agents-pay-for-data-with-crypto-x402-mcp-example ## Disclaimer Trading signals returned by this API are informational tools, not financial advice, and not a guarantee of profit. Trading carries risk of loss. AlphaBotPro is not affiliated with the Model Context Protocol project or the x402 project — this repo is an independent example of using both. ## License MIT — see [LICENSE](./LICENSE).
What people ask about mcp-x402-example
What is imrane2019/mcp-x402-example?
+
imrane2019/mcp-x402-example is mcp servers for the Claude AI ecosystem. Minimal example: an AI agent discovering, paying for, and unlocking live trading data over MCP using the x402 pattern. It has 0 GitHub stars and its last recorded update is dated 2026-09-12.
How do I install mcp-x402-example?
+
You can install mcp-x402-example by cloning the repository (https://github.com/imrane2019/mcp-x402-example) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is imrane2019/mcp-x402-example safe to use?
+
Our security agent has analyzed imrane2019/mcp-x402-example and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains imrane2019/mcp-x402-example?
+
imrane2019/mcp-x402-example is maintained by imrane2019. The last recorded GitHub activity is dated 2026-09-12, with 0 open issues.
Are there alternatives to mcp-x402-example?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy mcp-x402-example to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/imrane2019-mcp-x402-example)<a href="https://claudewave.com/repo/imrane2019-mcp-x402-example"><img src="https://claudewave.com/api/badge/imrane2019-mcp-x402-example" alt="Featured on ClaudeWave: imrane2019/mcp-x402-example" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
The fastest path to AI-powered full stack observability, even for lean teams.