Skip to content
PluginStats

@convex-dev/mcp weekly downloads statistics

By convex-dev · npm · MCP servers

Turn your Convex app into an MCP server, so your users can use your app from their AI agents.

View on npm Fresh · Dec 6, 2026

@convex-dev/mcp has 16,318 recorded weekly downloads on npm, an increase of 93.9% over the past 30 days, ranking #1108 of 3,247 tracked listings.

Weekly downloads
16,318
Official API · Dec 5, 2026
7-day growth
-14.1%
-2.7K weekly downloads
30-day growth
+93.9%
+7.9K weekly downloads
90-day growth
—
Insufficient history
Rank
#1108
▼ 62 in 7 days

About @convex-dev/mcp

Convex MCP

npm version

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

Let your users use your app from their AI agents. This component turns a Convex app into a remote MCP server with sign-in built in. Your users paste one URL into Claude, ChatGPT, Cursor or Claude Code, approve the agent on a page in your app, and the agent can then work with their data through tools you define.

export const mcp = new McpServer(components.mcp, {
  name: "todos",
  version: "1.0.0",
  consentUrl: `${process.env.SITE_URL}/connect`,
  tools: {
    add_todo: tool({
      description: "Add a todo for the user.",
      args: { text: v.string() },
      handler: (ctx, args, user) =>
        ctx.runMutation(internal.todos.add, { userId: user.userId, ...args }),
    }),
  },
});
  • Tools from Convex validators. args and returns become JSON Schema (inputSchema / outputSchema). Bad arguments go back to the model as tool errors it can fix.
  • A full OAuth 2.1 authorization server. It supports discovery (RFC 9728 / RFC 8414), dynamic client registration, PKCE, rotating refresh tokens with replay detection, and audience-bound tokens. It works with claude.ai connectors and any spec-compliant client. Client ID metadata documents are available as an opt-in for hosts you allowlist.
  • Your auth, your consent page. Users sign in with whatever your app already uses (Convex Auth, Clerk, WorkOS, …), then approve the agent.
  • Connections UI. Users can list connected agents, disconnect them, and create API keys for CLI agents.
  • Scopes. You can let users connect a read-only agent.
  • Secrets are stored hashed. Tokens are opaque and stored as SHA-256 only. Expired credentials and unused client registrations are cleaned up by a cron, and the unauthenticated endpoints are rate limited.

Speaks MCP 2026-07-28 (stateless, with server/discover, no initialize) and the earlier 2025-11-25, 2025-06-18 and 2025-03-26 versions on the same endpoint, over Streamable HTTP. Everything runs inside your Convex deployment: no separate server or auth provider.

Found a bug? Feature request? File it here.

Quick start: paste this into your coding agent

Open your Convex app in Claude Code, Codex, Cursor or any coding agent and paste:

Add an MCP server to this Convex app so our users can use it from their AI
agents (Claude, ChatGPT, Cursor, Claude Code).

1. Run `npm install @convex-dev/mcp@alpha`.
2. Read node_modules/@convex-dev/mcp/skills/convex-mcp/SKILL.md and its
   references, and follow it: study the app, then propose the MCP tools
   (names, descriptions, args, scopes, annotations) as a table and wait for
   my OK before writing code.
3. Wire it up as the skill describes: convex.config.ts, convex/mcp.ts with
   the tools on internal functions that take the verified userId, http.ts,
   a /connect consent page using our existing sign-in, and a "Connected
   agents" section in settings with API keys.
4. Verify against the dev deployment: create an API key, run tools/list,
   and call every tool once.
5. Then read node_modules/@convex-dev/mcp/skills/convex-mcp-security/SKILL.md
   and run that audit with two test users. Fix what it finds and show me the
   report.

Don't deploy to production or touch real user data.

The agent will stop after step 2 to show you the proposed tools.

Installation

npm install @convex-dev/mcp@alpha
// convex/convex.config.ts
import { defineApp } from "convex/server";
import mcp from "@convex-dev/mcp/convex.config.js";

const app = defineApp();
app.use(mcp);
export default app;

The MCP and OAuth discovery routes are served from your app's HTTP router at the origin root (/.well-known/...). Don't give the app itself an httpPrefix.

Usage

1. Define the server and tools

Tool handlers run in an HTTP action. There's no ctx.auth identity there: the verified user comes in as user.userId. Pass it to internal functions, and check ownership there just like your UI code does.

// convex/mcp.ts
import { McpServer, tool } from "@convex-dev/mcp";
import { getAuthUserId } from "@convex-dev/auth/server";
import { v } from "convex/values";
import { components, internal } from "./_generated/api";
import type { Id } from "./_generated/dataModel";

export const mcp = new McpServer(components.mcp, {
  name: "todos",
  title: "Todos",
  version: "1.0.0",
  instructions: "Manage the user's todo list.",
  consentUrl: `${process.env.SITE_URL}/connect`,
  scopes: {
    "todos:read": "See your todos",
    "todos:write": "Add and complete your todos",
  },
  tools: {
    list_todos: tool({
      description: "List the user's todos, optionally filtered by completion.",
      args: { done: v.optional(v.boolean()) },
      returns: v.object({
        todos: v.array(v.object({ id: v.string(), text: v.string(), done: v.boolean() })),
      }),
      annotations: { readOnlyHint: true },
      scope: "todos:read",
      handler: async (ctx, args, user) => ({
        todos: await ctx.runQuery(internal.todos.listForUser, {
          userId: user.userId as Id<"users">,
          ...args,
        }),
      }),
    }),
  },
});

// Functions your frontend uses for the consent page and settings.
export const {
  getAuthRequest,
  authorize,
  listConnections,
  revokeConnection,
  createApiKey,
} = mcp.api({ getUserId: getAuthUserId });

getUserId decides who a connection acts for. Return a stable ID that can't collide across identity providers, such as your users table ID or identity.tokenIdentifier.

2. Register the routes
// convex/http.ts
import { httpRouter } from "convex/server";
import { mcp } from "./mcp";

const http = httpRouter();
mcp.registerRoutes(http);
export default http;
```…

Description from the npm listing.

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

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-dev/mcp weekly downloads on npm, last 90 days: 16,318 weekly downloads as of Dec 5, 2026.@convex-dev/mcpWeekly downloads on npm · Last 90 days16,318downloads / week05K10K15K20K25KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@convex-dev/mcp weekly downloads on npm, last 90 days: 16,318 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@convex-dev/mcp weekly downloads growth on npm: -14.1% over 7 days, +93.9% over 30 days, 90-day growth unavailable.@convex-dev/mcpWeekly downloads growth on npm16,318downloads / week now7-day growth-2,668 weekly downloads-14.1%30-day growth+7,903 weekly downloads+93.9%90-day growth+16,318 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@convex-dev/mcp weekly downloads growth on npm: -14.1% over 7 days, +93.9% over 30 days, 90-day growth unavailable.

Ranking history

@convex-dev/mcp npm ranking history: currently #1108 (by weekly downloads).@convex-dev/mcpnpm ranking · by weekly downloads · Last 90 days#1108current rank#980#1000#1020#1040#1060#1080#1100#1120Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 15, 2026 – Dec 6, 2026 · 17 observations · Updated Dec 5, 2026pluginstats.com
@convex-dev/mcp npm ranking history: currently #1108 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 56, #8 (overall #1,108)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 12, #7 (overall #227)
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 (135)
Recent weekly downloads observations for @convex-dev/mcp
Date (UTC)Weekly downloadsChange vs. previous
16,318-1.4K
17,699-572
18,271+693
17,578-98
17,676-267
17,943-597
18,540-446
18,986-371
19,357+517
18,840-414
19,254-22
19,276+1.1K
18,223-2K
20,182—

Similar npm MCP servers plugins

All 20 @convex-dev/mcp 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-dev/mcp. First seen Nov 15, 2026; last successful collection Dec 6, 2026. See the methodology.