Leviathan News & AI Advertising Network
by Leviathan News Advertising
GET /ad_test to browse placements, POST /api/v1/ad/confirm-payment/:id to submit campaigns, GET /api/v1/ad/analytics/:id for ad performance metrics
by Hacker News API
Official Hacker News API powered by Firebase. Access stories, comments, jobs, polls, and user profiles in real-time. No authentication required. Endpoints include top/new/best/ask/show/job stories, individual items by ID, and user profiles.
Install the x402 MCP server to let your AI agent access this data with automatic USDC payments on Base.
Add to claude_desktop_config.json:
{
"mcpServers": {
"x402": {
"command": "npx",
"args": ["@serendb/x402-mcp-server"],
"env": {
"X402_GATEWAY_URL": "https://x402.serendb.com",
"WALLET_PRIVATE_KEY": "0x..."
}
}
}
}Replace 0x... with your wallet private key.
claude mcp add x402 \ -e X402_GATEWAY_URL=https://x402.serendb.com \ -e WALLET_PRIVATE_KEY=0x... \ -- npx -y @serendb/x402-mcp-server
claude mcp add x402 ` -e X402_GATEWAY_URL=https://x402.serendb.com ` -e WALLET_PRIVATE_KEY=0x... ` '--' npx -y @serendb/x402-mcp-server
Replace 0x... with your wallet private key.
gemini mcp add x402 \ -e X402_GATEWAY_URL=https://x402.serendb.com \ -e WALLET_PRIVATE_KEY=0x... \ -- npx -y @serendb/x402-mcp-server
Replace 0x... with your wallet private key.
codex mcp add x402 \ --env X402_GATEWAY_URL=https://x402.serendb.com \ --env WALLET_PRIVATE_KEY=0x... \ -- npx -y @serendb/x402-mcp-server
Important: Cursor has a 60s timeout. Pre-install globally first: npm install -g @serendb/x402-mcp-server
First, install globally to avoid timeout issues:
npm install -g @serendb/x402-mcp-server
Then add to ~/.cursor/mcp.json:
{
"mcpServers": {
"x402": {
"command": "x402-mcp-server",
"args": [],
"env": {
"X402_GATEWAY_URL": "https://x402.serendb.com",
"WALLET_PRIVATE_KEY": "0x..."
}
}
}
}Also works with Windsurf, Zed, and other MCP-compatible clients. See the full setup guide for details.
Access data directly via HTTP using the x402 payment protocol.
HTTP 402 with payment requirements (amount, wallet, EIP-712 data)X-PAYMENT header containing the signaturecurl -X POST https://x402.serendb.com/api/proxy \
-H "Content-Type: application/json" \
-d '{
"publisherId": "af2d7cbb-ca72-4031-9bbb-78c2cce6846e",
"agentWallet": "0xYourWalletAddress",
"request": {
"method": "GET",
"path": "/endpoint"
}
}'This returns 402 Payment Required with the payment details you need to sign.
After signing the EIP-712 authorization, add the base64-encoded signature:
curl -X POST https://x402.serendb.com/api/proxy \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <base64-encoded-signature>" \
-d '{ ... }'Pay per API call via x402 protocol
by Leviathan News Advertising
GET /ad_test to browse placements, POST /api/v1/ad/confirm-payment/:id to submit campaigns, GET /api/v1/ad/analytics/:id for ad performance metrics
by crates.io
Official Rust package registry API. Search 215K+ crates, view download stats, check dependencies, and manage your packages. Write operations (publish, yank, owners) require your crates.io API token passed via Authorization header.
by OpenWeb Ninja
Real-time news articles from Google News via OpenWebNinja. Get headlines by topic, search localized news, and track breaking stories.