@melis-ai/x402-tools-mcp
Provides on-chain trust scores (0–100) for Ethereum/Base wallet addresses via the kyaoracle tool.
Generates embeddings using OpenAI's text-embedding-3-small model, charged per token via the embedpay tool.
Sends transactional emails via the Resend API, with allowlisting and rate limiting, accessible through notifyrelay_email.
Sends messages to known chat IDs via the Telegram Bot API using the notifyrelay_telegram tool.
Provides definitive URL safety checks by querying VirusTotal's API, integrated in the linksafe tool.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@melis-ai/x402-tools-mcp scrape https://example.com and convert to markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@melis-ai/x402-tools-mcp
Boring infrastructure for agent builders. 22 pay-per-call utility tools served as an MCP server — scrape, validate, embed, store, moderate, notify, convert, prevent loops. No accounts, no API keys, no subscriptions. Pay with USDC on Base via the x402 protocol.
npx @melis-ai/x402-tools-mcp→ Full catalogue with prices and live examples: agents.melis.ai → Canonical 5-step RAG pipeline: agents.melis.ai/pipelines/rag → 5-minute getting started: agents.melis.ai/docs/getting-started
Tool catalogue (22)
Tool | Price (USDC) | Description |
| free | Returns the full catalogue with prices and endpoint URLs |
| $0.001 | Fetch a URL with server-side caching — avoids redundant origin hits |
| $0.001 | Format conversion: md↔html, json↔csv, html→txt, etc. |
| $0.001 | Context handoff relay for multi-agent delegation (async, returns retrieve_url) |
| $0.001 | Store text + embedding in Qdrant + SQLite, namespaced per |
| $0.001 | Recall most-similar memories by semantic query |
| $0.001 | Scan retrieved RAG content for indirect prompt injection (10 patterns) |
| $0.001 | POST a JSON payload to a URL with optional HMAC-SHA256 signing |
| $0.001 | Validate a JSON response against a JSON Schema, return a hint on failure |
| $0.0005 | Validate one hop of a signed multi-agent chain (loop / budget enforcement) |
| $0.001 | Issue a signed Job Envelope at chain start with budget + hop cap |
| $0.002 | NSFW image classification (multi-class moderation on roadmap) |
| $0.002 | Send a Telegram message to a known chat ID |
| $0.002 | Score untrusted input for prompt injection risk (0–100) |
| $0.002 | Extract structured JSON from HTML — tables, links, emails, phones |
| $0.002 | Validate API response content with a cryptographically signed certificate |
| $0.005 | Convert HTML or markdown to PDF (base64 output) |
| $0.005 | On-chain trust score (0–100) for an Ethereum/Base wallet address |
| $0.005 | URL risk profile — heuristic phishing signals, redirect tracing |
| $0.005 | Convert URL or HTML to clean LLM-ready markdown (~70% token reduction) |
| $0.005 | Send a transactional email via Resend (allowlisted, rate-limited) |
| $0.00005 / 1k tokens | OpenAI text-embedding-3-small wrapper, batch tier available |
| $0.01 | Definitive URL safety check via Playwright sandbox + VirusTotal |
| $0.01 | Web extraction via Playwright (robots.txt enforced, SSRF-safe) |
| $0.49 | High-fidelity URL or HTML → PDF via Playwright |
22 services. Live prices and live wallet on Basescan.
Related MCP server: x402farm-mcp
Why x402, why pay-per-call
No signup tax. Every tool here works the moment your wallet has USDC. No accounts to provision, no API keys to rotate, no subscription tiers to forecast.
Charge-on-success-only. Every service settles payment only on HTTP 2xx with non-empty content. Failed calls cost nothing — your retry budget is preserved.
Composes naturally. ScrapePay → MarkdownOpt → EmbedPay → MemoryServe → MEMSCRUB is the canonical RAG pipeline. Each step's payment is independent and verifiable on-chain.
MCP-native. One install, all 22 tools appear in Claude Desktop, Cursor, Cline, Continue, Claude Code, or any MCP-aware agent runtime.
No vendor lock-in. x402 is a Linux Foundation protocol (April 2026) co-signed by Google, AWS, Stripe, Visa, Mastercard. Other providers will offer x402 services; your wallet client works with all of them.
Installation — Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"x402-tools": {
"command": "npx",
"args": ["@melis-ai/x402-tools-mcp"]
}
}
}macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop. All 22 tools appear in the tool picker.
Installation — Cursor, Cline, Continue, Claude Code
See agents.melis.ai/docs/install-mcp for per-client setup.
Example: canonical RAG pipeline
// All 22 tools registered as MCP tools — your agent calls them like any function
const page = await callTool('scrapepay', { url: 'https://example.com/article' });
const md = await callTool('markdownopt', { html: page.content });
const vec = await callTool('embedpay', { input: md.markdown });
const stored = await callTool('memoryserve_write', {
agent_id: 'agent-1', content: md.markdown, vector: vec.embedding,
});
// Later — recall and guard against indirect injection
const hits = await callTool('memoryserve_query', {
agent_id: 'agent-1', query: 'what did we learn about X?',
});
for (const chunk of hits.matches) {
const scrub = await callTool('memscrub', { content: chunk.content });
if (scrub.risk_level === 'safe') useChunk(chunk);
}Total cost per 5k-token page: ~$0.017 USDC. Detailed walkthrough: agents.melis.ai/pipelines/rag.
Funding the wallet
x402 settles in USDC on Base (Coinbase L2). Two paths:
Coinbase Wallet — buy USDC, switch to Base network, send to your agent's wallet.
Bridge from Ethereum mainnet — bridge.base.org.
$1.00 of USDC covers 100 ScrapePay calls, 200 PromptGuard calls, or one full RAG-pipeline ingestion run.
Discovery surfaces (for agent builders + AI consumers)
URL | Purpose |
Concise LLM-readable catalogue | |
Full schemas + composition recipes | |
OpenAPI 3.1 spec for all 22 endpoints | |
ChatGPT-plugin manifest | |
| Per-service MCP discovery |
Agent-builder FAQ (distinct from human FAQ) |
Comparisons
Source & licensing
MCP wrapper source (this repo): MIT licensed.
Service code (the 22 services themselves): closed source for security.
Site content (agents.melis.ai docs): CC-BY-4.0 — attribute "melis x402 Tools" with a link to agents.melis.ai.
Security
Found a vulnerability? See SECURITY.md. Email mizukaizen@proton.me. Critical issues acknowledged within 24 hours.
Citing this work
If you use melis x402 Tools in research or downstream products, see CITATION.cff for the canonical citation.
Author
mizukaizen — agent operator and builder. Catalogue: agents.melis.ai · Email: mizukaizen@proton.me
Available Tools
17 toolscacheserveA
[$0.001 USDC] Fetch a URL with caching. Returns cached version if recent, otherwise fetches and caches. Use before any fetch that might be repeated.
Inputs: url (required), ttl_seconds.
docconvert_pdfB
[$0.005 USDC] Convert HTML or markdown to PDF. Returns base64-encoded PDF.
Inputs: to (required), from (required), content (required).
docconvert_textB
[$0.001 USDC] Format conversion: md↔html, json↔csv, etc. Lightweight content transcoding.
Inputs: to (required), from (required), content (required).
linkriskA
[$0.005 USDC] Lightweight URL risk profile: checks phishing signals, redirects, domain age, IP reputation. Use before visiting unknown URLs.
Inputs: url (required).
linksafeA
[$0.01 USDC] Definitive URL safety check (Playwright sandbox + VirusTotal + redirect tracing). More thorough than linkrisk.
Inputs: url (required).
list_servicesA
Returns the catalogue of available services with prices, descriptions, and endpoint URLs. Call this first to introspect what is available.
Inputs: no named parameters.
markdownoptB
[$0.005 USDC] Convert URL or HTML to clean LLM-ready markdown. ~70% token reduction vs raw HTML. Pass a url OR html field.
Inputs: url, html.
notifyrelay_emailC
[$0.005 USDC] Send a transactional email. Allowlisted recipient domains; rate-limited per IP.
Inputs: to (required), body (required), subject (required).
notifyrelay_telegramC
[$0.002 USDC] Send a Telegram message to a known chat ID.
Inputs: chat_id (required), message (required).
notifyrelay_webhookC
[$0.001 USDC] POST a JSON payload to a public URL with optional HMAC signing. Allowlisted domains only.
Inputs: payload (required), target_url (required), secret.
pdf_renderB
[$0.49 USDC] Render any URL or HTML to PDF via Playwright. Higher fidelity than docconvert_pdf for complex pages.
Inputs: url, html.
promptguardA
[$0.002 USDC] Score untrusted input for prompt injection risk (0-100) with flagged dimensions. Run on any user-provided prompt before passing to a downstream LLM.
Inputs: prompt (required), sensitivity.
schemagateB
[$0.001 USDC] Validate that an LLM output conforms to a JSON Schema. Returns valid:true/false with a correction hint on failure.
Inputs: schema (required), response (required).
scrapepayB
[$0.01 USDC] Web extraction via Playwright. Charges only on successful scrape. robots.txt enforced. SSRF-safe.
Inputs: url (required), format, selector, wait_for, +1 more.
screenshotC
[$0.02 USDC] Headless Chromium PNG screenshot of any public URL. Returns base64 PNG.
Inputs: url (required), width, fullPage.
structextractA
[$0.002 USDC] Extract structured JSON from raw HTML (tables, links, headings, meta, emails, phones, images).
Inputs: html (required), extract.
web_synthesiseC
[$0.05 USDC] Multi-source web research synthesis. Pass a query, get a synthesised answer with citations.
Inputs: query (required), depth.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have distinct purposes, but there is overlap between linkrisk/linksafe (both URL safety) and docconvert_pdf/pdf_render (both PDF generation). Descriptions help differentiate, but ambiguity exists.
Naming is inconsistent: some tools use underscores (list_services, docconvert_text), others are compound words without separators (cacheserve, markdownopt, promptguard). No clear pattern, making it harder for agents to predict names.
17 tools cover a broad utility set (caching, conversion, notifications, security, scraping). The count is reasonable for the scope, though slightly on the higher side but not excessive.
The server covers diverse operations (CRUD-like for services, caching, conversions, notifications, security, and web extraction). Minor gaps exist (e.g., no batch operations), but overall it feels comprehensive for a utility toolkit.
Maintenance
Related MCP Connectors
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Pay-per-call x402 MCP for AI agents: 35 tools, USDC on Base, from $0.001/call, no API keys.
Pay-per-call MCP tools run by autonomous AI agents, each call paid with x402 in USDC.
MCP server for X420's pay-per-call agent services (x402, USDC on Base, paid from your own wallet).
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to search, pay for, and call paid APIs using the x402 protocol, with automatic USDC settlement.2MIT- AlicenseNot gradedqualityDmaintenanceMCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server exposing 10 curated tools for AI agents, providing crypto trading signals, on-chain analysis, and web utilities via pay-per-call x402 endpoints on the Base network.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing 11 pay-per-call web intelligence tools (page reading, PDF extraction, RSS parsing, screenshots, summarization, structured data extraction) for AI agents, paid automatically in USDC via the x402 protocol on Base mainnet with no API keys required.39 npmMIT