Atlas / MCP servers / tfohlmeister / convex-mcp-gateway

convex-mcp-gatewayCAUTION

mcp/tfohlmeister/convex-mcp-gateway

Auth-aware Convex component that exposes selected Convex functions as MCP tools

Verdict
CAUTION
Grade
B
Trust score
84 /100
Exposed tools
92 88r · 2w · 2d
Transport
streamable-http
License
Apache-2.0
Stars
9
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Auth-aware MCP server for Convex. Expose selected Convex functions as MCP tools, bring your own JWT issuer, declare scopes/roles per tool, get an audit log and OAuth 2.1 protected-resource discovery for free.

Built as a Convex Component.

[](https://www.convex.dev/components/convex-mcp-gateway) [](https://github.com/tfohlmeister/convex-mcp-gateway/actions/workflows/test.yml) [](https://www.npmjs.com/package/convex-mcp-gateway) [](./LICENSE)

Features

  • Type-safe tool registration: defineMcpQuery / defineMcpMutation /

defineMcpAction declare a Convex function as an MCP tool with end-to- end-typed args and (optional) returns validators. Declare the list once and pass it as tools to handleMcpRequest, the registry auto-syncs on connect (no separate registration mutation), or call gateway.register(...) for imperative/dynamic catalogs

  • MCP dual-era Streamable HTTP: legacy 2025-03-26/2025-06-18/2025-11-25

sessions remain supported alongside stateless 2026-07-28 requests, discovery, routing-header validation, and private cache hints. A client requesting an unknown revision negotiates down to 2025-11-25 (what the current official TypeScript SDK pins as latest); all three legacy revisions share one transport wire contract (2025-11-25's SSE resumability framing needs an event store the gateway doesn't have, so it isn't emitted, a deliberate SHOULD deviation)

  • Stateless multi-round trips: declarative stateless-era tools use a host-side

beforeCall hook

Read from source at commit 1dfccba4c2e4OBSERVED · 2026-10-12
02

Connect

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. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add convex-mcp-gateway --env MCP_MRTR_SECRET=${MCP_MRTR_SECRET} --env MCP_PROXY_TOKEN=${MCP_PROXY_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "convex-mcp-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "MCP_MRTR_SECRET": "${MCP_MRTR_SECRET}",
        "MCP_PROXY_TOKEN": "${MCP_PROXY_TOKEN}"
      }
    }
  }
}
03

Exposed tools (92)

88 read · 2 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
Areadd
Introreadfirst
OverviewreadTenant skill overview
RowreadA database row
SyncedreadSynced docs
areada
alphareadAlpha tool
archivereadArchives
archive_confirmedreadConfirmed the documented direct way
archive_confirmed_aliasreadAlso confirmed, via the client wrapper
archive_rawreadNot confirmed
arg1readFirst test argument
arg2readSecond test argument
bad_mrtr_toolreadx
bad_toolreadx
betareadfresh-beta
brokenreadBroken
broken_queryreadalways throws
bulky_toolreadx
confirm-deletedestructiveDeletes after confirmation
confirm_only_toolreadx
confirm_toolreadx
corruptreadCorrupt
deepreadDeep
deep_toolreadDeep
deltareadfresh-delta
demo_toolreadtest
drift_toolreadinjected out-of-band
dupreadfirst
examplereadExample
failing_jobreadAlways reports a tool execution error, after about a second
get_contextreadRead entity context
greetwriteGreets by name. The sync-only control for the tasks scenarios
greetingreadGreet someone by name
healthyreadHealthy
hooked_query_without_keyreadx
hooked_without_keyreadx
identity_collision_toolreadx
invoicereadRead a single invoice by its id.
invoice-summaryreadTotal invoice count for the authenticated caller.
invoiceIdreadThe invoice to review
invoices_archiveAfterConfirmationreadAsk for confirmation, then archive an invoice with a replay-safe retry.
invoices_archive_rawreadNot confirmed
invoices_bulkMarkPaidreadMark every open invoice paid, after task-based confirmation.
invoices_listreadList invoices, optionally filtered by status.
invoices_markPaidreadMark an invoice as paid.
invoices_recountreadRecount all invoices as a deferred MCP task; poll tasks/get for
invoices_reviewreadCheck one invoice for problems before it is sent.
invoices_summaryreadSummarize invoices.
invoices_whoamireadReturn the authenticated caller. Identity is injected by
json_schema_2020_12_toolreadTool with JSON Schema 2020-12 features
keyed_without_hookreadx
missing_arg_toolreadx
nested_redactreadredact a nested path
non_optional_keyreadx
okreadFine
ok_toolreadx
old_toolreadfrom a previous list
plainreadNo arguments
protocol_error_jobreadAlways fails with a protocol-level error
regional_lookupreadLooks up by region
regional_summaryreadSummary pinned to a region routing header.
reports_generatereadGenerates a report
resourceUrireadURI of the resource to embed
scalar_toolreadreturns a string
scopedreadwith scopes
searchreadSearch
search_aliasreadRead alias
secret_failurereadDemo of error-message redaction.
secret_identityreadidentityArg + field redaction
secret_writewriteDemo of declarative field redaction.
sensitive_dropdestructivetool that opts out of arg storage
shaperreadshapes
slow_computereadSleeps for
solo_toolreadregistered one at a time
spoof_probereadthe real description
spoofed_toolreadspoofed description
stale_toolreadleft over
structured_throwreadthrows ConvexError with object data
test_custom_headersreadTool whose region argument is bound to a routing header
test_error_handlingreadAlways reports a tool error
test_prompt_with_argumentsreadA prompt with two required arguments
test_prompt_with_embedded_resourcereadA prompt embedding the resource it is given
test_prompt_with_imagereadA prompt carrying an image
test_simple_promptreadA simple prompt without arguments
test_simple_textreadReturns simple text content
test_tool_with_taskreadTask-capable tool for the MCP Tasks extension scenarios
tmp_toolreadtmp
user_facing_throwreadthrows ConvexError
whoreadWho to greet
xreadv1
zebrareadZebra tool
04

Trust audit

CAUTIONgrade B · trust 84/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (4 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (17)

MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
scripts/local-convex.mjs:123
"--disable-beacon",
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
example/convex/mcp.test.ts:3801
failPlain: "postgres://user:pw@host exploded",
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
confirm-delete, sensitive_drop
Why it matters. 2 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierrc.json
.prettierrc.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.release-please-manifest.json
.release-please-manifest.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
example/convex/mcp.test.ts:18
"../../src/component/**/*.ts",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
example/convex/mcp.test.ts:19
"!../../src/component/**/*.test.ts",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
example/convex/mcp.test.ts:22
import componentSchema from "../../src/component/schema.js";
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/client-interoperability.md:91
callback_url = "http://127.0.0.1/callback"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/conformance.md:149
--url http://127.0.0.1:3399/mcp --requirements 2026-07-28
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/conformance.md:235
`http://127.0.0.1:<port>` and `http://localhost:<port>`, so an
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/getting-started.md:447
SESSION=$(curl -sSD - -X POST http://127.0.0.1:3311/mcp/ \
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/getting-started.md:452
curl http://127.0.0.1:3311/mcp/ \
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
src/client/mcp-handler.ts:1669
const binary = atob(encoded);
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
src/client/mcp-handler.ts:2115
return Uint8Array.from(atob(padded), (char) => char.charCodeAt(0));
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@convex-dev/eslint-plugin, @eslint/js, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, convex, convex-test, eslint
Why it matters. 14 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/getting-started.md:447
SESSION=$(curl -sSD - -X POST http://127.0.0.1:3311/mcp/ \
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 1dfccba4c2e4full audit observations/trust-audit/mcp-server/tfohlmeister__convex-mcp-gateway.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-121dfccba4c2e4CAUTIONB84first audit
06

Questions

What is the convex-mcp-gateway MCP server?

Auth-aware Convex component that exposes selected Convex functions as MCP tools

What tools does convex-mcp-gateway expose?

92 in total: 88 read-only, 2 that write, and 2 that can delete or overwrite (confirm-delete, sensitive_drop). Every one is listed on this page with its risk.

Is convex-mcp-gateway safe to connect to an agent?

With care. The audit graded it B (84/100) and found 17 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does convex-mcp-gateway need?

It reads MCP_MRTR_SECRET and MCP_PROXY_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does convex-mcp-gateway run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as convex-mcp-gateway at 2.1.1.

How current is this page?

The grade is for one exact copy of the source (1dfccba4c2e4), read on 2026-10-12. The repository is watched and re-audited when it changes.

Advertisement