- Mcp Server For Agents And X402 Billing
Mcp Server For Agents And X402 Billing
Content
🧪 X402 Protocol Test Server
Testing Coinbase X402 standard on Base Mainnet
<!-- Ссылки на файлы -->
<div class="card">
<h3>📄 Protocol Files</h3>
<div class="links">
<a href="/.well-known/agent.json" target="_blank">📋 agent.json</a>
<a href="/.well-known/x402.json" target="_blank">⚙️ x402.json</a>
<a href="/openapi.yaml" target="_blank">📖 openapi.yaml</a>
<a href="/hello" target="_blank">🔓 /hello (free)</a>
<a href="/test-billing" target="_blank">💰 /test-billing (paid)</a>
</div>
</div>
<!-- Тестовые кнопки -->
<div class="card">
<h3>🧪 Live Tests</h3>
<button onclick="testHello()">1. Test /hello (free)</button>
<button onclick="testBilling()">2. Test /test-billing (expect 402)</button>
<h3>📊 Results:</h3>
<pre id="result">Click a button...</pre>
</div>
<!-- Информация о сервере -->
<div class="card">
<h3>ℹ️ Server Info</h3>
<p><strong>Network:</strong> Base Mainnet (eip155:8453)</p>
<p><strong>Asset:</strong> USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)</p>
<p><strong>Address:</strong> 0x3803A19280DeeFe533D177C4A169412BD341101b</p>
</div>
<script>
// Автоматически определяем базовый URL (без hardcode)
const BASE_URL = window.location.origin;
async function testHello() {
const result = document.getElementById('result');
result.textContent = 'Loading...';
try {
const res = await fetch(`${BASE_URL}/hello`);
const data = await res.json();
result.innerHTML = `<span class="success">✅ ${res.status} OK</span>\n${JSON.stringify(data, null, 2)}`;
} catch (err) {
result.innerHTML = `<span class="error">❌ ${err.message}</span>`;
}
}
async function testBilling() {
const result = document.getElementById('result');
result.textContent = 'Loading...';
try {
const res = await fetch(`${BASE_URL}/test-billing`);
const data = await res.json();
let output = `Status: ${res.status} ${res.statusText}\n\n`;
// Показываем X402 заголовки
for (let [key, value] of res.headers.entries()) {
if (key.toLowerCase().includes('payment') || key.toLowerCase().includes('payable')) {
output += `${key}: ${value}\n`;
}
}
output += `\nBody:\n${JSON.stringify(data, null, 2)}`;
if (res.status === 402) {
result.innerHTML = `<span class="success">✅ Correctly requires payment (402)</span>\n\n${output}`;
} else {
result.innerHTML = output;
}
} catch (err) {
result.innerHTML = `<span class="error">❌ ${err.message}</span>`;
}
}
</script>
Server Config
{
"mcpServers": {
"x402-billing": {
"type": "streamable-http",
"url": "https://x402helper.xyz",
"description": "Демонстрационный сервер с x402 микроплатежами. Платные эндпоинты: /test-billing (0.001 USDC)",
"x402": {
"enabled": true,
"facilitatorUrl": "https://x402.dexter.cash"
}
}
}
}Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
DeepChatYour AI Partner on Desktop
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™