
Trustsource
io.github.SurfEther由 GitHub 帳號 SurfEther 發布v0.1.6更新於 Oct 24, 2026
x402-paid domain verification for AI agents — trustscore, SSL, security headers, robots.
概覽
一個本機 MCP 伺服器,封裝以 x402 付費的網域驗證 API,讓助理檢查 URL 安全、網域信任、TLS、郵件認證和 robots.txt。
- 可以做什麼
- 在採取行動前,取得 URL 的綜合安全判定,融合網域信任、即時 TLS 和仿冒網域偵測。安全抓取網頁,回傳淨化後的文字和提示注入判定。依據 WHOIS、DNS、TLD 和註冊商資料為網域打信任分數。評估寄件網域的郵件認證(SPF、DKIM、DMARC、BIMI、MX)並標示可偽造性。稽核 HTTP 安全標頭,並偵測 robots.txt 與 AI 爬蟲政策。
- 適用情境
- 適合助理處理不可信連結、抓取頁面或寄件網域、需要在行動前取得安全判定的情境,也適合稽核網站的信任度、TLS、郵件設定或爬蟲政策。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行。需要在 WALLET_PRIVATE_KEY 中提供 Base 主網錢包私鑰,錢包需持有用於按次付費的 USDC 和用於 gas 的 ETH;每次呼叫透過 x402 付費。可用 TRUSTSOURCE_API_URL 覆寫 API 基礎位址。需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Trustsource,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
TrustSource API
x402-powered verification APIs for AI agents — URL safety, email authentication, domain trust, SSL/TLS, security headers, robots.txt. Pay per use, no API keys, no accounts.
Quick Start
1. Install dependencies
2. Configure environment
Open .env and set at minimum:
Leave everything else as-is to run on Base Sepolia testnet (no real money).
3. Run the server
You should see the startup banner at http://localhost:3000.
Testing the x402 Flow
Free endpoints (no payment needed)
Paid endpoint — what an unpaid agent sees
Paid endpoint — bypass payment for local dev testing
The x402 testnet facilitator at https://x402.org/facilitator accepts test payments.
To fully test the payment flow, use an x402 client with a funded testnet wallet.
Get Base Sepolia testnet ETH: https://sepolia.base.org/faucet
Get testnet USDC: https://faucet.circle.com (select Base Sepolia)
Switching to Mainnet (Production)
-
In
.env, change: -
Make sure your
PAY_TO_ADDRESSBase wallet has some ETH for gas. -
Your endpoints auto-list in the Bazaar/Agentic.Market after the first paid call clears.
API Reference
GET /safefetch ⭐
Fetch a page safely instead of fetching it directly: returns sanitized, agent-ready text plus a prompt-injection verdict.
An agent cannot scan a page for injection with its own model without first ingesting the attack. /safefetch does the fetching and scanning server-side — outside your agent's context window — and hands back classified content, so hostile markup never reaches your model unlabelled.
Detects: instructions hidden in display:none / off-screen elements, HTML comments, alt attributes · invisible Unicode-Tag (U+E0000) and zero-width smuggling · homoglyph-obfuscated and base64-encoded payloads · ChatML / [INST] delimiter spoofing · markdown-image data exfiltration · tool-call bait.
Findings are weighted by where they appear — a security article discussing injection in visible prose is not flagged; the same phrase hidden in markup is.
Payment: 0.01 USDC per call (via x402) · Cache: 10 minutes
Params: ?url=https://example.com
Response:
Verdicts: BLOCK — a critical technique concealed from human view, or aggregate risk ≥ 0.7. REVIEW — weaker signals, low-trust host, or a content type that was not scanned. SAFE — nothing concealed and aggregate risk below 0.25 (visible-text matches may still be present in injection.findings, deliberately weighted low).
GET /urlcheck
One composite CLEAR / REVIEW / BLOCK safety verdict on any URL, fusing domain trust, a live TLS check, and typosquat/lookalike detection.
Payment: 0.01 USDC per call (via x402)
Params:
?url=https://example.com— URL to vet?domain=example.com— bare domain (alternative)
Response:
Verdicts: CLEAR (safe) · REVIEW (inspect before acting) · BLOCK (do not proceed)
GET /emailtrust
Email-authentication posture grade (SPF/DKIM/DMARC/BIMI/MX) — is this sender domain spoofable?
Payment: 0.003 USDC per call (via x402)
Params:
?domain=example.com— sender domain (or[email protected])
Response:
Grades: A/B = enforced, not spoofable · C/D = monitoring only, spoofable · F = no authentication
GET /trustscore
Returns a 0–100 trust score for any domain.
Payment: 0.003 USDC per call (via x402)
Params:
?domain=example.com— bare domain?url=https://example.com/some/path— full URL (domain extracted)
Response:
Tiers:
Project Structure
Roadmap
- TrustScore API — domain trust scoring
- SslCheck API — TLS/SSL certificate intelligence
- Headers API — HTTP security-header audit
- Robots API — robots.txt + AI-bot policy detection
- UrlCheck API — composite CLEAR/REVIEW/BLOCK URL safety verdict
- EmailTrust API — SPF/DKIM/DMARC/BIMI/MX spoofability grade
- OpenAPI spec at
/openapi.json - Bazaar / Agentic.Market discovery extension
- MCP server (
trustsource-mcp) wrapping all seven APIs - SafeFetch API — injection-safe content firewall (flagship)
-
/phishcheck— typosquat + Certificate-Transparency detection -
/kyb— official-registry business-identity verification - ResearchOracle (reshaped) — verification / source-trust oracle
來源:README.md,提交 18ef724
工具
0版本歷史
1- v0.1.6最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分