MCP Express Server for Netlify

Integrations

  • Provides a foundation for building the MCP server, allowing for route handling and request processing within the serverless function architecture

  • Enables deployment of the MCP server as a serverless function with custom URL routing, allowing the MCP to be hosted and accessed through Netlify's infrastructure

  • Used for configuration of redirects to ensure proper routing of MCP requests to the serverless function endpoint

Пример MCP Netlify Express

Посмотрите этот демонстрационный сайт : https://mcp-example-express.netlify.app/

О данном примере сайта

Этот сайт показывает очень простой пример разработки и запуска бессерверного MCP с использованием функций Netlify. Он включает ссылки на развернутую бессерверную функцию и пример доступа к функции с использованием настроенного URL.

Важно, из-за того, как Express обрабатывает маршруты сопоставления, убедитесь, что вы установили перенаправления netlify.toml на правильный путь. В этом примере у нас есть следующее, чтобы гарантировать, что /mcp перехватывает все запросы к этому серверу:

[[redirects]] force = true from = "/mcp" status = 200 to = "/.netlify/functions/express-mcp-server"

Быстро разверните свою собственную версию

Разверните свою собственную версию этого примера сайта, нажав кнопку «Развернуть в Netlify» ниже. Это автоматически:

  • Клонируйте копию этого примера из репозитория примеров на свой аккаунт GitHub.
  • Создайте новый проект в своей учетной записи Netlify , связанный с вашим новым репозиторием.
  • Создайте автоматизированный конвейер развертывания, чтобы отслеживать изменения в вашем репозитории.
  • Создайте и разверните свой новый сайт
  • Этот репозиторий затем можно использовать для локальной итерации с помощью netlify dev

Установите и запустите примеры локально

Вы можете клонировать весь этот репозиторий примеров, чтобы изучить этот и другие примеры, а также запустить их локально.

# 1. Clone the examples repository to your local development environment git clone git@github.com:netlify/examples # 2. Move into the project directory for this example cd examples/mcp/express-mcp # 3. Install the Netlify CLI to let you locally serve your site using Netlify's features npm i -g netlify-cli # 4. Serve your site using Netlify Dev to get local serverless functions netlify dev # 5. While the site is running locally, open a separate terminal tab to run the MCP inspector or client you desire npx @modelcontextprotocol/inspector npx mcp-remote@next http://localhost:8888/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.

Бессерверная реализация протокола контекста модели (MCP), работающая на основе функций Netlify, что позволяет разработчикам создавать и развертывать совместимые с MCP сервисы с минимальной конфигурацией.

  1. О данном примере сайта
    1. Быстро разверните свою собственную версию
      1. Установите и запустите примеры локально

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A 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 -
          3
          9
          36
          JavaScript
          Apache 2.0
        • -
          security
          -
          license
          -
          quality
          A specialized server that helps users create new Model Context Protocol (MCP) servers by providing tools and templates for scaffolding projects with various capabilities.
          Last updated -
          1
          TypeScript
        • -
          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
          -
          license
          -
          quality
          A 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 -

        View all related MCP servers

        ID: rnpmarx1h9