@better-auth/mcp weekly downloads statistics
By better-auth (2 listings) · npm · MCP servers
Model Context Protocol (MCP) plugin for Better Auth
@better-auth/mcp has 1,884,007 recorded weekly downloads on npm, an increase of 38.3% over the past 30 days, ranking #234 of 3,247 tracked listings.
About @better-auth/mcp
@better-auth/mcp
Model Context Protocol (MCP) plugin for Better Auth.
mcp() turns your Better Auth app into an OAuth 2.1 authorization server and
protected resource for MCP clients, built on
@better-auth/oauth-provider.
It serves RFC 9728 protected resource metadata and binds issued tokens to the
configured resource. Compose it with cimd() for the MCP 2026-07-28 Client ID
Metadata Document flow, which pins CIMD draft-00 through an explicit metadata
profile. Dynamic Client Registration is disabled unless explicitly enabled.
@better-auth/mcp owns authorization, not MCP protocol transport. Serve MCP
2026-07-28 requests with version 2 of the official
@modelcontextprotocol/server
package, configure createMcpHandler with legacy: "reject", mount it behind
requireMcpAuth, and expose only the HTTP POST route. The modern protocol
handles each request independently and does not need a Redis-backed MCP
session store. Multi-instance subscriptions/listen deployments can supply a
shared SDK event bus without introducing protocol-level sessions.
import { betterAuth } from "better-auth";
import { jwt } from "better-auth/plugins";
import { cimd } from "@better-auth/cimd";
import { fetchClientMetadataResource } from "@better-auth/cimd/node";
import { mcp } from "@better-auth/mcp";
export const auth = betterAuth({
plugins: [
jwt(),
mcp({
loginPage: "/login",
consentPage: "/consent",
resource: "https://api.example.com/mcp",
}),
cimd({
fetchClientMetadataResource,
metadataProfile: "mcp-2026-07-28",
}),
],
});
See the MCP plugin documentation.
Description from the npm listing.
- mcp
- model context protocol
- auth
- oauth
- oidc
- rfc9728
- rfc8707
- typescript
- better-auth
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (170)Similar npm MCP servers plugins
All 20 @better-auth/mcp alternativesData 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/@better-auth/mcp. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.