mcpField
A
agent-guard-mcp

agent-guard-mcp

Local
github.com/liminalpepeSecurity0Updated 17w ago

About agent-guard-mcp

agent-guard-mcp is an MCP server for agents and teams checking software supply-chain changes before installation or merge. It evaluates packages, lockfiles, skill manifests, and CI workflows through four focused tools.

Key features

  1. 01Check npm and PyPI packages
  2. 02Scan direct and transitive lockfile dependencies
  3. 03Score skill and plugin manifests
  4. 04Inspect CI workflows for risks

Use cases

  1. 01Review a dependency before installing it
  2. 02Check a generated lockfile before running install
  3. 03Assess a third-party skill or MCP plugin
  4. 04Review CI workflow changes before merging

MCP support

Exposes four tools—`check_package`, `verify_lockfile`, `score_manifest`, and `check_workflow`—to MCP clients. The same checks are also available through an HTTP service.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"liminalpepe-agent-guard": {
"command": "npx",
"args": [
"-y",
"@liminallablibs/agent-guard-mcp"
]
}
}
}
Run commandnpx -y @liminallablibs/agent-guard-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@liminallablibs/agent-guard-mcp0.2.1

Tools

4

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
namestringYesPackage name, e.g. "huggingface-cli".
ecosystemenumNonpm | pypi

Details

From the project README

agent-guard-mcp

npm License: MIT

One line: Verify-before-act safety for AI agents — check packages, lockfiles, skill manifests, and CI workflows before install or merge. Zero API keys. Zero config.

Scores Cursor/Claude skill manifests + GitHub Actions workflows — not just npm dependencies.

When you…Call
npm install foo / agent suggests a new depcheck_package
Review an LLM-generated lockfileverify_lockfile
Install a Cursor skill or MCP pluginscore_manifest
Merge a PR touching .github/workflows/*check_workflow

Call these before installing a dependency, merging a CI change, or installing a third-party skill/plugin — so an agent refuses hallucinated packages, typosquats, poisoned manifests, and compromised CI actions.

Exposes four MCP tools (also available as a plain HTTP service):

ToolUse before…Returns
check_packageadding a single npm/PyPI dependencyOK / SUSPICIOUS / DANGER + typosquat/slop flags
verify_lockfilerunning npm/pip/yarn installscans every direct + transitive dep in a lockfile
score_manifestinstalling a Cursor/Claude skill or MCP/Smithery pluginpoison-signature + scope-overreach + drift score 0–100
check_workflowmerging a PR that touches CIflags mutable action pins, compromised actions, curl|bash, pwn-requests, secret exposure

Why

AI agents routinely hallucinate package names (slopsquatting), trust LLM-generated lockfiles, install unvetted skill packs, and pin CI actions to mutable tags. Each is a live supply-chain vector. This server gives an agent a cheap "is this safe?" call before it acts.

Install (MCP client)

{
  "mcpServers": {
    "agent-guard": { "command": "npx", "args": ["-y", "@liminallablibs/[email protected]"] }
  }
}

Agent rule (paste into Cursor Rules / CLAUDE.md)

Before installing any npm/PyPI package, running install from a lockfile, installing a third-party skill/MCP plugin, or merging CI workflow changes, call the agent-guard MCP tools (check_package, verify_lockfile, score_manifest, check_workflow). If verdict is SUSPICIOUS, REVIEW, or BLOCK/DANGER, stop and show findings to the user — do not proceed.

Quick demo

npx -y @liminallablibs/[email protected]   # MCP clients spawn this via npx
# HTTP mirror:
npm run http && curl "http://localhost:8402/check?name=reactt&ecosystem=npm"
# → DANGER — typosquat of "react"

Or run directly:

npm install
node src/mcp-server.mjs        # stdio MCP server
npm run http                   # optional HTTP mirror on :8402

HTTP endpoints (mirror of the MCP tools)

  • GET /check?name=<pkg>&ecosystem=<npm|pypi>
  • POST /check-lockfile {lockfile_content, format} — format ∈ package-lock.json | yarn.lock | pnpm-lock.yaml | poetry.lock | requirements.txt
  • POST /score-manifest {manifest_type, manifest_content}
  • POST /check-workflow {workflow_content}

License

MIT.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.