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.

コメント

「クラウドとインフラ」の他のコンテンツ