GatewaySAFE
An MCP stdio to HTTP SSE transport gateway with example server and MCP client
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
As long as Claude Desktop does not support connecting to remote servers, you can use this script to run a bridge from stdio to HTTP SSE (Server-Sent Events) endpoint.
Install mcp-server-and-gw
# 1. install npm install -g mcp-server-and-gw # 2. Or run directly with npx npx mcp-server-and-gw http://localhost:8808/ # ...you can use environment variables too MCP_HOST=localhost MCP_PORT=8808 npx mcp-server-and-gw
Add Configuration into Claude
The bridge script is node javasscript, but your server code can be whatever you use.
A Model Context Protocol gateway src/mcp-server-and-gw.ts from stdio to HTTP SSE transport.
## 1. Build
yarn install
yarn build
## 2. Copy the code or update the claude_desktop_config.json
## NOTE: Ensure that npx is in the PATH, or use full path like /opt/homebrew/bin/npx
echo '{
"mcpServers": {
"Claude Gateway Example": {
"command": "npx",
"args": [
"mcp-server-and-gw", "http://localhost:8808/"
]
}
}
}' > ~/Library/Application\ Support/Claude/claude_desktop_config.json
## 3. Start server so that claude can connect to it for discoverying its resources, tools, etc.
PORT=8808 node examples/server.js
## 4. Start Claude DesktopExample Server and Client
You can also develop the SSE server independently from Claude Desktop so you get faster iterations. For example, run the src/server.ts and use the src/client.ts as the client.
Start server, once you start the client on another terminal, you see the server output.
% node examples/server.js
Server is running on port 8808
--> Received connection: /sse
New SSE connection.
--> Received message (post)
{
jsonrpc: '2.0',
id: 2822f8c3dad0OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-server-and-gw -- npx -y [email protected]
{
"mcpServers": {
"mcp-server-and-gw": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (2)
1 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
query | write | Run a read-only SQL query on a DuckDB database |
visualise | read | Visualise SQL query results as an Apache ECharts chart. Provide the SQL clause that produces the data for the visualisation. Provide chart JSON configuration for Apache ECharts. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
sse
const transport = new SSEClientTransport(new URL("http://127.0.0.1:8808/sse"));@types/node, eventsource, @types/eventsource, @types/express, @types/json-bigint, duckdb, express, json-bigint
Gates applied: no_behavioural_pass.
2822f8c3dad0full audit observations/trust-audit/mcp-server/boilingdata__gateway-4.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 2822f8c3dad0 | SAFE | B | 89 | first audit |
Questions
What is the Gateway MCP server?
An MCP stdio to HTTP SSE transport gateway with example server and MCP client
What tools does Gateway expose?
2 in total: 1 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Gateway safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Gateway need?
No credential environment variables were found in its source, so it appears to need none.
How does Gateway run?
It speaks sse, so it runs as a service you connect to over the network. It is published on npm as mcp-server-and-gw at 1.0.1.
How current is this page?
The grade is for one exact copy of the source (2822f8c3dad0), read on 2026-10-07. The repository is watched and re-audited when it changes.