MCP on Vercel
MCP-Server auf Vercel ausführen
Verwendung
Aktualisieren Sie api/server.ts mit Ihren Tools, Prompts und Ressourcen gemäß der MCP TypeScript SDK-Dokumentation.
Es gibt auch eine Next.js-Version dieser Vorlage
Related MCP server: Next.js MCP Server Template
MCP-Client-Integration
Wenn Sie diesen Server zu einer MCP-Client-Anwendung hinzufügen, verwenden Sie Ihre Deployment-URL gefolgt von /mcp:
https://your-deployment-url.vercel.app/mcpBeispiel-Tools
Die Vorlage enthält zwei Beispiel-Tools für den Einstieg:
roll_dice– Würfelt mit einem N-seitigen Würfel (mindestens 2 Seiten)get_weather– Ruft aktuelle Wetterdaten (über eine API) für einen Ort anhand von Breitengrad, Längengrad und Stadtname ab
Diese Tools demonstrieren grundlegende Funktionen und API-Integrationsmuster. Ersetzen Sie diese durch Ihre eigenen Tools.
Hinweise zum Betrieb auf Vercel
Stellen Sie sicher, dass Fluid compute für eine effiziente Ausführung aktiviert ist
Öffnen Sie nach der Aktivierung von Fluid compute die Datei
vercel.jsonund passen Sie die maximale Dauer auf 800 an, wenn Sie ein Vercel Pro- oder Enterprise-Konto verwenden
Lokale Entwicklung
Führen Sie
vercel devfür die lokale Entwicklung ausAlternativ können Sie das System in das Server-Framework Ihrer Wahl integrieren.
Beispiel-Client
scripts/test-streamable-http-client.mjs enthält einen Beispiel-Client zum Testen von Aufrufen.
node scripts/test-streamable-http-client.mjs https://mcp-on-vercel.vercel.appThis server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA template for running Model Context Protocol servers on Vercel with Redis support, allowing developers to deploy their custom tools, prompts, and resources using the MCP TypeScript SDK.-
- -licenseNot gradedqualityNot gradedmaintenanceA template for building MCP servers in Next.js applications using the Vercel MCP Adapter. Provides a foundation for adding custom tools, prompts, and resources to any Next.js project with deployment support on Vercel.-
- AlicenseNot gradedqualityDmaintenanceA template for deploying MCP servers on Vercel with example tools for rolling dice and getting weather data. Provides a foundation for building custom MCP servers with tools, prompts, and resources that can be deployed to Vercel's serverless platform.MIT
- AlicenseNot gradedqualityDmaintenanceA template for deploying Model Context Protocol servers as Next.js routes using the mcp-handler adapter, enabling easy integration of MCP tools, prompts, and resources into any Next.js application.MIT