MCP package check
POST /api/mcp-package-checkThe published facts about an npm package that ships an MCP server, read before running it: resolved version and publish date, package and version age, maintainer count, provenance attestation, install scripts...
Details
The published facts about an npm package that ships an MCP server, read before running it: resolved version and publish date, package and version age, maintainer count, provenance attestation, install scripts (preinstall, install, postinstall; prepare listed apart), dependency, optional and bundled counts, declared binaries, deprecation, and the GitHub repository the manifest names (one keyless read: resolved name against the manifest, archived, fork, last push). Accepts a name, name@version, or an npx command line. Observations only, each as a field plus a neutral sentence in signals; no score. A skipped read (oversize package document, GitHub rate limit) is named and the answer is marked partial.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
package | string | yes | npm package name, name@version, or an npx / npm exec command line ("npx -y agent402-mcp@0.20.0"). Up to 512 characters. The example sends @modelcontextprotocol/server-filesystem. |
version | string | no | Exact version or dist-tag to check (default latest). Must agree with any version in `package`. Up to 64 characters. |
Example request
curl -i -X POST https://agent402.tools/api/mcp-package-check \
-H "Content-Type: application/json" \
-d '{"package":"@modelcontextprotocol/server-filesystem"}'Watch a call get paid
POST /api/mcp-package-check$0.005 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"package": "@modelcontextprotocol/server-filesystem",
"requestedVersion": "latest",
"version": "2.0.0",
"distTags": [
"latest"
],
"publishedAt": "2026-10-19T06:49:57.471Z",
"versionAgeDays": 1,
"createdAt": "2024-11-21T19:14:54.330Z",
"packageAgeDays": 697,
"versionCount": 21,
"maintainers": {
"count": 6,
"names": [
"jspahrsummers",
"pcarleton",
"fweinberger",
"thedsp",
"ochafik-ant",
"cliffhall"
]
},
"provenance": {
"attested": true,
"predicateType": "https://slsa.dev/provenance/v1",
"attestationsUrl": "https://registry.npmjs.org/-/npm/v1/attestations/@modelcontextprotocol%2fserver-filesystem@2.0.0",
"registrySignatures": 2,
"integrity": "sha512-..."
},
"installScripts": {
"present": false,
"runOnInstall": [],
"otherHooks": [
"prepare"
]
},
"dependencies": {
"runtime": 5,
"optional": 0,
"peer": 0,
"bundled": []
},
"binaries": [
"mcp-server-filesystem"
],
"deprecated": null,
"license": "SEE LICENSE IN LICENSE",
"engines": {
"node": ">=24"
},
"repository": {
"declared": "git+https://github.com/modelcontextprotocol/servers.git",
"directory": null,
"github": "modelcontextprotocol/servers",
"read": true,
"matchesManifest": true,
"resolvedName": "modelcontextprotocol/servers",
"url": "https://github.com/modelcontextprotocol/servers",
"archived": false,
"fork": false,
"disabled": false,
"createdAt": "2024-11-19T01:10:17Z",
"pushedAt": "2026-10-19T06:46:48Z",
"stars": 91406,
"defaultBranch": "main",
"license": "Other"
},
"signals": [
"version 2.0.0 published 1 day ago",
"package first published 697 days ago, 21 versions",
"6 maintainers",
"provenance attestation present (https://slsa.dev/provenance/v1)",
"no install script declared",
"prepare script declared (runs for a git or local install, not a registry install)",
"declares 1 binary: mcp-server-filesystem",
"5 runtime dependencies, 0 optional",
"GitHub repository matches the manifest"
],
"reads": {
"registry": "package document",
"github": "read"
},
"skippedReads": [],
"complete": true,
"partial": false,
"sources": [
"registry.npmjs.org",
"api.github.com"
]
}| Field | Type | Always present | In the example |
|---|---|---|---|
package | string | yes | @modelcontextprotocol/server-filesystem |
requestedVersion | string | yes | latest |
version | string | yes | 2.0.0 |
distTags | array of string | yes | 1 item in the example |
publishedAt | string | yes | 2026-10-19T06:49:57.471Z |
versionAgeDays | number | yes | 1 |
createdAt | string | yes | 2024-11-21T19:14:54.330Z |
packageAgeDays | number | yes | 697 |
versionCount | number | yes | 21 |
maintainers | object | yes | 2 fields: count, names |
provenance | object | yes | 5 fields: attested, predicateType, attestationsUrl and 2 more |
installScripts | object | yes | 3 fields: present, runOnInstall, otherHooks |
dependencies | object | yes | 4 fields: runtime, optional, peer, bundled |
binaries | array of string | yes | 1 item in the example |
deprecated | null | no | null |
license | string | yes | SEE LICENSE IN LICENSE |
engines | object | yes | 1 field: node |
repository | object | yes | 15 fields: declared, directory, github, read, matchesManifest and 10 more |
signals | array of string | yes | 9 items in the example |
reads | object | yes | 2 fields: registry, github |
skippedReads | array | yes | 0 items in the example |
complete | boolean | yes | true |
partial | boolean | yes | false |
sources | array of string | yes | 2 items in the example |
From an MCP client
catalog.call {
"slug": "mcp-package-check",
"params": {
"package": "@modelcontextprotocol/server-filesystem"
}
}Hosted connector (https://agent402.tools/mcp): paid in the call. Stdio package (npx -y agent402-mcp@0.20.0): pays from a wallet or AGENT402_CREDITS_KEY.
Errors and behavior
- Pay $0.005 per call over x402 or MPP. Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - Required:
package; a rejected input answers 4xx witherror,tool,expected,requiredandexample. - On this route, a call ending in any status of 400 or above is not charged over x402, MPP or a credits key. A Tempo push credential pays before the call; a failure is a refund owed.
- A bodyless
GETorHEADreturns the same 402 quote. - An
Idempotency-Keyreplays the first 200 uncharged (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.005" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/mcp-package-check", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"package": "@modelcontextprotocol/server-filesystem"
}),
});Get a wallet or run npx -y agent402-mcp@0.20.0 wallet new.
The quote (Python)
import base64, json, urllib.error, urllib.request
req = urllib.request.Request("https://agent402.tools/api/mcp-package-check", method="POST", data="{\"package\":\"@modelcontextprotocol/server-filesystem\"}".encode(), headers={"Content-Type": "application/json"})
try:
urllib.request.urlopen(req)
except urllib.error.HTTPError as e:
quote = json.loads(base64.b64decode(e.headers["PAYMENT-REQUIRED"]))
print(e.code, [(a["network"], a["amount"]) for a in quote["accepts"]]) # the price, per chain, in base units