MCP.so
登录

mcp-on-vercel

@xarical

关于 mcp-on-vercel

MCP Server on Vercel template

基本信息

分类

云与基础设施

许可证

MIT license

运行时

node

传输方式

stdio

发布者

xarical

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-on-vercel": {
      "command": "node",
      "args": [
        "scripts/test-sse-client.mjs",
        "YOUR_MCP_SERVER_URL"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is mcp-on-vercel?

A template Model Context Protocol (MCP) server built with the TypeScript SDK, designed for deployment on Vercel. It lets developers define custom tools, prompts, and resources and test them locally or on Vercel’s infrastructure.

How to use mcp-on-vercel?

Install dependencies with npm install, then run the dev server with vercel dev. Edit api/server.ts to add your tools, prompts, and resources. Test using the provided SSE or streamable HTTP client scripts.

Key features of mcp-on-vercel

  • Ready‑to‑deploy MCP server template for Vercel
  • Supports Server‑Sent Events (SSE) and streamable HTTP transports
  • Includes test client scripts for both transports
  • Uses standard TypeScript SDK for tool/resource definitions
  • Environment variables accessible via process.env

Use cases of mcp-on-vercel

  • Deploying an MCP server with minimal setup on Vercel
  • Prototyping and testing MCP tools, prompts, and resources locally
  • Building a lightweight, serverless MCP endpoint with Redis/Upstash

FAQ from mcp-on-vercel

What runtime or dependencies does it require?

Node.js, the Vercel CLI, and a Redis or Upstash database connected to the Vercel project. Fluid Compute is recommended.

How do I run the server locally?

Run npm install, then vercel dev to start the development server.

How do I deploy the server?

Use the “Deploy to Vercel” button in the README, or manually import the repository and follow Vercel’s prompts.

What transports are supported?

SSE and streamable HTTP. Test scripts are provided in the scripts/ directory.

Where can I define my MCP tools, prompts, and resources?

In the api/server.ts file, following the MCP TypeScript SDK documentation.

评论

云与基础设施 分类下的更多 MCP 服务器