Basic information
About Example MCP Server built on Next.js
MCP Server
Example MCP Server built on Next.js is a MCP server in the Other category listed in the AddMCP.net directory, published by MarkArmsrong. Supported transport: stdio. Runtime: node. License: MIT license. Source code is hosted on github.com. Related topics: mcp, nextjs, server.
Setup
{
"mcpServers": {
"mcp-for-nextjs": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-for-next-js.vercel.app"
]
}
}
}
{
"mcpServers": {
"mcp-for-nextjs": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-for-next-js.vercel.app"
]
}
}
}
{
"servers": {
"mcp-for-nextjs": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-for-next-js.vercel.app"
]
}
}
}
Example MCP Server built on Next.js (MarkArmsrong/mcp-for-nextjs) config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-for-nextjs": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-for-next-js.vercel.app"
]
}
}
}
Example MCP Server built on Next.js (MarkArmsrong/mcp-for-nextjs) tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Example MCP Server built on Next.js?
This is a template for building Model Context Protocol (MCP) servers using Next.js, designed for serverless deployment on Vercel. It provides scaffolding for tools, prompts, and resources, with an SSE endpoint and Redis integration.
How to use Example MCP Server built on Next.js?
Update app/mcp.ts with your tools, prompts, and resources following the MCP TypeScript SDK documentation. Deploy on Vercel with a Redis instance attached via process.env.REDIS_URL and Fluid compute enabled. A sample client script (scripts/test-client.mjs) is included for testing invocations.
Key features of Example MCP Server built on Next.js
- Built on Next.js for serverless deployment on Vercel
- Includes an SSE route for MCP communication
- Requires Redis for state persistence
- Supports custom tools, prompts, and resources via MCP SDK
- Sample client script for testing invocations
Use cases of Example MCP Server built on Next.js
- Deploying a production MCP server on Vercel
- Building custom MCP tools with Next.js serverless functions
- Integrating Redis-backed MCP resources
- Prototyping MCP interactions with the included test client
Frequently asked questions
1 What runtime or dependencies are required?
Requires a Redis instance attached under process.env.REDIS_URL and Vercel Fluid compute enabled for efficient execution.
2 How do I deploy this server?
Deploy using the Next.js MCP template on Vercel. After enabling Fluid compute, open app/sse/route.ts and adjust max duration to 800 seconds if using a Vercel Pro or Enterprise account.
3 Where does data live?
Tool state and resource data are stored in the attached Redis instance.
4 What transport does the server use?
It uses Server-Sent Events (SSE) via the /sse route.
5 Are there any known limits?
The SSE route has a max duration of 800 seconds on Pro/Enterprise accounts when Fluid compute is enabled.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In