跳到正文
FunCoding

mcp-for-next.js

官方
Star
375
许可证
MIT
最近提交
2026年10月24日

Example Next.js MCP Server

This template uses mcp-handler 2 and the MCP TypeScript SDK v2 to add a stateless MCP server to a Next.js App Router application.

Usage

Update app/mcp/route.ts with your tools, prompts, and resources following the MCP TypeScript SDK v2 documentation.

Start the application and connect an MCP client to:

http://localhost:3000/mcp

Protocol support

  • The current 2026-07-28 MCP protocol is served natively.
  • Stateless clients using 2025-era Streamable HTTP are supported by the compatibility layer.
  • The deprecated HTTP+SSE transport is not supported. Redis is not required.

Notes for running on Vercel

Sample Client

scripts/test-client.mjs connects over Streamable HTTP, lists the available tools, and calls echo.

pnpm test:client -- https://mcp-for-next-js.vercel.app

同类 MCP Server

精选

Metabase

搜索、查询和可视化 Metabase 数据,操作受用户权限控制。

MEmetabase/metabase51k近 7 天新增 219 个 star

精选

next-ai-draw-io

描述一句话生成架构图,选中形状修改,每次改动可撤销。

DADayuanJiang/next-ai-draw-io37k近 7 天新增 119 个 star

精选

GitDiagram

将 GitHub 仓库转为交互式架构图,获取 Mermaid 源码和视频解说。

AHahmedkhaleel2004/gitdiagram19k近 7 天新增 85 个 star

Figma-Context-MCP

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

GLGLips/Figma-Context-MCP16k近 7 天新增 56 个 star

stitch-skills

A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard, for compatibility with coding agents such as Antigravity, Gemini CLI, Claude Code, Cursor.

GOgoogle-labs-code/stitch-skills15k近 7 天新增 2,572 个 star

精选

cursor-talk-to-figma-mcp

让智能体读取和修改 Figma 设计稿。

GRgrab/cursor-talk-to-figma-mcp7.1k近 7 天新增 11 个 star