
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@fractal-mcp/mcp-nextjs
Advanced tools
Next.js utilities for hosting Model Context Protocol (MCP) servers. This mirrors the functionality of @fractal-mcp/mcp-express
but targets Next.js applications.
npm install @fractal-mcp/mcp-nextjs
Create a Next.js API route using the pages router:
// pages/api/mcp.ts
import { FractalMCPServer } from '@fractal-mcp/mcp';
import { createNextApiHandler } from '@fractal-mcp/mcp-nextjs';
const mcpServer = new FractalMCPServer({ name: 'example', version: '1.0.0' });
// register tools ...
export default createNextApiHandler(mcpServer);
For projects using the newer app router you can proxy requests to the pages route:
// app/api/mcp/route.ts
import { NextRequest } from 'next/server';
export async function GET(req: NextRequest) {
return fetch(new URL('/api/mcp', req.url), { headers: req.headers });
}
export async function POST(req: NextRequest) {
return fetch(new URL('/api/mcp', req.url), {
method: 'POST',
headers: req.headers,
body: req.body,
});
}
The helpers defaultCorsMiddleware
and defaultAuthMiddleware
are available if you need more control.
FAQs
Next.js API utilities for MCP server hosting
The npm package @fractal-mcp/mcp-nextjs receives a total of 5 weekly downloads. As such, @fractal-mcp/mcp-nextjs popularity was classified as not popular.
We found that @fractal-mcp/mcp-nextjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.