Run an MCP Server on Vercel
About
# Run an MCP Server on Vercel ## Usage Update `api/server.ts` with your tools, prompts, and resources following the [MCP TypeScript SDK documentation](https://github.com/modelcontextprotocol/typescript-sdk/tree/main?tab=readme-ov-file#server). [There is also a Next.js version of this…
Details
- License
- MIT license
Explore
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Run an MCP Server on VercelCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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
- 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
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"run an mcp server on vercel": {
"opengov-mcp-server-vercel": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-on-vercel.vercel.app"
]
}
}
}
}
McpServers
{
"opengov-mcp-server-vercel": {
"command": "node",
"args": [
"scripts/test-client.mjs",
"https://mcp-on-vercel.vercel.app"
]
}
}
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



