Example Next.js MCP Server
@rajatsandeepsen
关于 Example Next.js MCP Server
MCP Server for Beckn Protocol (SSE Transport)
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"beckn-mcp": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-for-next-js.vercel.app"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Example Next.js MCP Server?
It is an MCP server that integrates with Next.js using the @vercel/mcp-adapter. It allows developers to add MCP capabilities (tools, prompts, resources) to any Next.js project and deploy them on Vercel.
How to use Example Next.js MCP Server?
Update app/[transport]/route.ts with your tools, prompts, and resources following the MCP TypeScript SDK documentation. Use the sample client in scripts/test-client.mjs to test invocations, for example: node scripts/test-client.mjs https://mcp-for-next-js.vercel.app.
Key features of Example Next.js MCP Server
- Uses the Vercel MCP Adapter for easy integration.
- Supports SSE transport (requires Redis).
- Requires Fluid compute for efficient execution.
- Adjustable
maxDuration(up to 800 seconds on Pro/Enterprise). - Deployable from the Next.js MCP template.
- Includes a sample client for testing invocations.
Use cases of Example Next.js MCP Server
- Adding an MCP server to an existing Next.js project.
- Deploying MCP tools, prompts, and resources on Vercel.
- Building and testing MCP invocations with a sample client.
FAQ from Example Next.js MCP Server
Does SSE transport require any additional services?
Yes, SSE transport requires a Redis instance attached to the project under process.env.REDIS_URL.
What compute settings are needed?
Fluid compute must be enabled for efficient execution. After enabling it, adjust maxDuration in app/route.ts to 800 if using a Vercel Pro or Enterprise account.
Where can I get started quickly?
Deploy the Next.js MCP template from Vercel.
What transport options are available?
The sample uses SSE transport. No other transports are mentioned in the README.
How do I test the server?
Run the provided sample client with your server URL: node scripts/test-client.mjs <url>.
其他 分类下的更多 MCP 服务器
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Blender
ahujasidOpen-source MCP to use Blender with any LLM
Website
FunnyWolfAdversary simulation and Red teaming platform with AI
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
ICSS
chokcoco不止于 CSS
评论