> ## Documentation Index
> Fetch the complete documentation index at: https://docs.custoden.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server for AI agents

> Let Cursor, Claude Code and other AI coding agents check packages and workflows before they use them.

The [Custoden MCP server](https://github.com/Custoden/mcp) gives AI coding agents tools that call this API. The agent can check an npm or PyPI package before installing it, review a GitHub Actions workflow as it writes it, and scan a public repository when you ask.

AI assistants sometimes suggest packages that do not exist, and attackers register those names. With the MCP server, the agent learns that a package is missing, new, unpopular or malicious before it runs `npm install`.

## Install

Requires Node.js 20 or later. No account or API key.

> [tab] Cursor
>
> Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "custoden": {
>       "command": "npx",
>       "args": ["-y", "@custoden/mcp"]
>     }
>   }
> }
> ```

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add custoden -- npx -y @custoden/mcp
> ```

> [tab] VS Code
>
> Add to `.vscode/mcp.json`:
>
> ```json theme={null}
> {
>   "servers": {
>     "custoden": {
>       "command": "npx",
>       "args": ["-y", "@custoden/mcp"]
>     }
>   }
> }
> ```

Other clients that support stdio servers can run `npx -y @custoden/mcp`.

## Tools

| Tool | Endpoint |
| - | - |
| `check_package` | [Check a package](https://docs.custoden.com/api-reference/check-a-package.md) |
| `check_packages` | [Check multiple packages](https://docs.custoden.com/api-reference/check-multiple-packages.md) |
| `scan_lockfile` | [Scan a lockfile](https://docs.custoden.com/api-reference/scan-a-lockfile.md). Reads the lockfile from a local path, so the agent does not paste it |
| `analyze_workflow` | [Analyze a workflow](https://docs.custoden.com/api-reference/analyze-a-workflow.md) |
| `analyze_ci_files` | [Analyze CI files](https://docs.custoden.com/api-reference/analyze-ci-files.md) |
| `scan_repository` | [Scan a repository](https://docs.custoden.com/api-reference/scan-a-repository.md) |
| `scan_recent_runs` | [Scan recent runs](https://docs.custoden.com/api-reference/scan-recent-runs.md) |

All tools are read-only. A package that does not exist is returned as a normal result with a warning, so the agent stops instead of retrying.

## Check every new dependency

Agents call the tools when they judge them useful. To make package checks automatic, add a line to your agent rules, such as `AGENTS.md` or a Cursor rule:

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

## Rate limits

The tools share the API's [rate limits](https://docs.custoden.com/getting-started/rate-limits.md) for your IP address. When a limit is reached, the tool returns the error with the seconds to wait.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.