Convex MCP Gateway
MCP server by tfohlmeister Verified · npm:convex-mcp-gateway
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Install Convex MCP Gateway
Built from the published package, never by AI.
claude mcp add convex-mcp-gateway -- npx -y convex-mcp-gatewayRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"convex-mcp-gateway": {
"args": [
"-y",
"convex-mcp-gateway"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"convex-mcp-gateway": {
"args": [
"-y",
"convex-mcp-gateway"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"convex-mcp-gateway": {
"args": [
"-y",
"convex-mcp-gateway"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add convex-mcp-gateway -- npx -y convex-mcp-gateway{
"mcpServers": {
"convex-mcp-gateway": {
"args": [
"-y",
"convex-mcp-gateway"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add convex-mcp-gateway npx -y convex-mcp-gatewayGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the convex-mcp-gateway block.
About
Convex MCP Gateway is a Convex component for Auth-aware MCP servers. You register selected Convex functions as MCP tools, bring your own JWT issuer, and declare scopes or roles per tool. You mount the gateway in a single httpAction and pass an authorize callback that decides each call. The gateway handles the JSON-RPC envelope, Streamable HTTP sessions, OAuth 2.1 protected-resource discovery, and an audit log with per-tool argument redaction.
It is aimed at developers who already use Convex and its auth, such as Clerk, Auth0, Pocket-ID, or a custom JWT issuer. The source also covers resources, prompts, tasks, and stateless MCP 2026-07-28 requests. It includes a convex-test helper for testing the full /mcp/ round trip in-process.
Written from the project's README and checked against it.
What you need
- A Convex project
- An existing auth setup or JWT issuer, such as Clerk, Auth0, Pocket-ID or a custom issuer
Try asking
- Expose my Convex invoice functions as MCP tools with login checks
- Show which MCP tool calls were logged in the audit log
- Add a public MCP tool that needs no login
Good to know
- Legacy SSE resumability framing is not emitted, a deliberate SHOULD deviation from the spec.
- Remote https $ref values in tool schemas are never fetched.
- Server instructions are a best-effort hint that some clients may ignore.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Expose Convex functions to AI assistants
- Gate MCP tool calls with existing Convex auth
- Keep an audit log of MCP calls
Alternatives to Convex MCP Gateway
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Discovers and scans agent components on your machine for prompt injections and vulnerabilities. It covers agents, MCP servers and skills, and can be run with uvx or as a standalone binary.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Convex MCP Gateway: common questions
What does Convex MCP Gateway do?
It exposes selected Convex functions as MCP tools and checks each call with an authorize callback. It also writes an audit log of calls.
Does it work with my existing Convex auth?
The source says it uses your existing ctx.auth.getUserIdentity() and works with providers such as Clerk, Auth0, Pocket-ID or a custom JWT issuer.
How does it handle browser clients like claude.ai?
The source describes an optional requireAuth setting that returns a 401 challenge to anonymous requests, so browser clients start the OAuth flow.
How do I install Convex MCP Gateway?
In Claude Code run claude mcp add convex-mcp-gateway -- npx -y convex-mcp-gateway. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Convex MCP Gateway the official server?
Convex MCP Gateway is published by npm:convex-mcp-gateway from its verified domain in the official MCP Registry.
Is Convex MCP Gateway free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Convex MCP Gateway safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Convex MCP Gateway?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Convex MCP Gateway work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
