loading…
Search for a command to run...
loading…
A demonstration project for building and running Model Context Protocol (MCP) servers using Netlify Serverless Functions. It provides a template for deploying s
A demonstration project for building and running Model Context Protocol (MCP) servers using Netlify Serverless Functions. It provides a template for deploying serverless MCP endpoints with automated CI/CD pipelines through Netlify.
View this demo site: https://mcp-example-serverless.netlify.app/
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.
Deploy your own version of this example site, by clicking the Deploy to Netlify Button below. This will automatically:
netlify devYou can clone this entire examples repo to explore this and other examples, and to run them locally.
# 1. Clone the examples repository to your local development environment
git clone [email protected]:netlify/examples
# 2. Move into the project directory for this example
cd examples/mcp/serverless-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
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-netlify-serverless-functions": {
"command": "npx",
"args": []
}
}
}