Repository avatar
Version Control
v0.2.3
active

mcp

io.github.Custoden/mcp

Lets AI coding agents check npm and PyPI packages, lockfiles and GitHub workflows for malware

Documentation

Custoden MCP server

Lets AI coding agents check dependencies and CI pipelines before they use them. The agent checks an npm or PyPI package before installing it, reviews GitHub Actions workflows as it writes them, and can scan a public repository on request.

AI assistants sometimes suggest packages that do not exist, and attackers register those names (slopsquatting). With this server the agent finds out before it runs npm install.

It calls the free Custoden API. No account or API key, and no runtime dependencies. Published on npm as @custoden/mcp.

Add to Cursor Custoden/mcp MCP server

Tools

ToolWhat it does
check_packageMalware, install-time code, typosquatting, new or unpopular releases and known vulnerabilities for one npm or PyPI package
check_packagesThe same for up to 10 packages
scan_lockfileKnown malware and vulnerabilities in every package of a lockfile, including transitive dependencies. Reads the file from a local path, or takes its content
analyze_workflowSecret theft, script injection, untrusted checkouts, risky actions and missing permissions in a GitHub Actions workflow
analyze_ci_filesCredential theft and campaign indicators in up to 10 files that run during CI (package scripts, setup.py, conftest.py, Makefiles, shell scripts)
scan_repositoryVulnerable, outdated and unused dependencies, workflows and CI files of a public GitHub repository
scan_recent_runsWorkflows that actually ran in a public repository, including ones removed or force-pushed away afterwards

All tools are read-only.

Install

Requires Node.js 20 or later.

Cursor

Click Add to Cursor above, or add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

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

Claude Code

claude mcp add custoden -- npx -y @custoden/mcp

Claude Desktop

Add the same mcpServers entry as for Cursor to claude_desktop_config.json (Settings, Developer, Edit Config).

VS Code

Add this to .vscode/mcp.json:

{
  "servers": {
    "custoden": {
      "command": "npx",
      "args": ["-y", "@custoden/mcp"]
    }
  }
}

Other clients

Any client that supports stdio servers can run npx -y @custoden/mcp.

Example

Ask your agent to add a dependency, and it checks it first:

npm expres@0.0.5: verdict review, risk medium. Review the findings before installing.
Findings:
- [medium] Name resembles popular package "express". "expres" differs from the widely used "express" by one or two characters. Confirm you meant this package.
PyPI package "reqeusts-ai" does not exist. If an AI assistant suggested this name, do not install it: unregistered names can be claimed by attackers (slopsquatting).

To make checking automatic, add a line to your agent rules, for example in AGENTS.md:

Before adding or installing an npm or PyPI package, check it with the custoden check_package tool.

Rate limits

The API is free and limited per IP address: 20 units per minute and 300 per day, and 4 repository scans per hour. See Rate limits. When a limit is hit, the tool returns the error with the number of seconds to wait.

Configuration

VariableDefaultPurpose
CUSTODEN_API_URLhttps://api.custoden.comAPI base URL

Privacy

Package names, lockfiles, workflows and files the agent sends are analyzed in memory and not stored. scan_lockfile only reads files named like a supported lockfile. See the privacy policy.

Development

npm ci
npm run typecheck
npm test

License

MIT

NPM
@custoden/mcp
Install Command
npm install @custoden/mcp