Nuxt MCP Server on Vercel
Vercel 上的 Nuxt MCP 服务器
这是一个简单的 Nuxt 应用程序,使用@vercel/mcp-adapter充当 Vercel 上的 MCP 服务器。
用法
此示例应用程序使用Vercel MCP 适配器,允许您在任何 Nuxt 项目中的一组路由上放置 MCP 服务器。
按照MCP TypeScript SDK 文档,使用您的工具、提示和资源更新server/routes/mcp/[transport].ts 。
MCP 服务器安装在/mcp/[transport]上(例如: /mcp/sse )。
Related MCP server: Example Next.js MCP Server
设置
确保安装依赖项:
pnpm install开发服务器
确保 Redis 在本地运行:
redis-server在另一个终端上启动开发服务器http://localhost:3000 :
pnpm dev生产
构建生产应用程序:
pnpm build本地预览生产版本:
pnpm preview查看部署文档以获取更多信息。
在 Vercel 上运行的注意事项
要使用 SSE 传输,需要在
process.env.REDIS_URL下将 Redis 附加到项目确保已启用Fluid Compute以实现高效执行
启用 Fluid compute 后,打开
server/routes/mcp/[transport].ts并将maxDuration调整为 800(如果您使用 Vercel Pro 或 Enterprise 帐户)
示例客户端
script/test-client.mjs包含一个用于尝试调用的示例客户端。
node scripts/test-client.mjs http://localhost:3000致谢
该项目基于Next.js MCP 模板。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- AlicenseDqualityDmaintenanceA ready-to-use starter implementation of the Model Context Protocol (MCP) server that enables applications to provide standardized context for LLMs with sample resources, tools, and prompts.21MIT
- AlicenseNot gradedqualityDmaintenanceA sample implementation of a Model Context Protocol server using Next.js and the Vercel MCP Adapter, allowing developers to create AI assistants with custom tools and resources.MIT
- AlicenseNot gradedqualityDmaintenanceA sample implementation of Model Context Protocol server using Next.js and the Vercel MCP Adapter, allowing developers to create custom AI agent backends with tools, prompts, and resources.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