MCP server · Audited from source
mcp-gateway
by harrisoncn/mcp-gatewayMIT licenceAudited 10 Oct 2026 · source ca6da521050a
Is it safe? No — BLOCK, grade F (39/100). It exposes 39 tools: 32 read, 6 write and 1 destructive. The audit recorded 51 findings (0 critical, 9 high, 18 medium, 21 low). Maintainer's description: 🔀 A lightweight, open-source gateway for managing, routing, and monitoring multiple MCP (Model Context Protocol) servers. Auth · Rate-limit · Metrics · Tool discovery.
Cite
Cite this page
ModelsAtlas. “mcp-gateway (HarrisonCN/mcp-gateway)”. Retrieved 10 Oct 2026. https://modelsatlas.com/mcp/harrisoncn/mcp-gateway
Why this is BLOCK. The audit found 0 critical and 9 high findings; the most severe is Code injection at bench/lib/upstreams.mjs:299. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
3 MCP servers are called mcp-gateway. You are viewing HarrisonCN/mcp-gateway. Compare all 3 →
- aarora79/mcp-gateway★ 80✕BLOCK
- MikkoParkkola/mcp-gateway★ 79✕BLOCK
- HarrisonCN/mcp-gateway★ 1✕BLOCK
Trust audit
Audit 0.4.1 · full source read 10 Oct 2026
51 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared8 observations
- NetworkDeclared13 observations
- ShellDeclared6 observations
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
Findings (51)
Sorted by severity · the 25 most severe of 51 are listed
HIGHCode injectioncode.eval_exec · bench/lib/upstreams.mjs:299
} else socket.write(exec(v));
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/features/task-graphs.ts:373
st.done = executeRun(run, exec(run), { checkpoint: (r) => taskRuns.save(r, dirOf(c)), cancelled: () => st.cancel }).finally(() => active.delete(run.id));- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/monitor/audit.ts:74
exec(sql: string): void;
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · src/policy/cedar.ts:534
eval(e: Expr): CedarValue {- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
HIGHNetwork egressnet.tls_off · deploy/helm/mcp-gateway/values.yaml:40
# Opt out of the auth requirement: start the gateway with --insecure (NO authentication on the pod address).
- Why
- certificate verification is disabled
- Fix
- leave verification on
HIGHNetwork egressnet.tls_off · src/cli.ts:50
.option('--insecure', 'Allow starting without auth on a non-loopback address (trusted networks only)')- Why
- certificate verification is disabled
- Fix
- leave verification on
HIGHNetwork egressnet.tls_off · src/features/pq-tls.ts:85
const s = connect({ host, port, servername: /^[\d.]+$|:/.test(servername) ? undefined : servername, ecdhCurve, rejectUnauthorized: false, minVersion: 'TLSv1.3' }, () => {- Why
- certificate verification is disabled
- Fix
- leave verification on
HIGHNetwork egressnet.tls_off · src/gateway/index.ts:664
if (this.config.security?.insecure && (this.config.auth?.strategy ?? 'none') === 'none') logger.warn('Started with --insecure: authentication is off on a non-loopback address.');- Why
- certificate verification is disabled
- Fix
- leave verification on
HIGHNetwork egressnet.tls_off · src/security/posture.ts:43
'127.0.0.1, or — only on a trusted network — start with --insecure (security.insecure: true).'
- Why
- certificate verification is disabled
- Fix
- leave verification on
MEDIUMInventory / provenanceinv.binary · clients/kotlin/gradle/wrapper/gradle-wrapper.jar
gradle-wrapper.jar
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
MEDIUMInsecure cryptocrypto.weak_random · dashboard/demo/mock.js:836
const nr = { id: uuid(), timestamp: Date.now(), serverId: s.id, toolName: r.toolName, durationMs: Math.round(s.base * (0.5 + Math.random())), success: up, clientId: 'key:demo', via: 'rest', kind: 'too- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/auth/oauth.ts:238
logger.warn(`OAuth token introspection failed: ${err instanceof Error ? err.message : String(err)}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/auth/oauth.ts:362
logger.warn(`OAuth token rejected from ${req.ip}: ${te.message}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/cli.ts:507
console.log(`Wrote ${options.out}.key (keep secret) and ${options.out}.pub (add to pluginTrust.keys)`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/cli.ts:559
console.log(`Wrote ${options.out}.hybrid.json (secret) and ${options.out}.pub.json (Ed25519 + ${options.alg}). Backend: ${pqBackend().note}`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMInformation disclosuredisclose.log_secret · src/gateway/api.ts:1518
logger.info(`Secret rotation requested via API: ${rotated.length} server(s) reconnected`);- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.beacon_words · dashboard/demo/mock.js:60
{ id: "sanitize", since: "7.3.0", summary: "Prompt-injection defence: tool-output sanitisation (hidden Unicode, ANSI, HTML, exfil images), spotlighting, inbound / outbound blocking" },- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.beacon_words · dashboard/demo/mock.js:622
{ timestamp: iso(Date.now() - 64e3), client: 'key:aura', kind: 'prompt-injection', detail: 'results: ignore-instructions, exfil-url', serverId: 'web', tool: 'fetch', score: 1 },- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.beacon_words · dashboard/demo/mock.js:625
if (p === '/admin/anomaly/score' && method === 'POST') return json({ score: 1, signals: ['ignore-instructions', 'prompt-exfiltration'], threshold: 0.6 });- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.beacon_words · src/features/anomaly.ts:47
'prompt-exfiltration': 0.5,
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.beacon_words · src/features/anomaly.ts:49
'exfil-url': 0.7,
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.anthropic · test/security.test.ts:42
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.aws · test/security.test.ts:44
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/federation.test.ts:12
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/policy.test.ts:76
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
39 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
write_file | Create or overwrite a file | destructive |
Filesystem | Read and write files under /srv/projects | write |
Slack | Post and read team messages | write |
add-tool | No description in the source | write |
create_issue | Open a new issue | write |
query | Run a read-only SQL query | write |
slack_post_message | Post a message to a channel | write |
Extra | d | read |
Fake | test | read |
Fetch | Fetch web pages and convert them to markdown | read |
GITHUB_TOKEN | GitHub personal access token | read |
Git | Read, search and manipulate a Git repository | read |
GitHub | Repositories, issues and pull requests | read |
Memory | Knowledge-graph based persistent memory | read |
Postgres | Read-only SQL against the analytics replica | read |
Time | Current time and time-zone conversion | read |
a__echo | No description in the source | read |
a__n | d | read |
brave_local_search | Search for local businesses and places | read |
brave_web_search | Search the web | read |
cached | Cacheable echo | read |
directory | Allowed directory | read |
echo | Echo the arguments | read |
fail | Always a JSON-RPC error | read |
get_issue | Get an issue by number | read |
late | No description in the source | read |
list_directory | List files and folders in a directory | read |
list_pull_requests | List pull requests in a repository | read |
list_tables | List tables in the public schema | read |
priced | Echo with a usage block (budgets) | read |
read | Read | read |
read_file | Read the complete contents of a file | read |
repository | Path of the repository | read |
search_files | Recursively search for files matching a pattern | read |
search_repositories | Search GitHub repositories | read |
slack_get_channel_history | Recent messages in a channel | read |
slow | Sleep | read |
twice | echo twice | read |
x | No description in the source | read |
Safer alternatives
mcp-auth/python
🔐 Plug-and-play auth for Python MCP servers.
aiagenta2z/onekey-gateway
OneKey Agent Gateway access to Commercial APIs, Skills, MCPs Build once and Ship 10× faster. For devs & builders, A unified API registry to serve and distribute across all agent formats—CLI, REST, MCP, and Skills—eliminating multiple builds. Access 30+ categories like search, image, finance, and 3D
mcp-auth/js
🔐 Plug-and-play auth for Node.js MCP servers.
Audit history
- ✕BLOCK F 39 / 100
First audit ·
ca6da521050a
Questions about mcp-gateway
What is the mcp-gateway MCP server?
What tools does mcp-gateway expose?
Is mcp-gateway safe to connect to an agent?
What credentials does mcp-gateway need?
How does mcp-gateway run?
How current is this page?
Which mcp-gateway MCP server is the right one?
I already installed mcp-gateway. What should I do?
Can the verdict change?
Sources
- HarrisonCN/mcp-gateway on GitHub — the source we read, its licence, stars and activityObserved · 10 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit ca6da521050aObserved · 10 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the mcp-gateway MCP server?
- What tools does mcp-gateway expose?
- Is mcp-gateway safe to connect to an agent?