Let your coding agent check a package before it installs it
NPMscan’s free MCP server gives Claude Code, Cursor, VS Code, Claude and ChatGPT four read-only tools. They check packages and lockfiles against OSV.dev advisories and answer with the version that fixes each one. No account, no API key.
https://npmscan.io/api/mcpAdd it to your AI tool
It’s a remote server over Streamable HTTP, so there is nothing to install or run on your machine.
Claude Code
Run this in your terminal, then check it with claude mcp list.
claude mcp add --transport http npmscan https://npmscan.io/api/mcpCursor
Add to CursorOr add it to ~/.cursor/mcp.json:
{
"mcpServers": {
"npmscan": {
"url": "https://npmscan.io/api/mcp"
}
}
}VS Code
Install in VS CodeVS Code shows the server before adding it. Or add it to .vscode/mcp.json:
{
"servers": {
"npmscan": {
"type": "http",
"url": "https://npmscan.io/api/mcp"
}
}
}Claude
On claude.ai or the Claude app, open Settings, then Connectors, and add a custom connector named NPMscan with this URL:
https://npmscan.io/api/mcpChatGPT
Turn on developer mode in ChatGPT’s settings, then create a connector with this URL and no authentication:
https://npmscan.io/api/mcpAny other MCP client
Point it at the URL above using the Streamable HTTP transport. Clients on the 2025 and 2026 protocol versions both work.
Four read-only tools
Ask your agent in plain words; it picks the tool. Every answer links to the matching page on NPMscan.
“Is lodash 4.17.20 safe to install?”
Checks one package, at an exact version or its latest release. Says whether that version is affected, the lowest version that fixes every advisory on it, and flags packages reported as malicious.
“Check this project’s dependencies with NPMscan.”
Your agent sends a lockfile or manifest, such as package-lock.json, composer.lock or requirements.txt. You get the vulnerable packages, the version to upgrade each to, and runtimes past end of life.
“Scan github.com/expressjs/express for vulnerable packages.”
Scans a public GitHub repository, the same as the free scan on this site: a health score, vulnerable packages with fixes, and end-of-life runtimes.
“What is CVE-2021-44228 and which versions fix it?”
Reads one GitHub, CVE, OSV or malware advisory: its severity, the packages and versions it affects, and the versions that fix it.
Limits and privacy
Free for everyone, with limits that keep it that way.
- 60 calls an hour for each caller, of which 10 can be dependency or repository scans. Over the limit, the answer says when to try again.
- For each call we keep the tool, the AI client’s name, how long it took and whether it found anything, with a code that changes every week in place of your IP address. Never the files, package names or repositories your agent sends.
- Details are in the privacy policy. Questions or problems: nick@npmscan.io.
Questions
Does it need an account or an API key?
No. The four tools are free and need no sign-in. A free NPMscan account adds what an agent can’t: weekly rescans of your repositories, email alerts when a new advisory hits a package you use, and saved reports.
Can it see my private code?
Only what your agent sends it. check_dependencies receives the lockfile or manifest your agent passes, uses it to answer that one call, and doesn’t store it. scan_public_repo only reads public repositories. To scan private repositories, sign in on this site with GitHub.
Are the answers the same as the website’s?
Yes. The tools run the same code as the package pages and the free scan, against the same OSV.dev data, so each answer matches the page it links to.
Why does it only return names, versions and links?
Package descriptions, READMEs and advisory write-ups are written by other people, and text like that can carry instructions aimed at your agent. So answers hold structured fields only, plus a one-line advisory title, and link to NPMscan for the rest.
Will it stop my agent installing a bad package?
No. It tells your agent what is known about a package before it installs it, and the agent or you decide. It doesn’t sit between you and the registry.