MCP on Vercel
Vercel で MCP サーバーを実行する
使用方法
MCP TypeScript SDK ドキュメント に従って、api/server.ts をツール、プロンプト、リソースで更新してください。
MCP クライアントの統合
このサーバーを MCP クライアントアプリケーションに追加する際は、デプロイメント URL の後に /mcp を付けて使用してください:
https://your-deployment-url.vercel.app/mcpツールの例
このテンプレートには、すぐに使い始められる 2 つのツール例が含まれています:
roll_dice- N 面ダイスを振ります(最小 2 面)get_weather- 緯度、経度、都市名を使用して、場所の現在の気象データを取得します(API 経由)
これらのツールは、基本的な機能と API 統合パターンを示しています。独自のツールに置き換えてください。
Vercel で実行するための注意点
効率的な実行のために Fluid compute が有効になっていることを確認してください
Fluid compute を有効にした後、
vercel.jsonを開き、Vercel Pro または Enterprise アカウントを使用している場合は最大実行時間を 800 に調整してください
ローカル開発
ローカル開発には
vercel devを実行してくださいまたは、システムを任意のサーバーフレームワークに統合してください。
サンプルクライアント
scripts/test-streamable-http-client.mjs には、呼び出しを試すためのサンプルクライアントが含まれています。
node scripts/test-streamable-http-client.mjs https://mcp-on-vercel.vercel.appThis server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prncsclo-create/hardcover-mcp-on-vercel-main'
If you have feedback or need assistance with the MCP directory API, please join our Discord server