Express MCP Server
MCP 示例 Netlify Express
查看此演示站点: https://mcp-example-express.netlify.app/
关于此示例网站
该网站展示了使用 Netlify Functions 开发和运行无服务器 MCP 的一个非常基础的示例。其中包含已部署的无服务器函数的链接,以及使用自定义 URL 访问该函数的示例。
重要的是,由于 Express 处理映射路由的方式,请确保将netlify.toml重定向到正确的路径。在此示例中,我们执行了以下操作以确保 /mcp 捕获到该服务器的所有请求:
[[redirects]]
force = true
from = "/mcp"
status = 200
to = "/.netlify/functions/express-mcp-server"Related MCP server: MCP Express Server Example
快速部署您自己的版本
点击下方的“部署到 Netlify”按钮,部署此示例站点的您自己的版本。这将自动执行:
将此示例的副本从示例仓库克隆到您自己的 GitHub 帐户
在您的Netlify 帐户中创建一个新项目,并链接到您的新 repo
创建自动部署管道来监视存储库上的更改
构建并部署新网站
然后可以使用这个 repo 在本地使用
netlify dev进行迭代
在本地安装并运行示例
您可以克隆整个示例 repo 来探索这个示例和其他示例,并在本地运行它们。
# 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
This server cannot be deployed
Maintenance
Related MCP Connectors
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA serverless implementation of the Model Context Protocol (MCP) that runs on Netlify Functions, allowing developers to build and deploy MCP-compatible services with minimal configuration.-
- FlicenseNot gradedqualityDmaintenanceA basic example demonstrating how to develop and run a serverless Model Context Protocol (MCP) implementation using Netlify Functions and Express.-
- FlicenseNot gradedqualityDmaintenanceA basic example of developing and running serverless Model Context Protocol (MCP) using Netlify Functions, demonstrating how to deploy and access MCP functionality through customized URLs.-
- FlicenseNot gradedqualityDmaintenanceA basic serverless MCP server example running on Netlify Functions using Express. Demonstrates how to deploy and run Model Context Protocol servers in a serverless environment.-