Listed from the MCP registry; nobody on Odel publishes it.
Detects hidden AI prompt injection, AI recommendation poisoning, sneaky redirects and hidden spam.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y geo-shield-mcp
MCP client config
{
"mcpServers": {
"geo-shield": {
"command": "npx",
"args": [
"-y",
"geo-shield-mcp"
]
}
}
}A defensive, read-only MCP server that lets AI agents (Claude, Gemini CLI, Cursor, VS Code Copilot, Codex and others) inspect websites for manipulation aimed at search engines and AI assistants: sneaky and open redirects, hidden text and links, injected spam, hijacked metadata, hidden prompt-injection text, and "Summarise with AI" links whose prefilled prompts try to plant instructions in a visitor's assistant ("AI recommendation poisoning").
Every finding is produced by a deterministic rule and backed by evidence: location, visibility state, an excerpt, severity and confidence (kept separate), remediation, and false-positive notes. Scanned content is always treated as untrusted data.
Status: 0.2.0.
geo_scan_url,geo_trace_redirectsandgeo_get_reportare implemented and tested, including detection of invisible-Unicode smuggling and obfuscated or encoded AI instructions. See Pending for later phases.
Requires Node.js ≥ 22.12 (it uses the built-in node:sqlite). No API keys are needed. Every client below runs the same command: npx -y geo-shield-mcp.
claude mcp add geo-shield -s user -- npx -y geo-shield-mcp
gemini mcp add geo-shield npx -y geo-shield-mcp
codex mcp add geo-shield -- npx -y geo-shield-mcp
These clients use the same JSON shape:
| Client | Config file |
|---|---|
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) |
| Cursor | ~/.cursor/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Antigravity | ~/.gemini/antigravity/mcp_config.json |
{
"mcpServers": {
"geo-shield": {
"command": "npx",
"args": ["-y", "geo-shield-mcp"]
}
}
}
.vscode/mcp.json:
{
"servers": {
"geo-shield": { "type": "stdio", "command": "npx", "args": ["-y", "geo-shield-mcp"] }
}
}
Web apps such as ChatGPT can only connect to remote MCP servers over HTTPS. This release runs locally over stdio, so it works with the desktop, CLI and IDE agents above. A hosted HTTP version is planned.
git clone https://github.com/krishnaGauss/MCP_WebSafe.git && cd MCP_WebSafe && npm install && npm run build
Then point your client at node /absolute/path/to/MCP_WebSafe/dist/index.js instead of npx -y geo-shield-mcp.
Ask your agent in plain language:
investigate_ai_injection prompt)Scans are stored locally in ~/.geo-shield/geo-shield.db and purged after 30 days by default.
| Tool | What it does |
|---|---|
geo_scan_url | Fetches one URL (SSRF-protected, no JS execution), reconstructs redirects, runs all rules. Inputs: url, scan_profile (quick/standard/deep), check_redirects, check_hidden_content, check_ai_injection, render_javascript (not yet supported — returns a notice), request_context. |
geo_trace_redirects | Hop-by-hop redirect chain (3xx + Refresh), each hop re-validated; reports declared meta/JS redirects on the final page. Inputs: url, max_redirects, request_context. |
geo_get_report | Full stored report as markdown or json. |
Request contexts: desktop_browser, mobile_browser, search_referrer, crawler_ua_simulated. Non-browser contexts are labelled as simulations. A request from this machine is not proof of what a real crawler sees.
Resources: geo://taxonomy, geo://rules, geo://rules/{rule_id}, geo://scan/{scan_id}, geo://domain/{domain}/history
Prompts: investigate_redirect, investigate_ai_injection, review_scan_findings
| Category | Rules |
|---|---|
| Redirects / cloaking | RED-001 cross-domain redirect · RED-002 open-redirect observed · RED-003 on-page redirect endpoint with external target · RED-004 meta-refresh/JS navigation off-site · RED-005 loop · RED-006 link text shows a different domain · RED-007 HTTPS→HTTP · RED-008 referrer/UA-conditional JS redirect |
| Hidden content | HID-001 hidden text · HID-002 hidden external links · HID-003 off-screen · HID-004 same-colour text · HID-005 tiny/zero-size · HID-006 bidi override in left-to-right text |
| Spam / integrity | SPM-001 spam-keyword outbound links · SPM-002 hidden/unexpected iframe · SPM-003 obfuscated inline script · MET-001 spam keywords in title/metadata · MET-002 cross-domain canonical |
| AI context | AI-001 hidden AI instructions · AI-002 instructions in comments/attributes/meta/JSON-LD · AI-003 instructions in visible text · AI-004 manipulative AI-assistant prefill link · AI-005 benign prefill link (info) · AI-006 unverifiable AI endorsement claims |
| Obfuscation (0.2.0) | AI-007 text smuggled in invisible Unicode (tag characters, variation selectors, zero-width binary) · AI-008 instructions hidden by look-alike letters, fullwidth, leetspeak, spaced letters, invisible characters or right-to-left reversal · AI-009 base64/hex/percent/JS-escaped payloads that decode to instructions or spam |
Full definitions (detection logic, severity mapping, remediation, false positives) are served at geo://rules.
How false positives are kept down:
<details>, menus, tabs, modals, aria-controls targets, camelCase component classes) are counted but not flagged, unless they contain spam keywords, AI instructions or external links.display:none, opacity:0, hidden) is informational unless its content is suspicious.data: URIs, JWTs, hashes, nonces, images, fonts and archives are skipped.GEO_SHIELD_ALLOWED_PORTS). The scanner blocks:
localhost, *.internal, *.local and single-label hostnamesU+… notation.Set-Cookie values are never stored, and logs go to stderr only.GEO_SHIELD_FIXTURE_ALLOW=host:port,...) is the only way to reach loopback. It's for tests only and logs a warning when set.See .env.example: GEO_SHIELD_DB_PATH, GEO_SHIELD_LOG_LEVEL, GEO_SHIELD_FETCH_TIMEOUT_MS, GEO_SHIELD_MAX_BODY_BYTES, GEO_SHIELD_ALLOWED_PORTS, GEO_SHIELD_RETENTION_DAYS (stored scans older than this are purged at startup), and GEO_SHIELD_FIXTURE_ALLOW.
npm test
npm run lint && npm run typecheck
npm run build && npm run demo -- https://example.com
npm run demo starts the local fixture site, launches the built server over real stdio as Claude would, and calls every tool.npm run fixtures runs the fixture site on its own, for use with npm run inspect (MCP Inspector).The tests cover:
Releases are published by .github/workflows/release.yml when a GitHub Release is published. It runs type-check, lint, tests and build, checks that the release tag equals v + the package.json version, publishes to npm with provenance through npm trusted publishing (no NPM_TOKEN), waits until npm serves the new version, then publishes server.json to the MCP Registry with mcp-publisher login github-oidc. .github/workflows/ci.yml runs the same checks on pull requests and pushes to main.
package.json, server.json (version and packages[0].version) and SERVER_INFO in src/mcp/server.ts, and add a CHANGELOG.md entry. A test fails if the versions disagree.main.main with tag vX.Y.Z (for example v0.2.0), either in the GitHub UI or with:
gh release create v0.2.0 --target main --title v0.2.0 --generate-notes
Prerelease versions (X.Y.Z-beta.1) are published to npm under the next dist-tag.
The workflow needs npm to trust it before its first run. On npmjs.com, signed in as the package owner:
krishnaGaussMCP_WebSaferelease.yml (the filename only, not the path)npm stage publish by default, and the workflow uses npm publish.npm publish with 2FA still works.The MCP Registry needs no setup: io.github.krishnaGauss/* names are authorised by the GitHub OIDC token of a workflow in a krishnaGauss repository.
To publish by hand instead (needs npm 2FA in the browser): npm publish (prepublishOnly runs the checks), wait until npm view geo-shield-mcp@X.Y.Z shows the version, then mcp-publisher login github && mcp-publisher publish.
src/
index.ts STDIO entry (serveStdio)
mcp/ tools, resources, prompts (transport layer only)
scanner/orchestrator.ts pipeline: validate → fetch → parse → detect → score → persist
scanner/safe-fetch.ts manual redirects, size/time limits, guarded DNS
security/ SSRF policy
analysis/ HTML parser, static visibility engine, keyword + AI-instruction patterns
detectors/ redirect-abuse, hidden-content, spam-injection, ai-prompt-injection
rules/catalog.ts rule definitions + taxonomy
risk/ evidence builder, scoring
reports/ markdown renderer
storage/ SQLite (scans, pages, findings, redirect_hops)
The scanner engine is independent of MCP: ScanOrchestrator can be reused by a CLI or CI job.