
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 分