惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I tried monetizing my MCP server with x402 — production n...
John Leslie · 2026-05-21 · via DEV Community

I built DomainIntel, a free MCP server that does domain intelligence — WHOIS, DNS analysis, SSL checks, email security scoring. It runs on Vercel serverless, costs $0, and has 0 paying users.

I wanted to find out: can I add micropayments to my MCP server without creating accounts on any platform?

The answer is more nuanced than the x402 hype suggests.

x402 in 30 seconds

The x402 protocol uses HTTP status code 402 (Payment Required) for native web payments:

  1. Client requests a resource
  2. Server returns 402 with payment details (price, wallet, network)
  3. Client pays via blockchain (USDC on Base, typically)
  4. Client retries the request with an X-PAYMENT header containing proof
  5. Server verifies via a facilitator and delivers the resource

For MCP servers specifically, Vercel has built x402-mcp — wrapping MCP tools as paid tools that AI agents can pay for automatically.

What I actually tried

Step 1: Install the package

npm install x402  # v1.2.0

Enter fullscreen mode Exit fullscreen mode

The package exports submodules for different use cases:

  • x402/verify — server-side payment verification
  • x402/facilitator — facilitator interaction
  • x402/client — client-side payment
  • x402/types — TypeScript schemas

Step 2: Connect to the free facilitator

const { useFacilitator } = require("x402/verify");
const fac = useFacilitator("https://x402.org/facilitator");
const supported = await fac.supported();

Enter fullscreen mode Exit fullscreen mode

Here is what supported() actually returns (I ran this on May 21, 2026):

{
  "kinds": [
    { "scheme": "exact", "network": "eip155:84532" },
    { "scheme": "exact", "network": "solana:EtWTRABZaYq6i..." },
    { "scheme": "exact", "network": "base-sepolia" }
  ]
}

Enter fullscreen mode Exit fullscreen mode

Notice anything? Every network listed is a testnet. eip155:84532 is Base Sepolia. base-sepolia is also testnet (v1 format). There is no Base mainnet (eip155:8453) in sight.

Step 3: Find the production facilitator

For real money on mainnet, you need the Coinbase Developer Platform facilitator:

https://api.cdp.coinbase.com/platform/v2/x402

Enter fullscreen mode Exit fullscreen mode

This supports Base, Polygon, Arbitrum, and Solana on mainnet. 1,000 free transactions per month. No per-transaction fees on Base USDC.

But — you need CDP_API_KEY_ID and CDP_API_KEY_SECRET. That means creating a Coinbase Developer Platform account.

So much for "no accounts required."

The gap nobody talks about

x402 value proposition is "no accounts or credentials for payments." That is true — for clients (the ones paying). The seller side still needs:

  • A crypto wallet (I have one: an Ethereum address I generated locally)
  • Access to a production facilitator (CDP account required)
  • A Vercel deployment (or any serverless platform)

The "accountless" promise applies to the AI agents paying for your API, not to you as the developer monetizing it.

The numbers in context

x402 has real traction. According to the x402 ecosystem page and AWS analysis:

  • ~69,000 active agents
  • ~165 million transactions
  • ~$50 million cumulative volume

These are self-reported/aggregate numbers. The vast majority of that volume is concentrated among a few high-traffic services. A new MCP server with no audience will not see any of it automatically.

What x402 costs to run

Component Cost
x402 npm package Free
Vercel Hobby deployment Free
CDP facilitator (first 1K tx/month) Free
USDC settlement on Base $0 gas (sponsored)
Your total infrastructure cost $0

The economics are genuinely good once you are set up. Zero fixed costs, pay-per-use revenue, instant USDC settlement.

What makes sense for MCP monetization

x402 is the right protocol for MCP servers because:

  1. AI agents are the clients. They can handle the 402 → pay → retry flow automatically.
  2. Per-call pricing aligns with MCP usage patterns. Unlike subscriptions, you charge only when tools are called.
  3. USDC on Base settles instantly at $0 cost. No 30-day Stripe net terms.

The best candidates for x402 monetization are MCP servers with unique data that AI agents cannot get elsewhere — live API queries, proprietary datasets, computation that takes time. A thin wrapper around a public API will not justify a payment.

My DomainIntel server (live, free, trying to prove demand first)

DomainIntel provides 5 MCP tools:

  • whois_lookup — RDAP registration data
  • dns_lookup — all records + mail provider detection + SPF/DMARC/DKIM security analysis
  • ssl_check — certificate details
  • tech_stack — server, CDN, frameworks, security headers
  • full_report — everything in one call

Try it right now — add this to your MCP client config:

{
  "mcpServers": {
    "domainintel": {
      "url": "https://domainintel.vercel.app/api/mcp"
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

Then ask your AI assistant: "Use DomainIntel to check the email security of nvidia.com"

The interactive web version is at domainintel.vercel.app/research.

Right now it is 100% free. I want to prove there is demand before adding a payment layer. If you use it and find it useful, that signal matters more than any testnet prototype.

What I would do differently

If I were starting an MCP server today with x402 monetization in mind:

  1. Start free, add payments after signal. Adding x402 to an empty API is building payment plumbing for an empty house.
  2. Get CDP API keys early. The testnet facilitator is fine for prototyping, but production needs CDP. Do the signup once and you are autonomous forever.
  3. Target unique data. My DNS/WHOIS data is publicly available — the value is in the aggregation and security analysis, not the raw records. Build where your data cannot be replicated by a curl command.
  4. Do not confuse "no accounts" with "no work." x402 removes friction for your clients. You still need to build, deploy, and find users.

DomainIntel is open and free at domainintel.vercel.app. If you are building with MCP, I would genuinely love to know if this is useful.