x402 Web Tools
Web/PDF to Markdown, transcription, paper search and citation checks. Pay per call in USDC via x402.
我該用這個嗎
品質與安全性
發現項目(3)
- HIGH在 read_url_safe 中
- HIGH
- INFO在 get_paper 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"web-tools": {
"url": "https://x402-web-tools.microtools-x402.workers.dev/mcp"
}
}
}遠端端點
https://x402-web-tools.microtools-x402.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(9)
🟢read_url(url)
Fetch a public web page and return its main content as clean Markdown (readability extraction): title, url, final_url, markdown, word_count. HTML, plain text, Markdown, JSON and XML. Static fetch only (no JavaScript rendering). Respects robots.txt, blocks private/loopback/metadata hosts, max 3 MB / 15 s, no logins or paywall bypass. For PDFs use read_pdf. Failed reads are not charged. Costs $0.002 USDC per call via x402.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"format": "uri",
"description": "Public http(s) URL to read"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢read_url_safe(url)
Same as read_url plus a heuristic prompt-injection check: flags hidden/invisible text, instruction-like phrases ("ignore previous instructions", role reassignment, secret exfiltration, chat-template tokens), suspicious HTML comments and zero-width/Unicode-tag characters. Returns injection_check {flagged, risk none|low|medium|high, signals}. Heuristic, not a guarantee. Failed reads are not charged. Costs $0.003 USDC per call via x402.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"format": "uri",
"description": "Public http(s) URL to read"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢read_pdf(url)
Fetch a public PDF (max 10 MB) and convert it to Markdown with Cloudflare Workers AI toMarkdown. Returns title (if detected), url, markdown, word_count. Same URL safety rules as read_url. Failed conversions are not charged. Costs $0.006 USDC per call via x402.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"format": "uri",
"description": "Public http(s) URL of a PDF file"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪transcribe_audio(url, language, subtitles, include_words)
Transcribe a public direct audio file URL (mp3, wav, m4a, ogg/opus, flac; max 25 MB and 10 minutes, checked from the file header before transcription) with Whisper (@cf/openai/whisper-large-v3-turbo) on Cloudflare Workers AI. Returns text, language, duration, segments with timestamps, optional SRT/VTT subtitles. YouTube/TikTok/Instagram and other page URLs are rejected. Failed transcriptions and files with no detected speech are not charged. Costs $0.01 USDC per file via x402.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"format": "uri",
"description": "Direct public URL of an audio file"
},
"language": {
"description": "Optional ISO language hint, e.g. en, ur, es (auto-detected if omitted)",
"type": "string",
"minLength": 2,
"maxLength": 5
},
"subtitles": {
"description": "Also return SRT and/or WebVTT subtitles (default none)",
"type": "string",
"enum": [
"none",
"srt",
"vtt",
"both"
]
},
"include_words": {
"description": "Include word-level timestamps in segments (default false)",
"type": "boolean"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_papers(query, from_year, to_year, open_access_only, limit)
Search scholarly papers (OpenAlex index of 250M+ works). Returns up to 25 results with title, authors, year, venue, DOI, citation count, open-access PDF link, abstract (reconstructed from OpenAlex's inverted index; may be null when the publisher withholds it) and OpenAlex id. Optional from_year / to_year / open_access_only filters. Data: OpenAlex (CC0, openalex.org) with Crossref REST (crossref.org) for retraction notices and as fallback. Upstream errors are not charged. Costs $0.005 USDC per search via x402.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 2,
"maxLength": 300,
"description": "Search terms (title, abstract and full-text relevance search)"
},
"from_year": {
"description": "Earliest publication year (inclusive)",
"type": "integer",
"minimum": 1600,
"maximum": 2100
},
"to_year": {
"description": "Latest publication year (inclusive)",
"type": "integer",
"minimum": 1600,
"maximum": 2100
},
"open_access_only": {
"description": "Only open-access works (default false)",
"type": "boolean"
},
"limit": {
"description": "Number of results, 1-25 (default 10)",
"type": "integer",
"minimum": 1,
"maximum": 25
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_paper(id)
Look up one scholarly work by DOI (10.xxxx/..., doi.org URL), arXiv id (arXiv:1706.03762) or OpenAlex work id (W...). Returns title, authors, year, venue, DOI, citation count, references count, open-access PDF link, abstract, OpenAlex id and a retraction flag (OpenAlex is_retracted plus Crossref/Retraction Watch notices). Data: OpenAlex (CC0, openalex.org) with Crossref REST (crossref.org) for retraction notices and as fallback. Not-found and upstream errors are not charged. Costs $0.002 USDC per lookup via x402.
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 3,
"maxLength": 300,
"description": "DOI, doi.org URL, arXiv:id or OpenAlex work id"
}
},
"required": [
"id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_citation(doi, title, year, first_author)
Check whether a cited paper really exists (catch hallucinated or mistyped references) and whether it has been retracted. Give a doi, or a title with optional year and first_author. Returns exists, verdict (verified | found | doi_exists_metadata_mismatch | uncertain | not_found), confidence (high/medium/low) with a note on what matched, is_retracted (OpenAlex is_retracted + Crossref/Retraction Watch notices) and the best match. Data: OpenAlex (CC0, openalex.org) with Crossref REST (crossref.org) for retraction notices and as fallback. Upstream errors are not charged. Costs $0.002 USDC per check via x402.
輸入結構描述
{
"type": "object",
"properties": {
"doi": {
"description": "DOI of the cited work (preferred if known)",
"type": "string",
"maxLength": 300
},
"title": {
"description": "Title of the cited work (used when no DOI is given; also cross-checked against a DOI)",
"type": "string",
"minLength": 8,
"maxLength": 500
},
"year": {
"description": "Publication year as cited (optional)",
"type": "integer",
"minimum": 1600,
"maximum": 2100
},
"first_author": {
"description": "First author's name or surname as cited (optional)",
"type": "string",
"minLength": 2,
"maxLength": 100
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢ping
Paid connectivity test: returns ok and a server timestamp. Use it to check that your x402 payment flow works end to end. Costs $0.001 USDC per call via x402.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪health
Free health check. Returns service status, version, tool prices, network and the plain-HTTP x402 endpoints.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}社群
證據