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-Beispiel Netlify Express

Sehen Sie sich diese Demo-Site an : https://mcp-example-express.netlify.app/

Über diese Beispielsite

Diese Site zeigt ein sehr einfaches Beispiel für die Entwicklung und Ausführung eines serverlosen MCP mit Netlify-Funktionen. Sie enthält Links zu einer bereitgestellten serverlosen Funktion und ein Beispiel für den Zugriff auf die Funktion über eine benutzerdefinierte URL.

Wichtig: Aufgrund der Art und Weise, wie Express Mapping-Routen verarbeitet, müssen Sie die netlify.toml -Weiterleitungen auf den richtigen Pfad setzen. In diesem Beispiel verwenden wir Folgendes, um sicherzustellen, dass /mcp alle Anfragen an diesen Server abfängt:

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

Stellen Sie schnell Ihre eigene Version bereit

Stellen Sie Ihre eigene Version dieser Beispielsite bereit, indem Sie unten auf die Schaltfläche „Auf Netlify bereitstellen“ klicken. Dadurch wird automatisch Folgendes bewirkt:

  • Klonen Sie eine Kopie dieses Beispiels aus dem Beispiel-Repository in Ihr eigenes GitHub-Konto.
  • Erstellen Sie in Ihrem Netlify-Konto ein neues Projekt, das mit Ihrem neuen Repo verknüpft ist
  • Erstellen Sie eine automatisierte Bereitstellungspipeline, um auf Änderungen an Ihrem Repo zu achten
  • Erstellen und Bereitstellen Ihrer neuen Site
  • Dieses Repo kann dann verwendet werden, um lokal mit netlify dev zu iterieren

Installieren und führen Sie die Beispiele lokal aus

Sie können dieses gesamte Beispiel-Repository klonen, um dieses und andere Beispiele zu erkunden und sie lokal auszuführen.

# 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.

Eine serverlose Implementierung des Model Context Protocol (MCP), die auf Netlify Functions ausgeführt wird und es Entwicklern ermöglicht, MCP-kompatible Dienste mit minimaler Konfiguration zu erstellen und bereitzustellen.

  1. Über diese Beispielsite
    1. Stellen Sie schnell Ihre eigene Version bereit
      1. Installieren und führen Sie die Beispiele lokal aus

        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