pkgproof

net.pkgproof由 pkgproof.net 发布v0.2.1更新于 Oct 24, 2026

Verify an npm or PyPI package before install: advisories, install scripts, typosquats, repository.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

在安装前验证 npm 或 PyPI 软件包,返回 safe、caution、block 或 does_not_exist 结论及逐条标注的原因。

可以做什么
按名称、可选的确切版本和生态(npm 或 PyPI)验证软件包,对 pkgproof.net 运行九项检查,涵盖安全公告、安装脚本、仿冒与组合仿冒名称、作用域与声明仓库检查,以及该版本与先前版本的差异。获得 safe、caution、block 或 does_not_exist 结论,每条原因都标注为事实或启发式并附来源。得到可读摘要,以及 structuredContent 中服务返回的 JSON,包含结论、原因和计算时间。调用逐个排队执行,因此遍历依赖列表时会被串行处理而不会失败。
适用场景
适合在助手即将添加或升级 npm 或 PyPI 依赖时,快速检查安全公告、安装脚本、名称仿冒和仓库来源方面的风险。每天首次验证免费,无需配置钱包即可试用。
运行要求
通过 npx 作为 npm 包在本地运行,需要 Node 22 或更高版本。无需账号或注册。每天首次验证免费且无需密钥。付费调用需要已充值的临时钱包,通过 PKGPROOF_ALGORAND_PRIVATE_KEY(base64 Algorand 账户密钥,优先)或 PKGPROOF_BASE_PRIVATE_KEY(0x 前缀 EVM 密钥)配置。需要访问 pkgproof.net 的网络连接。
安装前请注意
每日免费验证用完后,每次付费验证花费 0.05 USDC,且刻意不设消费上限,钱包余额是唯一限制。钱包密钥以明文保存在 MCP 客户端配置文件中,请使用仅存入你愿意花费金额的临时钱包。Algorand 方式还需约 0.3 ALGO 及 USDC 资产选择加入。每次验证都会把软件包名称、版本和生态发送到 pkgproof.net。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

pkgproof-mcp

An MCP server that verifies an npm or PyPI package before you install it.

One tool, verify_package. It runs nine checks against pkgproof.net covering advisories, install scripts, typosquat and combosquat names, scope and declared-repository checks, and how the release differs from its predecessors, and answers safe, caution, block or does_not_exist with every reason labelled as fact or heuristic against its source.

The first verification each day is free and needs no configuration at all. No account, no key, no signup. Later calls the same day cost $0.05 in USDC, paid per call over x402, and only if you configure a wallet.

Install

Nothing to install or host: your MCP client runs the server itself. Needs Node 22 or newer.

Every release from 0.1.1 on is built and signed by CI and carries an npm provenance attestation tying the tarball to the commit and workflow run that produced it. A tool that vets other packages should be checkable the same way:

sh
npm audit signatures

The server is also listed in the MCP Registry as net.pkgproof/pkgproof.

Free, no key

Add this to your MCP client configuration and you are done:

json
{	"mcpServers": {		"pkgproof": {			"command": "npx",			"args": ["-y", "@pkgproof/mcp"]		}	}}

Claude Code

The repository is its own plugin marketplace, so there is no JSON to edit:

sh
/plugin marketplace add jahija-okan/pkgproof-mcp/plugin install pkgproof@pkgproof

The plugin runs the published package pinned to the version it was released beside, not whatever npx resolves to that day.

Claude Desktop

Releases carry a prebuilt .mcpb bundle on the releases page. Download it and open it: Desktop installs the server and holds the wallet keys in the OS secret store rather than in a plain-text configuration file.

The tool

verify_package, and nothing else. One call is one verification, so the daily allowance means the same thing here as it does over HTTP.

ArgumentRequiredMeaning
nameyesPackage name: left-pad, @scope/thing (npm), requests (PyPI).
versionnoExact version. Omit to verify the package rather than one release.
ecosystemnonpm (the default) or pypi.

It answers twice over: a summary the agent reads, and the service's own JSON alongside it in structuredContent, under a declared output schema, carrying the verdict, every reason with its source, and the time the verdict was computed.

Calls run one at a time. The service allows one verification in flight per payer and refuses the second, so an agent walking a dependency list is queued here rather than failed.

Two networks

pkgproof settles on two chains, each on its own endpoint. They are not interchangeable: they take different key formats, and only one of them has a free tier.

Algorand MainnetBase
Endpointx402-algo.pkgproof.netx402.pkgproof.net
Networkalgorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=eip155:8453
AssetUSDC, ASA 31566704USDC, 0x8335…2913
Price$0.05 per verification$0.05 per verification
Free tierno, every call is paidyes, one verdict per caller per day
Key variablePKGPROOF_ALGORAND_PRIVATE_KEYPKGPROOF_BASE_PRIVATE_KEY
Key formatbase64 account key0x-prefixed EVM key
Network fee per paymentnone, sponsorednone, sponsored
One-time setup~0.3 ALGO, and an opt-in to the assetnone, just send USDC

How the server picks. The free attempt always goes to Base, because it is the only rail that answers an unpaid call. Payments prefer Algorand, and fall back to Base only when no Algorand key is configured. So a wallet on either chain works, and configuring neither still gets you a verdict a day.

Paid, with a wallet

[!WARNING] Fund a throwaway wallet, never a main one. The key is stored in plain text in your MCP client's configuration file, which is not an encrypted store, and anything able to read that file can spend the wallet. Put in what you are willing to spend on package verification and nothing more. There is deliberately no spend cap in this server, so the wallet's own balance is the only limit.

Algorand (preferred)

Verifications cost the account no ALGO. The 402 names a fee payer, so the facilitator covers the network fee on every payment and your ALGO balance does not move.

json
{	"mcpServers": {		"pkgproof": {			"command": "npx",			"args": ["-y", "@pkgproof/mcp"],			"env": {				"PKGPROOF_ALGORAND_PRIVATE_KEY": "..."			}		}	}}

Base

Send USDC on Base to the throwaway wallet's address. You do not need ETH: payment is an off-chain signature and the facilitator pays the gas.

json
{	"mcpServers": {		"pkgproof": {			"command": "npx",			"args": ["-y", "@pkgproof/mcp"],			"env": {				"PKGPROOF_BASE_PRIVATE_KEY": "0x..."			}		}	}}

The server always tries the free call first, so a configured wallet is only charged once the day's free verification is used up.

Configuration

VariableRequiredMeaning
PKGPROOF_ALGORAND_PRIVATE_KEYnoThrowaway Algorand account holding USDC on Mainnet, base64. Preferred for payment when set.
PKGPROOF_BASE_PRIVATE_KEYnoThrowaway EVM wallet holding USDC on Base, 0x-prefixed. Used when no Algorand key is set.

With neither set, the server is free-tier only and says so once the day's verification is spent.

Easy setup, step by step

Needs Node 22 or newer. Use a throwaway account, as warned above.

  1. Generate a throwaway Algorand account. This downloads a small helper script that creates a fresh account on your machine:

    sh
    git clone https://github.com/jahija-okan/pkgproof-x402-algorandcd pkgproof-x402-algorandnpm installnpx tsx algo-account.ts new

    It prints ADDRESS, KEY_B64 and MNEMONIC once and saves nothing. Keep them somewhere safe, such as a password manager. Use KEY_B64 everywhere below, never the 25-word MNEMONIC.

  2. Send 0.3 ALGO to ADDRESS. Buy ALGO on an exchange and withdraw it on the Algorand network. A new account is empty and cannot do anything until it holds ALGO. This covers the account's minimum balance and the opt-in fee, and is a one-time cost. Verifications themselves cost no ALGO.

  3. Opt the account into USDC. Algorand accounts must opt into an asset before they can receive it, so USDC sent to an account that has not opted in will not arrive. This command signs that opt-in with your key:

    sh
    ALGOD_URL=https://mainnet-api.algonode.cloud ASSET_ID=31566704 \ALGO_PRIVATE_KEY=<KEY_B64> npx tsx algo-account.ts optin
  4. Send USDC on Algorand to ADDRESS. Withdraw USDC from an exchange on the Algorand network, not Base or Ethereum. Each verification costs $0.05, so $1 covers 20 of them.

  5. Check that both arrived. This reads the account from the network and prints its ALGO balance and USDC balance. NOT OPTED IN means step 3 did not go through:

    sh
    ALGOD_URL=https://mainnet-api.algonode.cloud ASSET_ID=31566704 \npx tsx algo-account.ts balance <ADDRESS>
  6. Add the server to Claude Code. This registers pkgproof as an MCP server and hands it the key, which it uses to sign payments on your machine and never sends anywhere. --scope user installs it for every project, without it, Claude Code registers the server for the current directory only:

    sh
    claude mcp add --scope user pkgproof -e PKGPROOF_ALGORAND_PRIVATE_KEY=<KEY_B64> -- npx -y @pkgproof/mcp
  7. Run a verification. Start claude and ask: check package crossenv with pkgproof. Claude calls the verify_package tool and reports a verdict with its reasons.

The first verification each day is free and goes through Base. Later ones are paid from the Algorand account.

Privacy Policy

One HTTPS request per verification, carrying the package name, version and ecosystem you asked about and nothing else: no account, no telemetry, no file contents. Wallet keys are used to sign locally and are never transmitted. Full text in PRIVACY.md.

Development

sh
npm installnpm test           # unit tests, and a real client handshake over an in-memory transportnpm run lint       # typecheck, formatting, eslintnpm run inspector  # build, then the MCP inspector against the local server

No test spends anything, and the suite enforces it rather than trusting it: a test that reaches for the network fails, and the run refuses to start at all if a wallet key is set in the environment. The payment path is exercised against a fabricated 402 and a published test account, so an EIP-3009 authorisation is signed locally and the payload and header are checked without a wallet.

Links

License

Apache-2.0. If you distribute a modified version, section 4(b) requires you to mark the files you changed: a fork of a security tool that still carries this name should not be mistakable for this one.

来源:README.md,提交 5f1d2e6

工具

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

版本历史

5
  1. v0.2.1最新Oct 15, 2026
  2. v0.1.12Oct 14, 2026
  3. v0.1.11Oct 8, 2026
  4. v0.1.8Oct 5, 2026
  5. v0.1.7Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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