Nuxt MCP Server on Vercel

by atinux

Integrations

  • Serves as a foundation for the MCP server, allowing it to be integrated into any Nuxt project with custom routes

  • Required for using the SSE transport in production, serving as the backing store for message handling

  • Provides type definitions and SDK support for building MCP tools, prompts, and resources

Vercel 上の Nuxt MCP サーバー

これは@vercel/mcp-adapterを使用して Vercel 上で MCP サーバーとして機能するシンプルな Nuxt アプリケーションです。

使用法

このサンプル アプリは、任意の Nuxt プロジェクト内のルートのグループに MCP サーバーをドロップインできるVercel MCP アダプターを使用します。

MCP TypeScript SDK ドキュメントに従って、ツール、プロンプト、リソースを使用してserver/routes/mcp/[transport].ts更新します。

MCP サーバーは/mcp/[transport] (例: /mcp/sse ) にマウントされます。

設定

依存関係を必ずインストールしてください:

pnpm install

開発サーバー

Redis がローカルで実行されていることを確認します。

redis-server

別のターミナルでhttp://localhost:3000開発サーバーを起動します。

pnpm dev

生産

本番環境用にアプリケーションをビルドします。

pnpm build

ローカルで製品ビルドをプレビューします。

pnpm preview

詳細については、デプロイメントのドキュメントを参照してください。

Vercelで実行する場合の注意事項

  • SSEトランスポートを使用するには、 process.env.REDIS_URLの下のプロジェクトにRedisが接続されている必要があります。
  • 効率的な実行のためにFluid Computeが有効になっていることを確認してください
  • Fluidコンピューティングを有効にした後、 server/routes/mcp/[transport].tsを開き、Vercel ProまたはEnterpriseアカウントを使用している場合はmaxDurationを800に調整します。
  • Nuxt MCPテンプレートをデプロイする

サンプルクライアント

script/test-client.mjsには、呼び出しを試すためのサンプル クライアントが含まれています。

node scripts/test-client.mjs http://localhost:3000

クレジット

このプロジェクトは、Next.js MCP テンプレートに基づいています。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Vercel にデプロイ可能なモデル コンテキスト プロトコル サーバーとして機能するシンプルな Nuxt アプリケーション。開発者は MCP TypeScript SDK を通じて AI ツール、プロンプト、リソースを実装できます。

  1. 使用法
    1. 設定
      1. 開発サーバー
        1. 生産
          1. Vercelで実行する場合の注意事項
            1. サンプルクライアント
              1. クレジット

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  A template for creating Model Context Protocol (MCP) servers in TypeScript, offering features like container-based dependency injection, a service-based architecture, and integration with the LLM CLI for architectural design feedback through natural language.
                  Last updated -
                  1
                  5
                  TypeScript
                • -
                  security
                  A
                  license
                  -
                  quality
                  A server that helps AI models better understand Vite/Nuxt applications, providing enhanced context awareness for development support.
                  Last updated -
                  467
                  TypeScript
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that allows management of Netlify sites, enabling users to create, list, get information about, and delete Netlify sites directly from an MCP-enabled environment.
                  Last updated -
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.
                  Last updated -
                  67
                  TypeScript
                  • Apple

                View all related MCP servers

                ID: p86z0ph6jw