mcpField
R
Run an MCP Server on Vercel

Run an MCP Server on Vercel

Local
github.com/npstoreyCloud & Infra0Updated 77w ago

About Run an MCP Server on Vercel

This template is for running an MCP server on Vercel, aimed at developers configuring custom tools, prompts, and resources. It requires an attached Redis instance and includes a sample client for testing invocations.

Key features

  1. 01Configure tools, prompts, and resources in api/server.ts
  2. 02Next.js template variant
  3. 03Requires an attached Redis instance
  4. 04Includes a sample client

Use cases

  1. 01Configure MCP server capabilities from the template
  2. 02Set up the template using its Next.js variant
  3. 03Configure Redis before deployment
  4. 04Test server invocations with the sample client

MCP support

The template runs an MCP server on Vercel, where tools, prompts, and resources can be configured; a sample client is included for invocation testing.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Run an MCP Server on Vercel

Usage

Update api/server.ts with your tools, prompts, and resources following the MCP TypeScript SDK documentation.

There is also a Next.js version of this template

Notes for running on Vercel

  • Requires a Redis attached to the project under process.env.REDIS_URL
  • Make sure you have Fluid compute enabled for efficient execution
  • After enabling Fluid compute, open vercel.json and adjust max duration to 800 if you using a Vercel Pro or Enterprise account
  • Deploy the MCP template

Sample Client

script/test-client.mjs contains a sample client to try invocations.

node scripts/test-client.mjs https://mcp-on-vercel.vercel.app

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.