Fetter MCP
Fetter provides a remote Model Context Protocol (MCP) server at https://mcp.fetter.io/mcp that gives AI coding agents real-time access to package vulnerability data. Built on fetter, it queries package registries and OSV to surface known CVEs, CVSS scores, and safe versions so your agent can make informed dependency decisions as it writes code.
Supported ecosystems: Python (PyPI), npm, Cargo (crates.io), GitHub Actions, VS Code extensions (Open VSX), Go, Ruby (RubyGems), PHP (Packagist), and Swift. Python is the default.
To explore related functionality directly in the browser, visit Fetter Lookup.
For implementation details, issues, or feature requests, visit fetter-mcp.
Tools
most_recent_not_vulnerable: find the latest release of a package that is free of known vulnerabilitiesis_vulnerable: check whether a specific pinned version has known CVEslookup: find available versions and their vulnerabilities for any package or requirementlist_ecosystems: list the supported ecosystems, with each one's name format and examples
Installation
The Fetter MCP server uses the HTTP transport and requires no local installation. Just register the remote URL with your MCP client.
Claude Code
claude mcp add --transport http fetter https://mcp.fetter.io/mcp
Codex
codex mcp add fetter --url https://mcp.fetter.io/mcp
Other MCP Clients
For any other MCP-compatible client, provide the following remote server URL using the HTTP transport:
https://mcp.fetter.io/mcp
Agent Usage
Once installed, the Fetter MCP tools are available to your AI agent during coding sessions. The agent can call them automatically when adding or auditing dependencies; no explicit tool invocation is required in your prompts.
Example Prompts
- “Add the latest safe version of requests to requirements.txt”
- “Are there any known vulnerabilities in my current dependencies?”
- “What is the most recent version of lodash with no CVEs?”
- “Before pinning cryptography, check whether 42.0.5 is vulnerable”
- “Is actions/download-artifact@v4.1.2 safe to use in this workflow?”
How It Works
The agent selects the appropriate tool based on context:
- Adding a new package:
most_recent_not_vulnerableto find a safe version - Validating a specific pinned version:
is_vulnerablefor a definitive answer - Auditing an existing requirement:
lookupto see affected versions
Ecosystems
Every lookup tool takes an optional ecosystem parameter; when it is omitted, the ecosystem is python. Ecosystems can be named by their fetter name or by their OSV name (e.g. PyPI, crates.io, RubyGems), case-insensitively.
Python packages use PEP 508 specifiers. Packages of other ecosystems use name@requirement, with the requirement in that ecosystem's native syntax.
Name Formats
| Ecosystem | Exact version | Requirement |
|---|---|---|
| python | requests==2.31.0 | requests>=2.30,<3 |
| npm | lodash@4.17.15 | lodash@>=4.17.15 <4.17.22 |
| cargo | time@=0.1.43 | serde@^1.0 |
| gha | tj-actions/changed-files@v35 | actions/download-artifact |
| vscode | ms-python.python@2024.0.1 | ms-python.python@>=2024.0.0 |
| go | golang.org/x/net@v0.17.0 | golang.org/x/net@>=v0.20.0 <v0.24.0 |
| ruby | nokogiri@1.13.8 | nokogiri@~> 1.16.0 |
| php | guzzlehttp/guzzle@7.4.0 | guzzlehttp/guzzle@~7.4.0 |
| swift | github.com/sparkle-project/Sparkle@2.8.1 | github.com/sparkle-project/Sparkle@>=2.6.0 <2.9.0 |
Every result includes the ecosystem it was looked up in. Each vulnerability carries its ID, summary, maximum CVSS score, severity (Low, Medium, High, Critical), and an OSV URL. Results are returned as structuredContent, with the same JSON also serialized as a text content block for clients that do not read structured content.
list_ecosystems
The list_ecosystems tool takes no parameters and returns the default ecosystem and, for each supported ecosystem, its registry, name format, and example names.
Response (abridged)
{
"default": "python",
"ecosystems": [
{
"name": "npm",
"osv_name": "npm",
"registry": "npm registry (registry.npmjs.org)",
"name_format": "name@requirement with an npm semver range; scoped names allowed",
"exact_example": "lodash@4.17.15",
"range_example": "lodash@>=4.17.15 <4.17.22"
}
]
}Most Recent Not Vulnerable
The most_recent_not_vulnerable tool finds the most recent version of a package that has no known vulnerabilities. Provide only a package name and the server will check the latest release. Useful when pinning a dependency to the latest clean release.
Parameters
- namePackage name, without a version, e.g.
"requests"or"lodash". For ecosystems other than Python, an@requirementrange may be given to search within. - ecosystemOptional; defaults to
"python".
Example
Request
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 2,
"params": {
"name": "most_recent_not_vulnerable",
"arguments": {
"name": "lodash",
"ecosystem": "npm"
}
}
}Response (structuredContent)
{
"ecosystem": "npm",
"package": "lodash",
"version": "4.18.1",
"vulnerabilities": [],
"vulnerable": false
}Find Vulnerabilities
The is_vulnerable tool checks if a specific package version has known vulnerabilities. Requires an exact version: name==version for Python, name@version for other ecosystems. Returns vulnerability IDs, summaries, CVSS scores, severity ratings, and reference URLs.
Parameters
- nameExact package version, e.g.
"requests==2.31.0"or"time@=0.1.43". - ecosystemOptional; defaults to
"python".
Example
Request
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 2,
"params": {
"name": "is_vulnerable",
"arguments": {
"name": "time@=0.1.43",
"ecosystem": "cargo"
}
}
}Response (structuredContent)
{
"ecosystem": "cargo",
"package": "time",
"version": "0.1.43",
"vulnerabilities": [
{
"cvss_score": 6.2,
"id": "GHSA-wcg3-cvx6-7396",
"severity": "Medium",
"summary": "Segmentation fault in time",
"url": "https://osv.dev/vulnerability/GHSA-wcg3-cvx6-7396"
},
{
"cvss_score": 6.2,
"id": "RUSTSEC-2020-0071",
"severity": "Medium",
"summary": "Potential segfault in the time crate",
"url": "https://osv.dev/vulnerability/RUSTSEC-2020-0071"
}
],
"vulnerable": true
}Search Packages
The lookup tool looks up a package by name and optional version requirement to find which versions are available and whether they have known vulnerabilities. Supports requirements such as "numpy>=2.0", "lodash@>=4.17.15 <4.17.22", or "actions/download-artifact".
Parameters
- namePackage name with an optional requirement.
- ecosystemOptional; defaults to
"python". - limitWhen the name is not an exact version, limit the number of recent versions checked.
- cvss_filter
"all"(default) for all vulnerabilities,"max"for only the highest CVSS score per version, or a number (0–10) to keep only vulnerabilities at or above that score. - retain_passingInclude versions with no known vulnerabilities in the results (default: false).
Example
Request
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 2,
"params": {
"name": "lookup",
"arguments": {
"name": "actions/download-artifact@v4.1.2",
"ecosystem": "gha"
}
}
}Response (structuredContent)
{
"ecosystem": "gha",
"package": "actions/download-artifact",
"versions": [
{
"version": "v4.1.2",
"vulnerabilities": [
{
"cvss_score": 8.6,
"id": "GHSA-cxww-7g56-2vh6",
"severity": "High",
"summary": "@actions/download-artifact has an Arbitrary File Write via artifact extraction",
"url": "https://osv.dev/vulnerability/GHSA-cxww-7g56-2vh6"
}
],
"vulnerable": true
}
]
}If some versions could not be checked against OSV, they are listed in an unaudited array; these are not known to be free of vulnerabilities.