
mcpm
io.github.getmcpmPublished by GitHub account getmcpmv0.52.0Updated Nov 8, 2026
MCP security guard + package manager: trust-scored installs, blocks prompt injection and rug-pulls.
Overview
Local MCP security guard and package manager: trust-scored installs, pinned tool definitions, and a relay that blocks prompt injection and rug-pulls.
- What you can do
- Search, inspect and install MCP servers from the official registry, with a trust score before config is written
- Audit, list, update, enable, disable and remove installed servers across multiple AI clients
- Explain trust scores and check setup health, including plaintext secrets pasted into client configs
- Manage stack files: scaffold, export, lock with trust snapshots, install, diff and sync across clients
- Run a guard relay that pins tool definitions, blocks injection and can be paused, muted or re-pinned
- Verify lockfile integrity and Sigstore provenance in CI, with JSON and SARIF output
- When to use it
- Useful when you install MCP servers from public registries and want a local, account-free check on what you add, plus runtime inspection of tool calls. Also fits teams that want a declarative, locked MCP setup replicated across clients and gated in CI.
- Requirements
- Runs locally as a Node.js CLI via npx or a global npm install; requires Node 22.22.2+, 24.15.0+ or 26+ (23.x and 25.x excluded). Commands that resolve, audit or re-verify reach the public MCP registry and npm. Publishing needs GITHUB_TOKEN or MCPM_TOKEN, or GitHub OIDC in Actions. An external scanner is opt-in via MCPM_EXTERNAL_SCANNER.
Installation
In SourceWeft
- Open mcpm in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[mcpm — MCP security guard and package manager for Model Context Protocol servers]
mcpm — MCP security guard and package manager
Block prompt injection, tool poisoning, rug-pulls and credential theft in Model Context Protocol (MCP) servers -- at runtime, on your machine. Your AI agent trusts every MCP server it talks to; mcpm scores each install, verifies its supply chain with Sigstore, pins every tool definition, and inspects every tool call through a local relay -- with an opt-in OS sandbox on macOS. No cloud, no account, no LLM in the enforcement path.
Everything runs on your machine. No account, no mcpm backend, no telemetry -- the guard is a local stdio relay, and trust scores are computed locally with no model and no remote verdict (the 40-point static-scan bucket is deterministic regex/structural checks you can read yourself; the rest is a reserved health-check bucket (not run by current commands), registry metadata, and an external scanner only if you name one). Commands that resolve, audit or re-verify a server do reach the public MCP registry and npm -- nothing reaches an mcpm server.
[npm version] [license] [tests] [Known Vulnerabilities]
The risky part of an MCP server doesn't show up at install -- it shows up while your agent is running: prompt injection hidden in a tool's output, a server that quietly rewrites its tools after you approved them, a sampling request that smuggles instructions into your model. Being listed in a registry is not a safety signal -- in 2026 a proof-of-concept poisoned server was accepted by 9 of 11 public registries and marketplaces. So mcpm scores every install for hardcoded secrets, prompt injection, and typosquatting -- then runs a live guard between your AI client and each server, pinning tool definitions against rug-pulls and blocking injection before it reaches the model.
You don't have to take our word for any of that. Guards are easy to claim and hard to check, so the measuring stick is public: mcp-guardbench is a guard-agnostic benchmark -- versioned attack and benign cases, an open schema, and a runner that scores any MCP guard through its own published CLI. mcpm is scored the same way as everyone else, by shelling out to mcpm guard inspect, never by importing its own engine.
The corpus isn't mcpm's own test fixtures anymore. As of corpus v5 (57 cases: 33 attack, 20 benign, 4 warn-and-forward) it includes seven cases rebuilt from real, publicly disclosed CVEs in third-party MCP servers, plus three cases reproducing Deadbugz, an active in-the-wild MCP supply-chain campaign -- the third contributed externally by @vguillaume8 (see below). The published top row: @getmcpm/[email protected] scores 86.5% recall / 0.0% false-positive rate / 100% precision; every mcpm row is measured through that exact version's published CLI. That is a baseline, not a boast -- mcpm's misses are published on the same page as its wins, including all three Deadbugz-derived cases (below).
How this differs. Microsoft APM is the closest analog -- an npm-style installer and lockfile for MCP servers (and skills/prompts/plugins) across 9+ clients -- but its own docs say it produces no signed attestation for its install/audit gates, list Sigstore verification as out of scope until v0.2, and give its policy schema no fields for runtime permissions or agent sandboxing. Smithery, acquired by Arcade.dev (2026-08-05), is a hosted-execution lane, not a local CLI. OSS runtime proxies like McpVanguard and MCP Firewall inspect and enforce policy at runtime, and MCP Firewall also offers containment -- but neither adds install-time trust scoring or Sigstore-verified supply-chain checks. (mcp-guardbench carries a McpVanguard row, but its own README says that row is not comparable to the mcpm rows and should not be quoted as a head-to-head: it drives one offline harness layer rather than McpVanguard's real proxy deployment, and abstains on roughly half the corpus.) What mcpm combines is a trust score, offline Sigstore provenance verification, and a runtime relay with pin/drift plus OS confinement in a single local, account-free tool.
Quick start
Install with the package manager you already use:
Requires Node ^22.22.2 || ^24.15.0 || >=26.0.0 — that is 22.22.2+, 24.15.0+ or
26+, the intersection of what every runtime dependency itself supports. Everything
else is excluded, 23.x and 25.x included. npm warns EBADENGINE and fails outright
under --engine-strict; pnpm installs silently and exits 0 unless you set
engine-strict=true, so there an unsupported Node surfaces as a runtime error rather
than an install one.
The binary is mcpm. Heads up: the mcpm Homebrew formula is a different,
unrelated project (mcpm.sh) — install this mcpm via
npm/npx/pnpm/mise above (all resolve the scoped @getmcpm/cli package, so there's
no name collision). A dedicated Homebrew tap is deferred; see
docs/DISTRIBUTION.md.
Features
Search the MCP registry
Query the official MCP Registry and see results with trust indicators.
Search shows registry lifecycle status, not a trust score -- it is a fast discovery list and does not run the scanner per result. Computed trust lives in mcpm why, info, install, and audit.
Install with trust assessment
Every install runs a metadata-based trust assessment before writing config.
Audit installed servers
Scan everything you have installed. Get a trust report.
audit never executes a server, so the 30-point health-check bucket scores a flat 15 and
62/80 is the ceiling — no server can be rated safe here. A server that cleared every
check that actually ran reads clean · not run instead. servers-github scores 60 because
an npx -y launcher draws one low install-script finding, which is also why it reads
caution rather than clean · not run: that label requires the scan to have found
nothing, not merely a top-band score.
audit also does not apply the release-age cooldown finding that why, install,
up and lock do (src/scanner/cooldown.ts is an install-gate signal — it exists to
arm install --min-release-age / policy.minReleaseAgeHours, and re-penalising an
already-installed server for being young is not a decision audit is making). For a
release under 24 h old that is a medium, so mcpm audit can read 5 points higher
than mcpm why for the same server at the same moment. Neither number is wrong; they
answer different questions.
Cross-IDE support
One tool for all your AI clients. mcpm reads and writes the correct config format for each.
Doctor: check your MCP setup health
Find misconfigurations, missing runtimes, broken servers, and plaintext secrets pasted into client config.
The plaintext-secret scan reports the key name and label only — never the value — and skips values already stored as mcpm:keychain: placeholders. It's advisory (never fails doctor).
Client lifecycle compatibility
Cursor and Gemini enable/disable retain the definition in an mcpm-owned parking map in the same global config file; rerun disable to repair older ignored flags. This affects future discovery and does not stop running peers or override project-local definitions. See Cursor validation. Gemini enable restores only the managed definition; native exclusions and enablement state still apply. Its native toggle commands have separate measured limitations; see Gemini validation.
Stack files: docker-compose for MCP
Declare your project's MCP servers in mcpm.yaml, lock versions with trust snapshots, and let every team member replicate the setup with one command.
Stack files include a trust policy. If a server's trust score drops below the threshold, mcpm up blocks it.
Locks record the MCP publication version separately from the actual package
version. up verifies the locked package tuple before writing any client config,
then launches that npm/PyPI version or explicit OCI tag/digest. Old locks without
package-version evidence need mcpm lock again. OCI tags remain mutable, and
integrity checks compare registry records; mcpm does not intercept the bytes that
package managers download at launch.
Scaffold a stack file
Start a new project's MCP setup in one command. mcpm init writes a starter mcpm.yaml you fill in with servers from mcpm search.
It refuses to clobber an existing mcpm.yaml (pass --force to overwrite). mcpm deliberately doesn't ship curated packs — blessing specific community servers is a trust decision a security tool shouldn't bake in.
Trust score
The trust score is a 0-100 assessment based on publicly available metadata. It is not a source code audit.
What it checks:
Levels are a ratio of the points available, not absolute: safe at 80% of maxPossible or better, caution at 50-79%, risky below 50%. With no external scanner (maxPossible 80) that puts safe at 64 points, not 80.
mcpm audit shows clean · not run where the server cleared every check that actually ran and the only unmeasured component is the health check — audit never executes servers, so that bucket scores a flat 15/30 and would otherwise drag every flawless server into caution. It is a statement about what mcpm did (found nothing, ran nothing), deliberately weaker than safe, which is reserved for servers whose health check really ran.
Without an external scanner, the maximum possible score is 80/100 and the bucket is dropped from the total rather than counted as a failure. The static scan catches common patterns but cannot detect all vulnerabilities. Treat the score as a signal, not a guarantee.
External scanning is opt-in and mcpm never downloads a scanner. Set MCPM_EXTERNAL_SCANNER to the path or name of a scanner you have already installed. mcpm probes it with <scanner> --version and, if that exits 0, scans each server with <scanner> --json <server-name>, expecting {"findings": [...]} on stdout. A scanner whose output cannot be read is treated as absent rather than as a clean pass, so the bucket leaves the total instead of silently earning 20/20 — otherwise any binary that exits 0 would raise trust scores.
Package runners (npx, uvx, pipx, docker, shells, …) are refused, including via symlink or a runner's -cli.js entrypoint. Be clear about what that is worth: it is a footgun guard, not a security boundary. Anyone who can set this variable can usually set PATH or drop a file too. What it buys is that a pasted npx … recipe — or a future mcpm default drifting back toward one — cannot quietly re-create the fetch-and-execute vector this seam was rebuilt to remove.
No scanner is recommended here because none evaluated so far fits: snyk/agent-scan (the actively maintained successor to Invariant Labs' mcp-scan) does accept a bare registry coordinate as input, but it converts that coordinate into an npx/uvx/docker run invocation and starts the server to inspect it live — conflicting with mcpm's install-then-verify design at the two call sites (install, lock) where this runs before you've committed to installing — and it requires a Snyk account and SNYK_TOKEN, with no offline mode. See src/scanner/tier2.ts's header comment for the full evaluation.
Those 20 points inform the score but cannot clear a safety floor. The MCP server surface (mcpm_install, mcpm_up, mcpm_setup) enforces a hard trust floor of 25 that no caller-supplied value may lower — and since MCPM_EXTERNAL_SCANNER names an arbitrary executable, a two-line script printing {"findings": []} is caller-supplied input too. So the floor is compared against mcpm's own evidence only: health check + static scan + registry metadata, out of 80. The exclusion is one-directional — a scanner reporting a critical finding still drags a server down through the floor (via the registry-metadata cap), it just can't push one up through it. Your own --min-trust threshold, a stack file's policy.minTrustScore, and mcpm audit --fix are unaffected: there the same person picks both the threshold and the scanner. audit --fix is also the one score gate that deletes rather than refuses, so subtracting the bucket there would remove more servers, not fewer.
Commands
Run mcpm <command> --help for options and flags.
CI: verify your lockfile
mcpm verify is a repo-only, client-free gate: it checks your committed
mcpm-lock.yaml against npm's published dist.integrity record and exits
non-zero on integrity drift, an unverifiable record, a format mismatch, or a
suspicious missing baseline. Because it needs no AI clients installed, it runs on a
hosted CI runner (where mcpm up cannot).
It also checks that the lock covers what mcpm.yaml declares. The other gates
read only the lock, so they pass over a lock that is missing servers — the coverage
check is what stops a truncated lock from verifying green while enforcing less than
you asked for. A lock holding no servers at all never passes unless an mcpm.yaml
beside it confirms nothing was declared. Correspondingly, mcpm lock is
all-or-nothing: if any server fails to resolve it reports every failure and writes
nothing, leaving the previous lock intact.
It also re-verifies Sigstore provenance for every npm server whose lock recorded
a cryptographically verified baseline: it re-runs the offline crypto verification
against npm's current record and fails closed if the attestation regressed — the
signer identity changed, it no longer verifies, or it can't be re-checked. This is
evidence-gated, so a lock with no verified baselines (the common case) is
unaffected. mcpm up --frozen runs the same integrity + provenance freeze before
installing.
mcpm lock also records each npm server's published provenance identity (the
source repo + immutable GitHub repo/owner ids behind the build) and WARNs when it
drifts across versions — a repo/owner change or a signed→unsigned drop, the shape
of a hijacked-publish (Postmark) attack.
mcpm lock and mcpm why additionally cryptographically verify the provenance
offline — the attestation's Sigstore bundle is checked against a vendored trust
root (no network at verify time), and the attested subject digest is bound to the
package's dist.integrity, so a valid attestation for a different tarball can't
pass. When it holds, the record reads verified; otherwise attested — an
unverified registry record — or unsigned (neutral). Report-only, and honest
about scope: verified means the build identity is cryptographically attested
by the CI's OIDC token — not that the code is safe (a same-repo CI compromise
mints a valid attestation).
The Action writes a job step summary from --json; the same verb works as a
pre-commit hook. See .github/actions/mcpm-verify.
Code scanning: mcpm audit --sarif emits a SARIF 2.1.0 report (one rule per
finding type, findings anchored file-level to mcpm.yaml) that GitHub ingests as
code-scanning alerts:
mcpm audit exits 1 when a server is risky and 2 when the invocation itself
cannot be satisfied — an impossible --min-trust, or a flag combination mcpm
refuses (--sarif is report-only and cannot be combined with --fix). A script
that treats every non-zero exit as "a server is risky" will misread the second.
Honesty boundary: a failure means npm's published record diverged from your lock — not that mcpm caught malicious bytes; npx/uvx fetch the artifact independently at server launch.
Runtime defense (mcpm-guard)
The v0.47.0 guard compatibility update inspects modern MCP discovery and embedded sampling/elicitation requests. Unknown embedded request shapes produce a coverage warning. See the protocol coverage matrix for the exact stdio boundaries and remaining gaps.
v0.47.1 adds a reproducible sandbox compatibility harness for the pinned published v0.47.0 baseline and official SDK v1/v2 peers. Its named stdio matrix passes on Linux/arm64 and Linux/amd64; that matrix does not exercise installed native clients or complete protocol conformance. Runtime behavior is unchanged.
v0.47.2 adds the repository native client smoke suite for pinned VS Code and Claude Code builds in disposable macOS VMs. Its published mcpm baseline remains 0.47.1. It exercises actual global configurations and MCP calls with synthetic inputs; live models, interactive chat and other client/platform combinations require separate tests.
v0.47.8 fixes Gemini effective disable: Gemini now shares Cursor's parking behavior for user-global disable. The reviewed candidate passes 11 real Gemini lifecycle checks; two native-command limitations remain separate. Rerun disable for older ignored flags. See Gemini validation. v0.47.8 publication is verified on npm and the official registry, with actual tarball integrity, provenance, signed SBOM and clean-install checks.
v0.47.7 fixes Cursor global disable by parking definitions outside the active server map. Rerun disable to repair old ignored flags. The reviewed candidate passes eight Cursor CLI cases; Gemini connection validation records seven passes and three explicit toggle limitations. v0.47.7 publication is verified on npm and the official registry, with actual tarball integrity, provenance, signed SBOM and clean-install checks.
v0.47.5 adds candidate-only native workspace/server trust validation: four cases each in pinned VS Code and Claude Code, with Astra-reviewed evidence checks. Application source and dependencies are unchanged from v0.47.4.
v0.47.4 refreshes dependency locks and pinned build/security Actions, preserving all nine security overrides. Application source and compatibility claims are unchanged; native/reference test baselines remain explicitly pinned.
v0.47.3 fixes VS Code user-global JSONC configuration edits so unrelated comments/settings and the raw backup survive the MCP lifecycle. It also adds separate native approval/denial tests: four cases each in the pinned VS Code and Claude Code builds, with synthetic model responses. A later candidate-only Phase 2D suite validates workspace/server trust in both pinned clients: VS Code re-prompts when an imported server definition changes, while Claude Code 2.1.296 persists approval by project server name and does not. Inline chat/Agent Host, native macOS dialogs and live providers remain unverified.
Install-time trust scoring catches most poisoned servers before they ship. But what about rug-pulls — a server that changes its tool definitions after you've already approved them? Or prompt-injection in tool responses — adversarial text embedded in a Slack message, web page, or calendar invite that the agent reads through your trusted MCP server?
mcpm guard adds a runtime inspection layer. It wraps every installed MCP server with a stdio relay, scans tool descriptions / responses / arguments for OWASP MCP Top 10 attack patterns, pins each tool's schema at install time, and blocks calls when the live response drifts from the pin (rug-pull defense).
What happens on every tool call
The guard sits inline on the stdio channel between your AI client and each MCP server, so it sees both halves of every tool call and inspects them as they pass:
- The request your agent sends — the tool name and arguments, checked for sensitive-path exfil and injection smuggled into call parameters.
- The response the server returns — checked for instruction injection hidden in the tool's output (the Slack message, web page, or calendar invite your agent is about to read).
- Skills discovery metadata (v0.48.1) — skill list/get frontmatter and resource listing metadata use the same injection/concealment checks. Critical metadata matches block; file text remains warn-and-forward. See Skills guard validation for measured scope and host-approval limits.
- The tool's own definition —
tools/listdescriptions, schemas, and annotations, checked against the schema pinned on first observation (TOFU), so a server can't quietly rewrite a tool you already trusted.
When a frame receives a block verdict from a signature, drift check, or policy rule, the guard drops it and hands your agent a JSON-RPC error in its place — carrying the signature id and a remediation string — so the poisoned content never reaches your model. Warnings are logged and forwarded; clean calls pass straight through (p99 ~0.065 ms on small frames). Server-initiated sampling / elicitation requests are inspected the same way, with the error routed back to the server rather than to your agent.
Quick start
The demo command boots an in-process synthetic malicious server that returns a canned prompt-injection payload; the relay blocks it. Total time from npm install to a screenshot-worthy block: ~5 minutes (most of which is the IDE restart).
What it catches
Categories are the OWASP MCP Top 10 (beta) ids mcpm pins in src/guard/owasp.ts; see docs/owasp-mcp-mapping.md for the pinned spec commit and the reasoning behind each assignment. "unclassified" means the signature was evaluated and does not map cleanly to a category at that commit — never that it is unreviewed.
Detection is regex + structural; NFKC + stripping every Unicode default-ignorable codepoint (and folding blank-width fillers to a space) defeats the common Unicode evasions, and a separate hidden-character presence check flags evasion carriers before they're normalized away. "ASCII smuggling" -- hiding a payload in the Unicode TAG block (U+E0000-U+E007F), which renders as nothing but is readable by a model -- gets two dedicated passes, because that stripping ERASES a fully encoded payload rather than revealing it. The guard decodes TAG runs back to ASCII and re-runs the carrier's own signatures, so a concealed payload is judged by what it says: a TAG-encoded wallet-seed solicitation is blocked by the credential-phishing signature, not merely noted as suspicious. Beneath that sits a presence floor for payloads that are concealed but match nothing. Emoji subdivision flags are built from the same codepoints, so the three a client actually renders (England, Scotland, Wales) are carved out by whole-sequence validation; another well-formed subdivision flag still warns. Base64 / base64url payloads inside server responses are also decoded and re-scanned, so an injection or credential hidden behind an encoding can't slip past the regex floor (base64-decoded hits warn, never hard-block; TAG-decoded hits keep their native severity, since concealment on that plane is not something benign content does). See mcpm guard list-signatures for the current shipped set.
Confinement (opt-in enforcement)
Everything above is detection — the relay reasons about the JSON-RPC bytes and warns or blocks. But a server that decides to read ~/.ssh or write a ~/Library/LaunchAgents persistence hook never expresses that through inspectable traffic. mcpm guard enable --confine complements detection with enforcement: it wraps each relayed stdio server in an OS sandbox that physically denies reads of a secret-file denylist and writes outside caches/scratch, so the server can't exfil credentials or persist regardless of the JSON-RPC it emits. mcpm guard doctor-confine reports backend availability and which servers are enrolled. macOS only for now (Seatbelt/sandbox-exec); on other platforms it warns and runs unconfined rather than giving a false sense of protection. See docs/GUARD.md for the tier details and caveats.
Day-1 commands
Inspect frames without a server
mcpm guard inspect runs the same signature catalog the relay uses over MCP JSON-RPC frames you already have — a captured response, a suspicious tools/list, a payload from a writeup — with no wrapped server, no relay, and no network:
Exit status makes it a CI gate over recorded traffic: 0 all clear, 1 something warns (or a frame wouldn't parse or couldn't be inspected), 2 something would be blocked.
Verdicts are the signature catalog's default actions, including the warn-only carrier clamp — so an injection in a resources/read body reports warn here exactly as it would inline. Your local policy overrides (mutes, log_only) are deliberately not applied: this answers "what do the signatures see", not "what would my config do".
It is also the seam mcp-guardbench uses to score mcpm's guard — through this published binary, never by importing the engine, so mcpm is measured on exactly the same footing as any other guard. mcp-guardbench is the reference consumer: a guard-agnostic corpus + runner that scores any MCP guard this way.
When a block fires
The relay returns a JSON-RPC error response to your IDE with the signature id + a remediation string telling you exactly which command to run. Two typical cases:
Audit the log
Every block / warn is appended to ~/.mcpm/guard-events.jsonl. Inspect with jq:
When you're debugging and need to turn it off briefly
Policy is read at server startup. Restart the wrapped server after pause/mute changes and to resume inspection after a pause; expiry does not resume an existing session.
Why this exists
Independent 2026 evidence for each thing the guard does, so you can check the premise rather than trust the pitch:
- NSA AI Security Center, "MCP: Security Design Considerations" — recommends filtering outbound proxies, data-loss prevention, sandboxing, and local MCP scanning. That is the guard relay, the credential-egress detectors,
--confine, andmcpm audit, in one government document. - OX Security, "Mother of All AI Supply Chains" (2026-04-15) — 10 assigned critical/high CVEs from the config-to-process-spawn design, and a proof-of-concept poisoned server accepted by 9 of 11 public registries and marketplaces. Registry listing is not a safety signal.
- Microsoft's tool-poisoning warning (2026-06-30, reported here) — poisoned tool descriptions steer an agent about as effectively as rewriting its system prompt; the recommended mitigation is code-review-style diffing of description changes. Schema pinning plus drift detection covers the detection half: mcpm tells you a description changed since you approved it, and blocks on schema or annotation drift. It does not render a before/after diff of the text.
- SmartLoader (disclosed Feb 2026) — a trojanized Oura Ring MCP server, backed by fake GitHub accounts with manufactured social proof, seeded into legitimate registries to drop an infostealer. Stars and listings are forgeable, which is why
mcpm lock,whyandverifycheck build provenance instead (it is reported and gated there, not folded into the trust score). Note the honest limit: provenance attests who built a package, not that the code is safe — an attacker publishing their own trojanized package from their own CI gets valid provenance. It raises the cost of impersonating someone else; it would not by itself have stopped SmartLoader. - Deadbugz (Pillar Security, disclosed 2026-08-12) — an active MCP supply-chain campaign: 23 pull requests to unrelated AI/MCP/dev-tool projects from one GitHub account, distributing a server that stays benign for its first three tool calls before its
tools/listandprompts/getresponses flip to solicit SSH keys, AWS credentials, shell history, and Kubernetes config. mcpm's session-based schema-drift check blocks thetools/listflip in a real session (it compares against the session's own first-seen definitions, not only an on-disk pin) — but mcp-guardbench's three single-frame, context-free reproductions of that wording -- including a third, externally contributed variant against a real mongodb-mcp-server tool surface -- are published misses at@getmcpm/[email protected](the phrasing doesn't match today's regex signatures), and mcpm's own tests record that theprompts/getchannel this campaign also poisons has no drift protection at all (src/guard/__tests__/deadbugz.test.ts). - Grafana MCP, CVE-2026-19516 (Pillar Security, 2026-09-02; Grafana advisory, CVSS 9.1, fixed in v1.1.0) — session spoofing plus SSRF in
mcp-grafanabefore v1.1.0 let an unauthenticated caller mint a session in the expected format and act with the server's own Grafana credentials, then point the server'sgrafana_api_requesttool at internal and cloud-metadata services through the caller-suppliedX-Grafana-URLrequest header. The CVE number covers the SSRF half; the auth gap was a companion finding in the same research, and the bearer-token auth v1.1.0 added for it is optional. Honest limit: this is a remote HTTP/SSE server, and mcpm's guard relay is stdio-only — it fails closed (refuses to wrap) on HTTP/SSE transports rather than covering them. - Context7, CVE-2026-75130 (published 2026-08-18; the assigner scores it 6.4 medium under CVSS 4.0 and 9.0 critical under CVSS 3.1) — a prompt-injection flaw in Upstash's widely used documentation server (~50k GitHub stars, 8M+ npm downloads): its Custom AI Instructions feature could inject unsanitized text into a connected coding agent's context on a routine library-documentation request, enabling credential exfiltration and destructive file deletion. Already fixed — the reporter's write-up records private disclosure on 2026-02-18 and a fix deployed to Context7's production service on 2026-02-23, months before the CVE was published. That is the part worth noting here: the fix was to how the service serves those instructions, so no version pin or lockfile entry on the installed package would have moved.
- The official registry's own moderation policy — consumers "should assume minimal-to-no moderation", with security scanning explicitly delegated to package registries and downstream subregistries. mcpm is one of those downstream layers.
Read more
-
docs/GUARD.md— full command reference -
docs/SIGNATURES.md— signature catalog + how to contribute new ones -
docs/POLICY.md—~/.mcpm/guard-policy.yamlreference -
docs/owasp-mcp-mapping.md— every mcpm mechanism mapped to an OWASP MCP Top 10 (beta) category, with an honest gap list for what's not covered -
docs/VISION.md— where the project is going (thesis, horizons, doctrine) -
Active trust and DevX backlog — selected existing work and demand-gated proposals
-
Agent trust direction research, 2026-11-05 — primary sources, scope and decision gates
Agent mode
mcpm can run as an MCP server itself, letting AI agents search, install, and audit MCP servers programmatically.
Since v0.49.0, mcpm_doctor advertises its existing version-1 health model as
structured results alongside the unchanged JSON text. Agents can inspect missing
configs, critical issues and advisory drift/secrets without discarding unknown
coverage. See doctor contract and
validation.
v0.48.0: the stdio entry supports modern 2026-07-28 discovery and legacy initialization
with the same nine tools and trust gates. See serve validation
for the named peer matrix and limits. Publication is verified
on npm and the MCP registry; the exact published archive passes 43 protocol
comparisons (two expected unsupported combinations), signed-artifact verification
and clean-install smoke.
This exposes 9 tools: mcpm_search, mcpm_install, mcpm_info, mcpm_list, mcpm_remove, mcpm_audit, mcpm_doctor, mcpm_setup, and mcpm_up.
In v0.46.0: search/info expose versioned structured evidence alongside their
existing JSON text: lifecycle status, findings, score denominator/ceiling, and
checks performed or not run. A score is not a safety probability, and an unrun
check is not a pass. verify --json retains its existing versioned coverage and
failure model. See stability contracts and
agent workflows.
The mcpm_setup tool takes a natural language description like "filesystem and GitHub" and handles everything: search, trust scoring, install. One tool call to assemble a working MCP toolchain.
Try it -- add the config above to your MCP client, restart, then ask your agent:
Use mcpm to find MCP servers for filesystem access and GitHub. Explain their findings, lifecycle status, and checks that did not run. Show the proposed configuration changes before installing.
The repository includes a portable mcpm usage skill. Install it from a reviewed, pinned repository checkout into your client's skill directory; it is not included in the npm package. It has no scripts, hooks, permission grants, model subscription or external decision service.
Supported clients
VS Code's managed mcp.json supports JSONC comments and trailing commas. Changes
edit the selected server while preserving unrelated settings/comments and the
original backup. Other clients retain strict JSON parsing. Variable references
are retained for the client to resolve. Portable/workspace configurations and
Copilot Agent Host configuration paths are not managed by these adapters; see
the native validation scope.
Linux and Windows paths are also supported. See mcpm doctor to verify which clients are detected on your system.
How it works
mcpm is a local-first CLI. There is no mcpm backend or account system.
- Search and install query the official MCP Registry API (v0.1) maintained by the Model Context Protocol project.
- Trust assessment runs locally using built-in scanners (regex-based pattern detection), and can additionally shell out to a third-party scanner you have installed and named via
MCPM_EXTERNAL_SCANNER. - Config management reads and writes the native config file for each AI client. All writes use atomic file operations with restricted permissions (0o600 files, 0o700 directories).
- Local state lives in
~/.mcpm/—servers.json(installed server registry),aliases.json,secrets.enc.json(the encrypted credential store), and the guard files (pins.json,guard-policy.yaml,guard-confine.yaml,guard-unguarded.json,guard-events.jsonl). There is no registry cache: every registry read is a live fetch.
No telemetry. No analytics. No account required.
Contributing
Contributions are welcome.
Before submitting a PR:
- Run
pnpm testand ensure all tests pass - Run
pnpm lintto check types - Keep commits focused -- one change per commit
- Follow conventional commit format
This project is MIT licensed. See LICENSE.
Security
If you discover a security vulnerability, please use GitHub's private vulnerability reporting instead of opening a public issue. We will respond within 48 hours.
For trust assessment issues (false positives/negatives in the scanner), regular GitHub issues are fine.
License
Source: README.md at commit 0ab4d5d
Tools
0Version history
26- v0.51.0Nov 7, 2026
- v0.50.1Nov 6, 2026
- v0.50.0Nov 5, 2026
- v0.49.1Nov 5, 2026
- v0.49.0Nov 3, 2026
- v0.48.1Oct 30, 2026
- v0.48.0Oct 30, 2026
- v0.47.7Oct 26, 2026
- v0.47.6Oct 23, 2026
- v0.47.4Oct 18, 2026
- v0.47.3Oct 13, 2026
- v0.47.2Oct 11, 2026
- v0.47.1Oct 10, 2026
- v0.47.0Oct 9, 2026
- v0.46.0Oct 8, 2026
- v0.45.0Oct 6, 2026
- v0.44.0Oct 4, 2026
- v0.43.0Sep 30, 2026
- v0.42.5Sep 29, 2026
- v0.42.4Sep 28, 2026
- v0.42.3Sep 26, 2026
- v0.42.2Sep 24, 2026
- v0.42.1Sep 23, 2026
- v0.42.0Sep 19, 2026
- v0.41.0Sep 19, 2026
- v0.40.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts