MCP.so
Sign In

Example Next.js MCP Server

@npstorey

Basic information

Category

Cloud & Infrastructure

License

MIT

Transports

stdio

Author

npstorey

About Example Next.js MCP Server

No overview available yet

Example Next.js MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "opengov-mcp-server-vercel-nextjs": {
      "command": "node",
      "args": [
        "scripts/test-client.mjs",
        "https://mcp-for-next-js.vercel.app"
      ]
    }
  }
}

Example Next.js MCP Server 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 Next.js MCP Server?

Example Next.js MCP Server is a template that uses the @vercel/mcp-adapter to integrate a Model Context Protocol (MCP) server into any Next.js project. It is designed for developers who want to quickly add MCP tools, prompts, and resources to their Next.js applications.

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. To test invocations, run node scripts/test-client.mjs <url> using the provided sample client. For SSE transport, ensure a Redis instance is attached and Fluid compute is enabled.

Key features of Example Next.js MCP Server

  • Integrates MCP server into Next.js routes via @vercel/mcp-adapter
  • Supports SSE transport (requires Redis and Fluid compute)
  • Deployable with Vercel’s Next.js MCP template
  • Includes a sample client script for testing

Use cases of Example Next.js MCP Server

  • Adding an MCP server to an existing Next.js application
  • Building a prototype that uses MCP tools and resources
  • Testing MCP server functionality with the provided sample client

Frequently asked questions

1

What transport does Example Next.js MCP Server support?

The server supports SSE transport, which requires a Redis instance attached to the project under `process.env.REDIS_URL`.

2

What runtime requirements are needed for Example Next.js MCP Server?

You need to enable Fluid compute on Vercel for efficient execution. If using a Pro or Enterprise account, adjust `maxDuration` to 800 in `app/route.ts`.

3

How can I deploy Example Next.js MCP Server?

Use the Vercel Next.js MCP template linked in the README to deploy the server directly.

4

Where do I configure tools and resources?

Edit `app/[transport]/route.ts` following the MCP TypeScript SDK documentation to add your tools, prompts, and resources.

Comments

More Cloud & Infrastructure MCP servers