safe-mcp-bridge-v2
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@safe-mcp-bridge-v2call memory.search with query status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
safe-mcp-bridge-v2
A fail-closed policy boundary between local stdio MCP clients and authenticated Streamable HTTP servers.
MCP's authorization standard answers who may connect. This bridge adds a local enforcement layer for what an agent may call and what must never leak through the bridge's logs or output.
It translates newline-delimited stdio JSON-RPC into MCP 2026-07-28 Streamable HTTP, injects credentials only at the outbound boundary, mirrors required routing metadata into HTTP headers, applies a local tool policy before network access, and fails closed on secret-shaped upstream output.
Why this still exists after MCP OAuth
OAuth, CIMD, scopes, and protected-resource metadata are essential remote authorization primitives. They do not replace:
per-agent local allowlists;
a conservative read-only mode;
proof that blocked calls never reach the upstream server;
redacted audit trails;
leak fixtures for wrapper and gateway behavior;
env-to-header credential isolation for local stdio clients.
safe-mcp-bridge-v2 is deliberately a narrow safety boundary, not another general MCP platform.
Related MCP server: contextboundary-gw
MCP 2026-07-28 support
stateless, self-describing requests with
_metaprotocol/client fields;required
MCP-Protocol-Version,Mcp-Method, andMcp-Nameheaders;spec Base64 sentinel encoding for non-ASCII or unsafe header values;
configured
Mcp-Param-*mirroring forx-mcp-headerdeployments;application/jsonand request-scopedtext/event-streamresponses;transparent MRTR
InputRequiredResultpass-through;202 Acceptednotification handling;explicit rejection of legacy session initialization;
fail-closed header/body and protocol-version checks.
See Compatibility for the exact support boundary.
Quick start
git clone https://github.com/efe-arv/safe-mcp-bridge-v2.git
cd safe-mcp-bridge-v2
uv sync --extra dev
cp examples/modern-read-only.yaml bridge.yamlSet the credential named by auth.env without placing it in YAML:
export EXAMPLE_MCP_TOKEN='use-your-secret-manager-here'
uv run safe-mcp-bridge-v2 doctor bridge.yaml
uv run safe-mcp-bridge-v2 run bridge.yamlExample stdio input:
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"memory.search","arguments":{"query":"status"}}}The bridge adds modern MCP metadata and sends headers equivalent to:
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: memory.search
Authorization: Bearer <injected at runtime>Credentials are never included in audit records.
Policy modes
Allowlist
Only explicitly named tools may cross the network boundary:
policy:
mode: allowlist
allow_tools:
- memory.search
- memory.readRead-only
Blocks tool names containing write-shaped segments such as create, delete, send, update, or write:
policy:
mode: read_onlyRead-only name matching is a conservative local guard, not semantic proof. Prefer an allowlist for consequential environments.
x-mcp-header deployments
The 2026-07-28 HTTP binding can mirror selected primitive tool arguments into Mcp-Param-* headers. Configure mappings learned from your server's tool schema:
protocol:
custom_tool_headers:
execute_sql:
region: Region
tenant.id: TenantThe bridge performs spec-compliant primitive conversion and Base64 sentinel encoding. Automatic schema discovery is intentionally not in 0.1.0; mappings are explicit and auditable.
Commands
safe-mcp-bridge-v2 doctor CONFIG
safe-mcp-bridge-v2 run CONFIG
safe-mcp-bridge-v2 policy-check CONFIG METHOD [--tool TOOL]
safe-mcp-bridge-v2 leak-scan PATHVerification
uv run ruff check .
uv run mypy
uv run pytestCI runs the same checks on Python 3.11 and 3.12, plus dependency and secret scanning.
Security model
Read SECURITY.md and Threat model before deployment. Important boundaries:
redaction is defense in depth, not encryption;
upstream authorization and data minimization remain mandatory;
an allowlist cannot make a malicious upstream safe;
this bridge does not terminate an OAuth browser flow in
0.1.0;legacy stateful MCP sessions require a separate compatibility adapter;
local process compromise remains outside the bridge's protection boundary.
Origin
This is a clean second-generation implementation of the original private safe-mcp-bridge, rebuilt for the MCP 2026-07-28 stateless protocol. Created by Efe Büken / Arven Digital.
License
Apache-2.0. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceGovernance proxy for MCP servers. Wraps any MCP server with policy evaluation, human approval workflows, and hash-chain audit trails. Supports stdio and Streamable HTTP transports.Last updated11012Apache 2.0
- Alicense-qualityBmaintenanceSelf-hosted MCP gateway that applies deterministic, compiled policy to tool discovery, invocation, and outbound data flow, with no model in the enforcement path. Every decision emits a hash-chained receipt sealed with Ed25519 and verifiable using public keys only.Last updatedApache 2.0
- Alicense-qualityBmaintenanceA least-privilege enforcement proxy for MCP servers. It sits between MCP clients and upstream servers, enforcing tool policies, hiding denied tools, requiring human approval for risky actions, and providing a structured audit trail.Last updatedMIT
- Alicense-qualityCmaintenanceA zero-infrastructure, local proxy that wraps any stdio MCP server to add audit logging, policy enforcement with regex guards, and per-session/per-day budgets.Last updatedMIT
Related MCP Connectors
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Remote MCP for A2A caller identity, scope policy, verdict receipts, and audit history.
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/efe-arv/safe-mcp-bridge-v2'
If you have feedback or need assistance with the MCP directory API, please join our Discord server