Storefront Guard

io.github.maxigirl123由 GitHub 账号 maxigirl123 发布v0.3.2更新于 Oct 25, 2026

Verifies a merchant storefront is legitimate before an AI agent commits payment.

概览

AI 生成的概览

一个本地 MCP 服务器,在 AI 购物代理付款前核查网店域名是否可信,返回信任评分和通俗的继续或阻止建议。

可以做什么
验证店铺域名,返回信任评分、建议(继续、暂停确认或不要继续)以及每条扣分的通俗原因。核查域名注册时长与近期变更、SSL 证书签发历史和当前 HTTPS 有效性。交叉比对已知诈骗黑名单、企业注册、法定名称登记、网站流量排名、联邦排除名单和 FDA 执法记录。可选地把交易结果反馈写入本地日志。
适用场景
当助手即将在不熟悉的商家网站完成购买,并希望先获得可解释的信任信号时使用。它面向代理购物和结账流程,而非一般网页浏览。
运行要求
以 Node.js 18+ 的 npm 包形式通过 stdio 在本地运行。可选的 API 密钥 GOOGLE_SAFE_BROWSING_API_KEY、SAM_GOV_API_KEY 和 URLHAUS_AUTH_KEY 可提升覆盖范围但非必需。公开查询需要网络访问。README 还记录了可选的 HTTP、x402 和 REST 模式,需要 PAY_TO_ADDRESS、API_KEYS 等额外变量。
安装前请注意
结论是基于公开来源的启发式判断,并不保证商家合法,应仅作为一项参考信号。可选的 x402 模式按次以 USDC 收费,需要在 PAY_TO_ADDRESS 中填写钱包地址。反馈接口会把域名和结果数据写入本地文件。可选密钥属于机密,应避免放入共享配置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Storefront Guard,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Fortik

Real-time merchant verification for agentic commerce. A shopping agent calls verify_storefront with a domain before paying, and gets back a trust score with a plain-English verdict the agent can act on — in under two seconds.

Fortik is the trust check AI shopping agents run before checkout. It doesn't ask merchants to register in advance — it gathers evidence directly, in the moment, from independent public sources.

fortik.io

This is the mirror image of merchant-side agent-verification protocols like Visa's Trusted Agent Protocol: those let a merchant confirm an incoming agent is legitimate. Fortik lets the agent confirm the merchant is legitimate before committing payment.

What it checks

  • Domain registration age & recent changes — via free public RDAP lookups. A domain registered days ago, or one whose registration data changed in the last two weeks, is a red flag.
  • SSL certificate issuance history — via free public Certificate Transparency logs (crt.sh). A cert reissued very recently on an otherwise long-established domain can indicate a takeover or hosting change, even when the domain itself looks old and trustworthy.
  • HTTPS validity — does the site currently serve a valid cert at all.
  • Known-scam blocklist — URLhaus and Google Safe Browsing.
  • Corporate registration — US entity lookup via OpenCorporates.
  • Legal name verification — GLEIF entity registry cross-check.
  • Web traffic rank — Tranco top-1M ranking.
  • Federal exclusions — SAM.gov debarment check.
  • FDA enforcement — corroborating signal when other risks are present.

Every deduction from the trust score comes with a plain-English reason in the reasons array — this is deliberately an explainable heuristic, not a black-box model.

Setup

Requires Node.js 18+.

bash
npm installnpm run build

Copy .env.example to .env and fill in your keys.

Running it

As a local MCP server (stdio):

bash
npm start

As a remote MCP server (streamable HTTP) with x402 payment:

bash
npm run start:http# POST http://localhost:3000/mcp

As a pay-per-call x402 HTTP API:

bash
npm run start:x402# POST http://localhost:4021/verify   { "domain": "example-shop.com" }

As a REST API (API key auth):

bash
npm run start:rest# POST http://localhost:4022/verify   { "domain": "example-shop.com" }# Header: X-API-KEY: your-key

All three servers at once:

bash
npm run start:all# MCP:  http://localhost:3000/mcp# x402: http://localhost:4021/verify# REST: http://localhost:4022/verify

Feedback endpoint

Submit outcome data after a transaction to help build training data for future ML scoring:

bash
POST http://localhost:4022/feedbackHeader: X-API-KEY: your-keyBody: { "domain": "example-shop.com", "outcome": "legit" | "scam" }

How to use the recommendation field

Every verification result includes a top-level recommendation string alongside the numeric trustScore. Agents should branch on it rather than implementing their own threshold logic against the raw score.

ValueSuggested agent behavior
proceedComplete the transaction silently. Trust score is low-risk with high confidence.
pause_for_confirmationStop before paying and show recommendationReason to the user.
do_not_proceedBlock the transaction and actively notify the user — do not fail silently.

recommendationReason is a one-line plain-English explanation safe to show directly to users.

Pricing

$0.01/call via x402. Set your wallet address in PAY_TO_ADDRESS and network in X402_NETWORK (default: base).

Environment variables

VariableRequiredDescription
PAY_TO_ADDRESSYes (x402)Your wallet address for USDC payments
X402_NETWORKNoBlockchain network (default: base)
PRICE_USDNoPer-call price (default: 0.01)
API_KEYSYes (REST)Comma-separated valid API keys
GOOGLE_SAFE_BROWSING_API_KEYNoDegrades gracefully if unset
SAM_GOV_API_KEYNoDegrades gracefully if unset
URLHAUS_AUTH_KEYNoDegrades gracefully if unset
FEEDBACK_LOGNoPath for feedback JSONL log (default: feedback.jsonl)
MCP_PORTNoMCP server port (default: 3000)
X402_PORTNox402 server port (default: 4021)
REST_PORTNoREST API port (default: 4022)

来源:README.md,提交 7989b5f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。