Pre-install checks for AI agents
Malicious packages. Agent vulnerabilities. One call.
Before your agent installs a package or launches an MCP server, one call tells it whether that package is malware (every OpenSSF record, in every ecosystem we read), affected by a known vulnerability, or exploited in the wild (checked against CISA's list), and which versions fix it. When we don't know, we say so instead of saying clear.
Coming next: verified safe upgrades, $0.003 an answer planned, with a free sample first.
Welcome to AgentSec. We are live. Early operators: generate your agent key today. Safety warnings are free; paid safe-path answers switch on only after notice by email. Get your key from the command line.
This is the plain version of the page. With JavaScript on, it adds live counts, the key signup form, an API status light and blog audio.
How it works
- Generate a key. Name your agent, accept the terms, and copy the key. It takes a minute.
- Hand it to your agent. Point the agent at /api/check or add the AgentSec MCP server, with the key as AGENTSEC_API_KEY.
- Check before every build. Warnings are free. Malware and exploited packages come first, with the versions that fix them. Verified safe upgrades come next, paid per answer.
Every answer carries a coverage status and a decision; install only when the decision is allow. Only clear means no known issue at that version. not_covered and stale mean not checked: use another source and never report the package as safe. unknown_version means the version couldn't be compared: check again with the exact installed version, and if you can't, treat it as affected. malicious means do not install any version.
Connect your agent
MCP server (Streamable HTTP): https://agentsec.store/mcp, tools check_package and check_packages. Checks are free and need no key. Setup for each client is also on AgentSec for AI agents.
Claude Code
claude mcp add --transport http agentsec https://agentsec.store/mcpWith an agent key:
claude mcp add --transport http agentsec https://agentsec.store/mcp \
--header "Authorization: Bearer $AGENTSEC_API_KEY"Your shell fills in the key from AGENTSEC_API_KEY, and Claude Code saves it in its own settings. In a shared .mcp.json, write "Bearer ${AGENTSEC_API_KEY}" instead, so the file holds only the variable name.
Cursor
.cursor/mcp.json in the project, or ~/.cursor/mcp.json
{
"mcpServers": {
"agentsec": {
"url": "https://agentsec.store/mcp"
}
}
}With an agent key:
{
"mcpServers": {
"agentsec": {
"url": "https://agentsec.store/mcp",
"headers": {
"Authorization": "Bearer ${env:AGENTSEC_API_KEY}"
}
}
}
}Cursor reads AGENTSEC_API_KEY from the environment it was started in.
VS Code
.vscode/mcp.json
{
"servers": {
"agentsec": {
"type": "http",
"url": "https://agentsec.store/mcp"
}
}
}With an agent key:
{
"inputs": [
{
"type": "promptString",
"id": "agentsec-key",
"description": "AgentSec agent key",
"password": true
}
],
"servers": {
"agentsec": {
"type": "http",
"url": "https://agentsec.store/mcp",
"headers": {
"Authorization": "Bearer ${input:agentsec-key}"
}
}
}
}VS Code asks for the key once and stores it for you, so it never sits in the file. Its docs don't list environment variables for headers.
Codex
codex mcp add agentsec --url https://agentsec.store/mcpWith an agent key (~/.codex/config.toml):
[mcp_servers.agentsec]
url = "https://agentsec.store/mcp"
bearer_token_env_var = "AGENTSEC_API_KEY"Codex sends AGENTSEC_API_KEY as the bearer token. Its docs list no command-line flag for this.
Windsurf
~/.config/devin/mcp_config.json
{
"mcpServers": {
"agentsec": {
"url": "https://agentsec.store/mcp"
}
}
}With an agent key:
{
"mcpServers": {
"agentsec": {
"url": "https://agentsec.store/mcp",
"headers": {
"Authorization": "Bearer ${env:AGENTSEC_API_KEY}"
}
}
}
}Windsurf reads AGENTSEC_API_KEY from the environment. If your version sends the text unexpanded, write the key in this file instead and keep it private.
Cline
MCP settings (Cline defaults to SSE, so set the type)
{
"mcpServers": {
"agentsec": {
"type": "streamableHttp",
"url": "https://agentsec.store/mcp"
}
}
}With an agent key:
{
"mcpServers": {
"agentsec": {
"type": "streamableHttp",
"url": "https://agentsec.store/mcp",
"headers": {
"Authorization": "Bearer ask_…"
}
}
}
}Cline's docs show the header value written out and name no environment-variable syntax, so replace ask_… with your key here. Keep this file out of shared or committed folders.
Plain HTTP
One package, one line back
curl -s 'https://agentsec.store/api/check?package=npm:@zereight/mcp-gitlab&version=2.1.29&format=an1'
Up to 200 packages at once
curl -s -X POST 'https://agentsec.store/api/check?format=an1' \
-H 'content-type: application/json' \
-d '{"packages":[{"package":"pip:mcp-atlassian","version":"0.22.0"}]}'
With an agent key (optional)
curl -s 'https://agentsec.store/api/check?package=pip:mcp-atlassian&version=0.22.0&detail=full' \
-H "Authorization: Bearer $AGENTSEC_API_KEY"API
Base URL https://agentsec.store. Full reference: API docs and OpenAPI 3.1.
| Endpoint | What it does |
|---|---|
GET /api/check | Check one package version |
POST /api/check | Check up to 200 packages (e.g. a lockfile) |
GET /api/health | Service health |
GET /api/today | Newest agent-relevant advisories (last 24 h) |
GET /api/stats | Public counts: malicious packages, vulnerabilities, exploited |
GET /api/metrics | Aggregates behind the /metrics page |
GET /api/whoami | Confirm an agent key works |
GET /api/keys | The terms version a key signup must accept |
POST /api/keys | Create an agent key (a person accepts the terms) |
GET /api/pricing | Prices and how to pay |
GET /api/pathway | Verified safe upgrade target (paid, test mode) |
GET /api/credits | Credit balance for an agent key |
POST /api/credits | Top up credits (Stripe Checkout) or confirm a paid top-up |
GET /api/recipes | Build recipes with their sources |
POST /mcp | MCP server (Streamable HTTP) |
Answer formats
JSON by default. Add &format=an1, &format=markdown or &format=mcp to /api/check.
JSON
GET /api/check?package=npm:@zereight/mcp-gitlab&version=2.1.29 · first of 4 advisories shown, summary and references trimmed
{
"package": "npm:@zereight/mcp-gitlab",
"key": "npm:@zereight/mcp-gitlab",
"version": "2.1.29",
"coverage": "affected",
"advisories": [
{
"id": "GHSA-vmp7-252j-cwp7",
"source": "ghsa",
"cve_id": "CVE-2026-61568",
"aliases": ["CVE-2026-61568"],
"title": "@zereight/mcp-gitlab: DNS rebinding reaches local Streamable HTTP MCP transport",
"summary": "`@zereight/mcp-gitlab` exposes its Streamable HTTP MCP endpoint without an effective Host or Origin allowlist…",
"severity": "critical",
"cvss_score": 9.6,
"cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
"cwes": ["CWE-350"],
"malicious": false,
"version_match": "match",
"vulnerable_ranges": ["< 2.1.30"],
"patched_versions": ["2.1.30"],
"url": "https://github.com/advisories/GHSA-vmp7-252j-cwp7",
"reference_urls": ["https://github.com/zereight/gitlab-mcp/releases/tag/v2.1.30"],
"published_at": "2026-09-15T20:54:55+00:00",
"modified_at": "2026-09-15T20:54:56+00:00"
}
],
"data_as_of": {
"nvd": "2026-10-05T13:06:44Z",
"ghsa": "2026-10-05T13:36:33Z",
"osv": "2026-10-05T13:10:39Z"
},
"stale_sources": [],
"sources": ["nvd", "ghsa", "osv"]
}
an1 line
?format=an1 · one line per package, about 40 tokens, no upstream text
an1 npm:@zereight/mcp-gitlab@2.1.29 AFFECTED act=fix sev=critical ids=2 fixes=2.1.30 asof=2026-10-05T13:06Z
Markdown
?format=markdown · for chat agents that show the answer to a person; upstream text escaped and quoted
**npm:@zereight/mcp\-gitlab 2\.1\.29**: **affected** (2 vulnerabilities, highest critical)
- Published fixed versions: 2\.1\.30\. Check that the version you pick clears every advisory.
- GHSA\-vmp7\-252j\-cwp7 / CVE\-2026\-61568 (critical): advisory title, quoted: "@zereight/mcp\-gitlab: DNS rebinding reaches local Streamable HTTP MCP transport"
- GHSA\-5648\-rgj9\-v224 (high): advisory title, quoted: "@zereight/mcp\-gitlab has multiple safety\-control bypasses: execute\_graphql read\-only \+ allow\-list bypass, unauthenticated transports, session\-exhaustion DoS"
_Data as of 2026-10-05 13:06 UTC._
MCP tool result
POST /mcp (MCP server, tool check_package) or ?format=mcp · shortened
{
"content": [
{
"type": "text",
"text": "an1 npm:@zereight/mcp-gitlab@2.1.29 AFFECTED act=fix sev=critical ids=2 fixes=2.1.30 asof=2026-10-05T13:06Z"
}
],
"structuredContent": {
"results": [
{
"key": "npm:@zereight/mcp-gitlab",
"version": "2.1.29",
"coverage": "affected",
"status": "AFFECTED",
"action": "fix",
"malicious": false,
"severity": "critical",
"advisory_ids": ["GHSA-vmp7-252j-cwp7", "GHSA-5648-rgj9-v224"],
"fixed_versions": ["2.1.30"]
}
],
"data_as_of": { "nvd": "2026-10-05T13:06:44Z", "ghsa": "2026-10-05T13:36:33Z", "osv": "2026-10-05T13:10:39Z" },
"stale_sources": []
},
"isError": false
}Give your agent a key.
Checks work without one: warnings are free and need no key. A key adds full advisory detail, lets you see and revoke what each agent uses, and is where paid answers will be bought, with prices shown and a free sample first. One key per agent, as AGENTSEC_API_KEY.
Get a key from the command line
No browser needed. Edit the first lines, then paste this into a shell. It saves the key to a file only you can read and never shows it on screen.
# Read the terms first: https://agentsec.store/terms/
# Setting ACCEPT_TERMS=yes accepts them, as ticking the box on the form does.
ACCEPT_TERMS=no AGENT=my-agent EMAIL=you@example.com KEYFILE=~/.agentsec.env
API=https://agentsec.store/api/keys
if [ "$ACCEPT_TERMS" != yes ]; then echo "Read the terms, then set ACCEPT_TERMS=yes"
elif [ -e "$KEYFILE" ]; then echo "$KEYFILE exists; choose another KEYFILE"
else
TERMS=$(curl -sS "$API" | sed -n 's/.*"terms_version":"\([^"]*\)".*/\1/p')
BODY=$(printf '{"label":"%s","email":"%s","accept_terms":true,"terms_version":"%s"}' \
"$AGENT" "$EMAIL" "$TERMS")
RES=$(curl -sS "$API" -H 'content-type: application/json' -d "$BODY")
KEY=$(printf '%s' "$RES" | sed -n 's/.*"key":"\(ask_[A-Za-z0-9_-]*\)".*/\1/p')
if [ -n "$KEY" ]; then
(umask 077; echo "export AGENTSEC_API_KEY=$KEY" > "$KEYFILE") && echo "Key saved to $KEYFILE"
else printf '%s\n' "$RES"; fi
unset RES KEY
fi
Then load the key and check that it works. Your agent reads AGENTSEC_API_KEY from its environment and sends it only in the Authorization: Bearer header, never in a URL or a prompt.
. ~/.agentsec.env
curl -s https://agentsec.store/api/whoami -H "Authorization: Bearer $AGENTSEC_API_KEY"
The signup form on this page needs JavaScript; the command does the same. What a key is, what stays free and how to send one: Agent keys.
| What | Price |
|---|---|
| Verdicts, malware and exploited warnings | Free, no key needed |
| Full advisory detail: summaries, references, CWEs | Free with a key |
| Verified safe upgrade for one package | In testing · $0.003 planned, free sample first |
| Stack rebuild plan: whole lockfile or mcp.json | Planned |
The terms in short
- AgentSec reports known advisories; a clear answer is not a guarantee that a package is safe.
- Malicious and exploited warnings are never paywalled.
- Keys are free, and nothing is billed today.
- When paid answers launch, we show the prices and ask before billing; you can try a small, rate-limited sample first.
- Paid answers will be charged only for answers actually returned (no charge for errors, stale or not-covered results).
- Keep your key secret. We store only a hash of it and cannot show it again.
- You are responsible for what your agents do with our answers; advisory text from third parties is untrusted.
Full text: Terms of Service, Privacy Notice.
Field notes
- Eight numbers that tell you whether an agent's software is safe October 6, 2026
A field guide to the metrics that matter when agents install software, with a real example for each, where we stand today, and how you'll see them in AgentSec's diagnostics through the API and a panel for the people who manage agents. - Exploited first is right. Agents need one more step. October 5, 2026
A good case for ranking vulnerabilities by KEV and EPSS instead of CVSS, and what changes when the reader is an agent installing packages rather than an analyst triaging a backlog.