@modelcontextprotocol/express weekly downloads statistics
By modelcontextprotocol (8 listings) · npm · MCP servers
Express adapters for the Model Context Protocol TypeScript server SDK - Express middleware
@modelcontextprotocol/express has 487,757 recorded weekly downloads on npm, an increase of 59.3% over the past 30 days, ranking #271 of 2,391 tracked listings.
About @modelcontextprotocol/express
@modelcontextprotocol/express
Express adapters for the MCP TypeScript server SDK.
This package is a thin Express integration layer for @modelcontextprotocol/server.
It does not implement MCP itself. Instead, it helps you:
- create an Express app with sensible defaults for MCP servers
- add DNS rebinding protection via Host header validation (recommended for localhost servers)
- protect routes with
requireBearerAuth(validatesAuthorization: Bearer …via yourOAuthTokenVerifier) - serve OAuth Protected Resource Metadata (RFC 9728) via
mcpAuthMetadataRouter
Install
npm install @modelcontextprotocol/server @modelcontextprotocol/express express
# For MCP Streamable HTTP over Node.js (IncomingMessage/ServerResponse):
npm install @modelcontextprotocol/node
Exports
createMcpExpressApp(options?)hostHeaderValidation(allowedHostnames)localhostHostValidation()requireBearerAuth(options)mcpAuthMetadataRouter(options)getOAuthProtectedResourceMetadataUrl(serverUrl)OAuthTokenVerifier(interface)
Usage
Create an Express app (localhost DNS rebinding protection by default)
import { createMcpExpressApp } from '@modelcontextprotocol/express';
const app = createMcpExpressApp(); // default host is 127.0.0.1; protection enabled
Streamable HTTP endpoint (Express)
import { createMcpExpressApp } from '@modelcontextprotocol/express';
import { NodeStreamableHTTPServerTransport } from '@modelcontextprotocol/node';
import { McpServer } from '@modelcontextprotocol/server';
const app = createMcpExpressApp();
app.post('/mcp', async (req, res) => {
// Stateless example: create a server and a transport per request (with sessions: one pair per session).
const server = new McpServer({ name: 'my-server', version: '1.0.0' });
const transport = new NodeStreamableHTTPServerTransport({ sessionIdGenerator: undefined });
await server.connect(transport);
await transport.handleRequest(req, res, req.body);
});
Host header validation (DNS rebinding protection)
import { hostHeaderValidation } from '@modelcontextprotocol/express';
app.use(hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']));
Description from the npm listing.
- modelcontextprotocol
- mcp
- express
- middleware
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 (122)Similar npm MCP servers plugins
All 20 @modelcontextprotocol/express 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/@modelcontextprotocol/express. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.