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 example Netlify Express
View this demo site: https://mcp-example-express.netlify.app/
About this example site
This site shows a very a basic example of developing and running serverless MCP using Netlify Functions. It includes links to a deployed serverless function and an example of accessing the function using a customized URL.
Importantly, because of how Express handles mapping routes, ensure you set the netlify.toml
redirects to the correct path. In this example we have the following to ensure /mcp catches all of the requests to this server:
Speedily deploy your own version
Deploy your own version of this example site, by clicking the Deploy to Netlify Button below. This will automatically:
- Clone a copy of this example from the examples repo to your own GitHub account
- Create a new project in your Netlify account, linked to your new repo
- Create an automated deployment pipeline to watch for changes on your repo
- Build and deploy your new site
- This repo can then be used to iterate on locally using
netlify dev
Install and run the examples locally
You can clone this entire examples repo to explore this and other examples, and to run them locally.
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.
A basic example of a serverless Model Context Protocol (MCP) implementation using Netlify Functions, allowing developers to run MCP services without managing traditional server infrastructure.
Related MCP Servers
- -securityFlicense-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 -
- -securityFlicense-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 -
- -securityFlicense-qualityA basic example of developing and running serverless Model Context Protocol (MCP) using Netlify Functions, demonstrating how to deploy and access serverless functions with customized URLs.Last updated -
- -securityFlicense-qualityA 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.Last updated -