Skip to content
PluginStats

convex-mcp-gateway weekly downloads statistics

By tfohlmeister · npm · MCP servers

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

View on npm Stale · Oct 18, 2026

convex-mcp-gateway has 8,736 recorded weekly downloads on npm, a decrease of 7.2% over the past 30 days, ranking #991 of 2,391 tracked listings.

Weekly downloads
8,736
Official API · Oct 18, 2026
7-day growth
-19.6%
-2.1K weekly downloads
30-day growth
-7.2%
-677 weekly downloads
90-day growth
+216%
+6K weekly downloads
Rank
#991
Among tracked npm listings

About convex-mcp-gateway

convex-mcp-gateway

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.

Convex Component tests npm license

<!-- START: Include on https://convex.dev/components -->

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 to request input before any Convex function runs, then receive HMAC-verified continuation state plus an idempotency key on retry; resources/read gets the same treatment through beforeResourceRead, so a read can ask a question before serving content. See Multi-round-trip requests and Resources
  • MCP Tasks (poll-first): opt-in io.modelcontextprotocol/tasks support; task-augmented tools/call returns a handle, clients poll tasks/get, owner-bound with TTL retention and lifecycle audit. Built-in durable executor via the Convex scheduler, or bring @convex-dev/workflow for retries and input_required rounds. See Tasks
  • MCP resources: defineMcpResource / defineMcpResourceTemplate serve resources/list, resources/read, and resources/templates/list (RFC 6570). Central authorizeResource hook, opt-in resource audit, runtime shape validation, opt-in resources/subscribe capability, and opt-in anonymous access for public content. See Resources & templates
  • MCP prompts: defineMcpPrompt serves prompts/list and prompts/get, with argument checks, result validation, an authorizePrompt hook, and opt-in anonymous access. See Prompts
  • One authorize callback: gates tools/call and filters tools/list with mode: "list" | "call"; uses your existing ctx.auth.getUserIdentity()
  • OAuth 2.1 protected-resource discovery: RFC 9728 metadata, RFC 6750 WWW-Authenticate headers, multi-tenant ready
  • Optional OAuth bridge: RFC 8414 AS metadata wrap + RFC 7591 DCR for browser MCP clients (claude.ai) against IdPs without DCR support, with opt-in CIMD advertisement when the upstream authorization server supports it
  • requireAuth for all-private servers: opt-in 401-challenge on anonymous requests so browser clients (claude.ai) begin the OAuth flow instead of seeing an empty tools/list and never prompting a login
  • initializeInstructions: optional server-level guidance returned in the MCP initialize result's instructions field, surfaced to the LLM without bloating individual tool descriptions
  • Audit log: one row per call with per-tool argument redaction (verbatim / dropped / dotted-path redacted)
  • Wire-error sanitization: generic message on the wire, full detail in audit; ConvexError passes through for deliberate user-facing messages
  • convex-test helper: convex-mcp-gateway/test exports a one-line register(t) that hooks the component into a convexTest instance so your host tests can exercise the full /mcp/ round-trip in-process. See Testing

What it does

Architecture overview

You mount the gateway in a single httpAction and pass an authorize JS callback that decides per call whether the request goes through. The gateway handles the JSON-RPC envelope, legacy Streamable-HTTP session lifecycle, stateless 2026-07-28 requests, the OAuth discovery doc, the WWW-Authenticate headers, and the audit log. Your existing Convex auth (Clerk, Auth0, Pocket-ID, custom JWT issuer) just works.

A standalone editorial-styled version of the diagram is at docs/diagrams/architecture.html; in-depth sequence and data-flow diagrams live in docs/architecture.md.

Try it

The companion repo convex-mcp-gateway-demo is a notes app that registers five tools (public, identity-gated, role-gated) and shows the audit log live. Three run modes including a local-backend setup that needs no Convex account:…

Description from the npm listing.

  • convex
  • convex-component
  • mcp
  • model-context-protocol
  • oauth
  • ai

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

convex-mcp-gateway weekly downloads on npm, last 90 days: 8,736 weekly downloads as of Oct 18, 2026, +216% over 90 days.convex-mcp-gatewayWeekly downloads on npm · Last 90 days8,736downloads / week+216% over 90 days02K4K6K8K10K12K14K16KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
convex-mcp-gateway weekly downloads on npm, last 90 days: 8,736 weekly downloads as of Oct 18, 2026, +216% over 90 days.

7/30/90-day growth

convex-mcp-gateway weekly downloads growth on npm: -19.6% over 7 days, -7.2% over 30 days, +216% over 90 days.convex-mcp-gatewayWeekly downloads growth on npm8,736downloads / week now7-day growth-2,131 weekly downloads-19.6%30-day growth-677 weekly downloads-7.2%90-day growth+5,969 weekly downloads+216%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
convex-mcp-gateway weekly downloads growth on npm: -19.6% over 7 days, -7.2% over 30 days, +216% over 90 days.

Ranking history

convex-mcp-gateway npm ranking history: currently #991 (by weekly downloads).convex-mcp-gatewaynpm ranking · by weekly downloads · Last 90 days#991current rank#975#980#985#990#995Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
convex-mcp-gateway npm ranking history: currently #991 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,196 shown · page 50, #16 (overall #996)
All npm: every listing in weekly downloads order

Listing placement

MCP servers300 listings · 15 pages · page 10, #4 (overall #184)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for convex-mcp-gateway
Date (UTC)Weekly downloadsChange vs. previous
8,736+759
7,977-717
8,694+2.3K
6,389-2.2K
8,558-2.4K
10,9250
10,925+58
10,867-291
11,158-683
11,841+520
11,321+412
10,909-431
11,340-3.3K
14,612—

Similar npm MCP servers plugins

All 20 convex-mcp-gateway alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/convex-mcp-gateway. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.