MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

Boilerplate for running Remote MCP Servers on FaaS Providers

创建于 5/25/2025
更新于 21 days ago
Repository documentation and setup instructions

Remote Serverless MCP Servers

You want to run a remote MCP server, but you don't want to host or pay for a server. Well you're in luck, you can use the Vercel Hobby Tier to run it for free.

This is an adapter library that provides a stateless Python MCP server that runs on Vercel Functions, enabling serverless deployment of MCP tools as edge functions with self-hosting installers.

Prerequisites

Fork this repo and connect it to your Vercel account. Once it's deployed get the URL (your-domain.vercel.app).

If you don't have uv installed, install it from astral:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then, install the MCP server using the self-hosted installer:

uv run https://your-domain.vercel.app/install.py

And we're done. This automatically:

  • Configures Claude Desktop and Cursor to use the MCP server
  • Uses the bridge script served directly from the server
  • No downloads or local files needed

Go to your client and type something stupid like "Use MCP to get the server time" and it should use the remote server.

Authentication (Optional)

The server supports optional API key authentication to restrict access. To enable authentication:

  1. Server-side: Set the MCP_API_KEY environment variable in your Vercel deployment
  2. Client-side: The installer will prompt for an API key during setup

You can set the API key in your vercel.json file or in the Vercel dashboard:

{
  "env": {
    "MCP_API_KEY": "your-secret-key-here"
  }
}

When an API key is configured on the server, all MCP requests must include the key in the X-API-Key header. The bridge script automatically handles this when the MCP_API_KEY environment variable is set in the client configuration.

Local Development

uv sync
vercel dev

Deploy

You just push to Github and it should just work.

Or manually deploy:

vercel --prod
快速设置
此服务器的安装指南

安装包 (如果需要)

uvx mcp-on-vercel

Cursor 配置 (mcp.json)

{ "mcpServers": { "sdiehl-mcp-on-vercel": { "command": "uvx", "args": [ "mcp-on-vercel" ] } } }