Integrations
Provides a framework for building MCP servers, allowing for customized URL routing and request handling within the serverless function environment
Enables deployment of MCP servers as serverless functions on Netlify's infrastructure, with support for custom URL paths and automated deployment pipelines
Used for configuration of redirect rules in netlify.toml to properly route MCP requests to the serverless function
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
Netlify 関数を使用したサーバーレス モデル コンテキスト プロトコル (MCP) 実装の基本的な例。これにより、開発者は従来のサーバー インフラストラクチャを管理せずに MCP サービスを実行できます。
Related MCP Servers
- AsecurityAlicenseAqualityA beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.Last updated -3936JavaScriptApache 2.0
- -securityAlicense-qualityA 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 -JavaScriptMIT License
- -security-license-qualityA basic example of developing and running serverless Model Context Protocol (MCP) using Netlify Functions, enabling AI agents to interact with your services via a standardized API.Last updated -
- -security-license-qualityA basic example of a serverless Model Context Protocol (MCP) server implemented using Netlify Functions with Express, enabling AI agents to interact with custom capabilities.Last updated -