
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@graneth/mcp-server
Advanced tools
Account-free MCP server: catch AI-hallucinated packages (npm, PyPI, crates.io, RubyGems, Go, Packagist) and hardcoded secrets before you commit. Exposes the free pre_flight_check tool over stdio.
An account-free Model Context Protocol server that catches AI-hallucinated dependencies and hardcoded secrets in your staged changes before you commit — straight inside your AI coding agent.
It exposes a single, always-free tool over stdio:
pre_flight_checkGive it your staged files (path + content). It will:
package.json,
requirements*.txt, Cargo.toml, go.mod, Gemfile, composer.json) is
checked live against six registries: npm, PyPI, crates.io, RubyGems, the
Go module proxy, and Packagist. A package that doesn't exist (404) is the
hallmark of an AI-invented dependency an attacker may have pre-registered.
→ BLOCKED. A manifest that cannot be parsed is reported, never silently
skipped, and an unreachable registry is reported as "could not verify" —
never as clean. → REVIEW_REQUIRED.sk-…/sk-proj-…, Anthropic sk-ant-…, Stripe sk_live_…, PEM
private keys) plus Shannon-entropy analysis with semantic variable-name
context. → BLOCKED / REVIEW_REQUIRED. Vendor-documented sample keys
and secrets in test/fixture files are downgraded to warnings — surfaced, but
they won't block a commit.No Graneth account, API key, or hosted backend is required. The checks run locally; the only network calls are to the public package registries (npm, PyPI, crates.io, RubyGems, proxy.golang.org, Packagist).
npx -y @graneth/mcp-server
The snippet is the same everywhere; only the file it goes in (or the CLI command) differs per client:
{
"mcpServers": {
"graneth": {
"command": "npx",
"args": ["-y", "@graneth/mcp-server"]
}
}
}
| Client | Add it via | Config location |
|---|---|---|
| Claude Code (CLI) | claude mcp add --transport stdio graneth -- npx -y @graneth/mcp-server | Writes to ~/.claude.json (local scope, default). Add --scope project to write a shareable .mcp.json at the repo root instead. |
| Cursor | Paste the snippet above | ~/.cursor/mcp.json (global) or <project-root>/.cursor/mcp.json (this project only) |
| Windsurf | Paste the snippet above | ~/.codeium/windsurf/mcp_config.json (macOS/Linux) · %USERPROFILE%\.codeium\windsurf\mcp_config.json (Windows) |
| Claude Desktop | Paste the snippet above | macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json |
Then ask your agent to run pre_flight_check before suggesting a commit. A
BLOCKED verdict means: do not commit until the CRITICAL findings are fixed.
| Verdict | Meaning |
|---|---|
CLEAR | No issues — safe to commit. |
REVIEW_REQUIRED | Warnings to confirm (new packages, lower-confidence). |
BLOCKED | Critical issues (non-existent package / secret) — do not commit. |
This server shares its detection core with the hosted
Graneth scanner via the internal @graneth/core-checks
module, so local pre-flight results match what the full PR scan would find.
MIT
FAQs
Account-free MCP server: catch AI-hallucinated packages (npm, PyPI, crates.io, RubyGems, Go, Packagist), risk-score the dependencies an AI agent introduces, and find hardcoded secrets before you commit. Exposes the free pre_flight_check tool over stdio.
The npm package @graneth/mcp-server receives a total of 196 weekly downloads. As such, @graneth/mcp-server popularity was classified as not popular.
We found that @graneth/mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.