Skip to main content
ClaudeWave
imrane2019 avatar
imrane2019

mcp-x402-example

Ver en GitHub

Minimal example: an AI agent discovering, paying for, and unlocking live trading data over MCP using the x402 pattern.

MCP ServersRegistry oficial0 estrellas0 forksJavaScriptMITActualizado today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 9/13/2026
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/imrane2019/mcp-x402-example
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-x402-example": {
      "command": "node",
      "args": ["/path/to/mcp-x402-example/dist/index.js"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/imrane2019/mcp-x402-example and follow its README for install instructions.
Casos de uso

Resumen de MCP Servers

# 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).
ai-agentscrypto-paymentsmcpmcp-servermodel-context-protocoltrading-apix402

Lo que la gente pregunta sobre mcp-x402-example

¿Qué es imrane2019/mcp-x402-example?

+

imrane2019/mcp-x402-example es mcp servers para el ecosistema de Claude AI. Minimal example: an AI agent discovering, paying for, and unlocking live trading data over MCP using the x402 pattern. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-12.

¿Cómo se instala mcp-x402-example?

+

Puedes instalar mcp-x402-example clonando el repositorio (https://github.com/imrane2019/mcp-x402-example) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar imrane2019/mcp-x402-example?

+

Nuestro agente de seguridad ha analizado imrane2019/mcp-x402-example y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene imrane2019/mcp-x402-example?

+

imrane2019/mcp-x402-example es mantenido por imrane2019. La última actividad registrada en GitHub es del 2026-09-12, con 0 issues abiertos.

¿Hay alternativas a mcp-x402-example?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega mcp-x402-example en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: imrane2019/mcp-x402-example
[![Featured on ClaudeWave](https://claudewave.com/api/badge/imrane2019-mcp-x402-example)](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>

Más MCP Servers

Alternativas a mcp-x402-example