
Shadowgate Mcp
io.github.josephibraPublished by GitHub account josephibrav1.0.0Updated Oct 24, 2026
Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.
Overview
A defensive gateway that scans MCP tool calls, responses and server manifests for prompt injection, leaked secrets and risky capabilities before an agent acts.
- What you can do
- Scan and analyze text for prompt injection, leaked secret paths and dangerous shell commands, with redaction and risk scoring options and batch scanning for multiple inputs at once. Gate MCP tool calls and responses, returning allow, allow_with_warning, redact or block decisions, and evaluate whole MCP transactions. Review MCP server manifests and tool schemas, and manage a trust registry with trusted, untrusted, monitor and blocked levels. Produce security reports, audit summaries and recent audit events, and read or change security configuration and policy mode. Check server health and list the server registry.
- When to use it
- Use it when an agent talks to several external MCP servers and you want a checkpoint that flags injection attempts, secret exposure and dangerous capabilities before tools run or responses are trusted. Also useful for onboarding new MCP servers through manifest review and trust levels.
- Requirements
- A remote streamable HTTP endpoint with OAuth authentication. The hosted demo additionally requires a client key for scan and gateway tools and an admin key for admin tools; self-hosting needs Python with the project requirements, or Docker, plus the SHADOWGATE_ADMIN_KEY and SHADOWGATE_CLIENT_KEY settings and a persistent data directory.
Installation
In SourceWeft
- Open Shadowgate Mcp in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.josephibra%2Fshadowgate-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"shadowgate": {
"type": "http",
"url": "https://shadowgate-mcp.mcp.xpay.sh/mcp"
}
}
}README
ShadowGate MCP
Smithery listing: https://smithery.ai/servers/josephibrahim/shadowgate-mcp ShadowGate MCP is a defensive gateway and firewall for AI agents that use MCP servers.
Current version: 0.4.0-hardened
Architecture
AI agent or MCP host -> ShadowGate MCP -> risk decision -> external MCP server/tool
ShadowGate checks:
- MCP tool calls before execution
- MCP responses before delivery to the agent
- MCP tool schemas and server manifests
- prompt injection attempts
- leaked secret paths
- dangerous shell commands
- suspicious filesystem, browser, network, database, credential, and billing capabilities
- manifest identity, approval baseline, and drift
- unknown, trusted, monitored, and blocked MCP servers
Possible decisions:
- allow
- allow_with_warning
- redact
- block
Hosted Demo
Live Railway deployment:
- Railway deployment: live
- Version: 0.4.0-hardened
- Auth:
client_keyrequired for scan/gateway tools,admin_keyrequired for admin tools health_checkis public — call it to verify server status
See docs/HOSTED_DEMO.md for connection details and tool list.
Quickstart
Default local MCP endpoint:
Demo Commands
The agent-to-agent demo uses direct Python calls, not network calls. It shows a safe risky call, a blocked dangerous call, a blocked malicious response, manifest review, and local manifest approval.
Agent-to-agent Gateway Usage
ShadowGate sits between agents and external MCP servers so tool calls, responses, and new server manifests are checked before an agent executes or trusts them.
Minimal flow:
- Connect the MCP host to ShadowGate.
- Call gate_mcp_tool_call before executing external MCP tools.
- Call gate_mcp_response before trusting external MCP responses.
- Call review_mcp_manifest before onboarding a new MCP server.
- Admins call approve_mcp_manifest_identity and create_security_report for ongoing review.
See:
- examples/agent_to_agent_demo.py
- examples/client_payloads.json
- docs/CLIENT_CONFIGS.md
- docs/AGENT_USAGE.md
Docker
For hosted use, set strong admin and client keys.
Railway / Hosted Deploy
Recommended environment:
Use a persistent volume for /data when the platform supports it.
See DEPLOY_RAILWAY.md.
Recommended Public Tools
- health_check
- analyze_text
- gate_mcp_tool_call
- gate_mcp_response
- evaluate_mcp_transaction
- review_mcp_manifest
- get_mcp_server_trust
- set_mcp_server_trust
- approve_mcp_manifest_identity
- get_server_registry
- create_security_report
- get_security_config
Admin Tools
- set_policy_mode
- set_mcp_server_trust
- approve_mcp_manifest_identity
- get_server_registry
- get_audit_summary
- get_recent_audit_events
- create_security_report
- get_data_paths
- get_security_config
Compatibility Tools
Compatibility tools remain available:
- scan_text
- redact_secrets
- get_risk_score
- decide_policy
- simulate_policy_modes
- inspect_mcp_tool_call
- inspect_mcp_response
- inspect_tool_schema
- scan_batch
analyze_text is the preferred general text-safety tool.
Server Trust Registry
Trust levels:
- trusted
- untrusted
- monitor
- blocked
Unknown MCP servers inherit the default trust level: untrusted.
Trusted servers are still scanned. Blocked servers are denied.
Security Model Summary
ShadowGate helps agents decide whether MCP activity should be allowed, warned, redacted, or blocked. It does not prove that an MCP server is safe forever. It is not a sandbox and does not replace MCP host enforcement, platform network controls, or operating-system isolation.
For hosted/public deployment:
- Set SHADOWGATE_ADMIN_KEY to a strong non-placeholder value.
- Set SHADOWGATE_CLIENT_KEY to a strong non-placeholder value.
- Set SHADOWGATE_DATA_DIR=/data or another persistent mounted path.
- Do not commit audit logs or data directory contents.
- Monitor create_security_report periodically.
- Rotate keys if they are exposed.
- Keep the MCP endpoint private or protected.
health_check and get_security_config include production warnings without exposing raw keys.
Release Checks
Publishing and Discovery
docs/PUBLISHING.md— Smithery and MCP Registry publishing checklistsdiscovery/mcp_registry_submission.md— draft MCP Registry submissionsmithery.yaml— Smithery registry configurationdocs/PAYMENT_XPAY.md— future XPay/x402 payment proxy integration
GitHub: https://github.com/josephibra/shadowgate-mcp
Passive Discovery and Monetization
docs/PUBLISHING.md— Smithery and MCP Registry submission checklistsdiscovery/mcp_registry_submission.md— draft MCP Registry PR submissiondocs/PAYMENT_XPAY.md— XPay/x402 payment proxy integration plandocs/PRICING_MODEL.md— suggested per-call pricing for hosted toolsdocs/PASSIVE_PLATFORMS.md— platform listing strategy (GitHub, Smithery, MCP Registry, XPay, and more)
Docs
- docs/HOSTED_DEMO.md
- docs/PUBLISHING.md
- docs/PAYMENT_XPAY.md
- docs/PRICING_MODEL.md
- docs/PASSIVE_PLATFORMS.md
- docs/CONNECT.md
- docs/CLIENT_CONFIGS.md
- docs/AGENT_USAGE.md
- docs/SECURITY_MODEL.md
- docs/TOOL_SURFACE.md
- RELEASE_NOTES.md
Source: README.md at commit 20a95d9
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
85% 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 daysRequired25 pts
- Auth declaredRequired10 pts
- 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