Skip to main content
Glama

MCP Serverless Functions Example

by bridgpal

Netlify Examples

MCP example Netlify Serverless Functions

View this demo site: https://mcp-example-serverless.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.

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.

# 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/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
-
security - not tested
-
license - not tested
-
quality - not tested

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 developing and running serverless Model Context Protocol (MCP) using Netlify Functions, demonstrating how to deploy and access serverless functions with customized URLs.

  1. About this example site
    1. Speedily deploy your own version
      1. Install and run the examples locally

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A 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 -
          3
          9
          36
          JavaScript
          Apache 2.0
        • -
          security
          -
          license
          -
          quality
          A 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 -
          1
          TypeScript
        • A
          security
          A
          license
          A
          quality
          A 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 -
          4
          JavaScript
          MIT License
        • -
          security
          A
          license
          -
          quality
          A server that translates Model Context Protocol (MCP) tool callings to traditional HTTP API requests, allowing existing HTTP APIs to be integrated into MCP territory through configurable mappings.
          Last updated -
          Python
          Apache 2.0

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/bridgpal/mcp-test-2'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server