Run an MCP Server on Vercel
@npstorey
About Run an MCP Server on Vercel
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"opengov-mcp-server-vercel": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-on-vercel.vercel.app"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Run an MCP Server on Vercel?
Run an MCP Server on Vercel is a template for deploying a Model Context Protocol (MCP) server on Vercel Functions. It integrates the MCP TypeScript SDK with serverless infrastructure and requires a Redis instance for state management.
How to use Run an MCP Server on Vercel?
Update api/server.ts to define custom tools, prompts, and resources following the MCP TypeScript SDK. Deploy the project on Vercel with a Redis instance set as process.env.REDIS_URL, enable Fluid compute, and optionally adjust vercel.json max duration to 800 seconds for Pro or Enterprise accounts. A sample client script (scripts/test-client.mjs) is provided for testing invocations.
Key features of Run an MCP Server on Vercel
- Deploy MCP servers on Vercel Functions
- Built with the MCP TypeScript SDK
- Requires Redis for state persistence
- Fluid compute for efficient execution
- Configurable invocation duration up to 800 seconds
Use cases of Run an MCP Server on Vercel
- Deploying custom MCP tools on serverless infrastructure
- Testing MCP invocations with the included sample client
- Building MCP servers that integrate with Next.js applications
FAQ from Run an MCP Server on Vercel
What dependencies does Run an MCP Server on Vercel require?
It requires a Redis instance attached to the project and accessible via the REDIS_URL environment variable. Fluid compute must be enabled for efficient execution.
Can I adjust the execution duration?
Yes. After enabling Fluid compute, you can set the max duration in vercel.json to 800 seconds if you have a Vercel Pro or Enterprise account.
Is there a sample client available?
Yes. The project includes scripts/test-client.mjs, a sample client that can be run to test invocations against the deployed server.
Does this template work with Next.js?
Yes. There is a separate Next.js version of this template available in the Vercel template gallery.
Frequently asked questions
What dependencies does Run an MCP Server on Vercel require?
It requires a Redis instance attached to the project and accessible via the `REDIS_URL` environment variable. Fluid compute must be enabled for efficient execution.
Can I adjust the execution duration?
Yes. After enabling Fluid compute, you can set the max duration in `vercel.json` to 800 seconds if you have a Vercel Pro or Enterprise account.
Is there a sample client available?
Yes. The project includes `scripts/test-client.mjs`, a sample client that can be run to test invocations against the deployed server.
Does this template work with Next.js?
Yes. There is a separate Next.js version of this template available in the Vercel template gallery.
Basic information
More Cloud & Infrastructure MCP servers
Query | MCP server for Supabase
alexander-zuevQuery MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning, access to logs and much more.
MCP Server that interacts with Azure AI Foundry (experimental)
azure-ai-foundryA MCP Server for Azure AI Foundry: it's now moved to cloud, check the new Foundry MCP Server
Terraform MCP Server
hashicorpThe Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Azure DevOps MCP Server
Tiberriver256An MCP server for Azure DevOps
Kubernetes MCP Server
manusaModel Context Protocol (MCP) server for Kubernetes and OpenShift
Comments