MCPの例 Netlify Express
このデモサイトをご覧ください: https://mcp-example-express.netlify.app/
このサンプルサイトについて
このサイトでは、Netlify Functions を用いたサーバーレス MCP の開発と実行の非常に基本的な例を紹介しています。デプロイ済みのサーバーレス関数へのリンクと、カスタマイズされた URL を使用して関数にアクセスする例も含まれています。
Expressがマッピングルートを処理する方法を考慮すると、 netlify.toml
リダイレクトが正しいパスに設定されていることを確認することが重要です。この例では、/mcpがこのサーバーへのすべてのリクエストをキャッチするように、以下の設定を行っています。
独自のバージョンを迅速に展開
以下の「Netlifyにデプロイ」ボタンをクリックして、このサンプルサイトの独自バージョンをデプロイしてください。これにより、以下の処理が自動的に実行されます。
- この例のコピーをサンプルリポジトリから自分のGitHubアカウントにクローンします。
- Netlifyアカウントで新しいプロジェクトを作成し、新しいリポジトリにリンクします。
- リポジトリの変更を監視するための自動デプロイメント パイプラインを作成する
- 新しいサイトを構築して展開する
- このリポジトリは、
netlify dev
を使用してローカルで反復処理するために使用できます。
ローカルにサンプルをインストールして実行する
この例リポジトリ全体をクローンして、この例や他の例を調べ、ローカルで実行することができます。
This server cannot be installed
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.
Netlify Functions を使用してサーバーレス モデル コンテキスト プロトコル (MCP) を開発および実行する基本的な例です。これにより、AI エージェントが標準化された API を介してサービスと対話できるようになります。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol (MCP) server implementation for the OpenLedger API. This server provides structured context to AI models according to the MCP specification.Last updated -8TypeScriptApache 2.0
- AsecurityAlicenseAqualityA 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 -4JavaScriptMIT License
- AsecurityAlicenseAqualityA foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.Last updated -19TypeScriptMIT License
- -securityAlicense-qualityA template repository for building Model Context Protocol (MCP) servers that enables developers to create interactive AI agents with real-time bidirectional communication capabilities through WebSocket and SSE endpoints.Last updated -TypeScriptMIT License