MCP.so
Sign In
Servers

MCP example Netlify Express

@srikaran7

Overview

What is MCP example Netlify Express?

This is a basic example site for developing and running a serverless Model Context Protocol (MCP) server using Netlify Functions. It includes a deployed serverless function and demonstrates how to access it with a customized URL. It is aimed at developers learning to deploy MCP on Netlify.

How to use MCP example Netlify Express?

Deploy your own version by clicking the "Deploy to Netlify" button, which clones the repository and sets up automatic deployments. For local development, clone the examples repo, navigate to examples/mcp/express-mcp, install the Netlify CLI, run netlify dev, and then test using npx @modelcontextprotocol/inspector against http://localhost:8888/mcp. Ensure your netlify.toml redirects map /mcp to the correct function path.

Key features of MCP example Netlify Express?

  • Demonstrates serverless MCP using Netlify Functions
  • Includes Express route mapping for MCP endpoints
  • Provides a live demo site for testing
  • One‑click deploy to your own Netlify account
  • Local development with Netlify Dev
  • Works with the MCP inspector tool

Use cases of MCP example Netlify Express?

  • Learning how to deploy an MCP server on Netlify
  • Testing a serverless MCP endpoint locally
  • Understanding Express redirects for serverless functions
  • Starting point for building custom MCP integrations

FAQ from MCP example Netlify Express

How do I handle Express route mapping?

Because Express handles routes differently, you must set a netlify.toml redirect from /mcp to /.netlify/functions/express-mcp-server with force = true and status = 200.

What are the prerequisites for local development?

You need Node.js, the Netlify CLI (install with npm i -g netlify-cli), and to clone the examples repository.

Can I deploy my own version?

Yes, click the "Deploy to Netlify" button in the README to clone the example, create a Netlify project, and set up automated deployments.

Where can I see a live demo?

The demo site is hosted at https://mcp-example-express.netlify.app/.

How do I test the MCP server locally?

Run netlify dev to start a local server, then in a separate terminal run npx @modelcontextprotocol/inspector npx mcp-remote@next http://localhost:8888/mcp.

Tags

More from Developer Tools