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/
关于此示例网站
该网站展示了使用 Netlify Functions 开发和运行无服务器 MCP 的一个非常基础的示例。其中包含已部署的无服务器函数的链接,以及使用自定义 URL 访问该函数的示例。
重要的是,由于 Express 处理映射路由的方式,请确保将netlify.toml
重定向到正确的路径。在此示例中,我们执行了以下操作以确保 /mcp 捕获到该服务器的所有请求:
快速部署您自己的版本
点击下方的“部署到 Netlify”按钮,部署此示例站点的您自己的版本。这将自动执行:
- 将此示例的副本从示例仓库克隆到您自己的 GitHub 帐户
- 在您的Netlify 帐户中创建一个新项目,并链接到您的新 repo
- 创建自动部署管道来监视存储库上的更改
- 构建并部署新网站
- 然后可以使用这个 repo 在本地使用
netlify dev
进行迭代
在本地安装并运行示例
您可以克隆整个示例 repo 来探索这个示例和其他示例,并在本地运行它们。
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) 的无服务器实现,允许开发人员以最少的配置构建和部署与 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
- -security-license-qualityA 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 -1TypeScript
- -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 -