
Security News
Re-Enabled GitHub Actions Expose Thousands of Repositories to Mini Shai-Hulud
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.
@modelcontextprotocol/express
Advanced tools
Express adapters for the Model Context Protocol TypeScript server SDK - Express middleware
@modelcontextprotocol/expressExpress 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:
requireBearerAuth (validates Authorization: Bearer … via your OAuthTokenVerifier)mcpAuthMetadataRouternpm install @modelcontextprotocol/server @modelcontextprotocol/express express
# For MCP Streamable HTTP over Node.js (IncomingMessage/ServerResponse):
npm install @modelcontextprotocol/node
createMcpExpressApp(options?)hostHeaderValidation(allowedHostnames)localhostHostValidation()requireBearerAuth(options)mcpAuthMetadataRouter(options)getOAuthProtectedResourceMetadataUrl(serverUrl)OAuthTokenVerifier (interface)import { createMcpExpressApp } from '@modelcontextprotocol/express';
const app = createMcpExpressApp(); // default host is 127.0.0.1; protection enabled
import { createMcpExpressApp } from '@modelcontextprotocol/express';
import { NodeStreamableHTTPServerTransport } from '@modelcontextprotocol/node';
import { McpServer } from '@modelcontextprotocol/server';
const app = createMcpExpressApp();
const server = new McpServer({ name: 'my-server', version: '1.0.0' });
app.post('/mcp', async (req, res) => {
// Stateless example: create a transport per request.
// For stateful mode (sessions), keep a transport instance around and reuse it.
const transport = new NodeStreamableHTTPServerTransport({ sessionIdGenerator: undefined });
await server.connect(transport);
await transport.handleRequest(req, res, req.body);
});
import { hostHeaderValidation } from '@modelcontextprotocol/express';
app.use(hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']));
FAQs
Express adapters for the Model Context Protocol TypeScript server SDK - Express middleware
The npm package @modelcontextprotocol/express receives a total of 116,172 weekly downloads. As such, @modelcontextprotocol/express popularity was classified as popular.
We found that @modelcontextprotocol/express demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.

Research
/Security News
The compromise affects MemTensor's MemOS, an open source memory framework for large language models (LLMs) and AI agents. Both npm package @memtensor/memos-cloud-openclaw-plugin and the PyPI package MemoryOS are compromised. They drop cross-platform Go binaries that exfiltrate developer secrets.