Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

peppa-mcp-server-on-lambda

MCP.Pizza Chef: aal80

Peppa MCP Server on Lambda is a serverless MCP server implementation that runs natively on AWS Lambda and Amazon API Gateway without requiring extra bridging components or custom transports. Leveraging the Streamable HTTP transport introduced in MCP v2025-03-26, it offers a simple, scalable architecture for deploying MCP servers in a fully managed, serverless environment. It requires AWS CLI and Terraform for setup and deployment, enabling easy bootstrapping and environment configuration for real-time model context protocol interactions.

Use This MCP server To

Deploy MCP serverless backend on AWS Lambda Serve MCP protocol requests via Amazon API Gateway Implement scalable MCP server without managing infrastructure Quickly bootstrap MCP server environment with Terraform Integrate MCP server with serverless cloud workflows Host MCP server with minimal operational overhead

README

Peppa MCP Server on Lambda

Check out the Building Serverless MCP Servers and What Does Peppa Pig Have To Do With It blog for the full story.

--

A Peppa MCP Server running natively on AWS Lambda and Amazon API Gateway without any extra bridging components or custom transports. This is now possible thanks to the Streamable HTTP transport introduced in v2025-03-26.

Architecture is as simple as it gets:

Prereqs

  • AWS CLI
  • Terraform

Instructions

Install dependencies:

cd src
npm install
cd ..

Bootstrap server and set env var with MCP Server endpoint:

cd terraform
terraform init
terraform plan
terraform apply
export PEPPA_MCP_SERVER_ENDPOINT=$(terraform output --raw endpoint_url) 
cd ..

Note: It might take a few seconds for API Gateway endpoint to become operational.

Run client:

node src/client.js

Observe the response:

> node client.js
listResources response:  {
  resources: [
    {
      uri: 'peppa://timeslots',
      name: 'timeslots',
      description: 'Use this resource to get all open timeslots for ordering tickets     to the Peppa Pig Theme Park.',
      mimeType: 'text/plain'
    }
  ]
}
readResource response:  {
  contents: [
    {
      uri: 'peppa://timeslots',
      mimeType: 'text/plain',
      text: 'Available timeslots are: April 19th 2025, April 20th 2025, April 21st 2025'
    }
  ]
}
listTools response:  {
  tools: [
    {
      name: 'order-tickets',
      description: 'Use this tool to order tickets to the Peppa Pig Park.     The tool expects two parameters - timeslot and quantity.     The timeslot should be a stringified date.     The quantity should be a number.         Example:     order-tickets(timeslot: "April 19, 2025", quantity: 3)         The tool will return a text message with the order number.     ',
      inputSchema: [Object]
    }
  ]
}
callTool response:  {
  content: [
    {
      type: 'text',
      text: "You've ordered 3 tickets for April 19th, 2025.         Your order number is OINK-1234."
    }
  ]
}

Learn about mcp

Intro

Protocol specification

peppa-mcp-server-on-lambda FAQ

How do I deploy the Peppa MCP Server on AWS Lambda?
Use the provided Terraform scripts to initialize, plan, and apply the infrastructure, then set the MCP server endpoint environment variable.
What transport protocol does Peppa MCP Server on Lambda use?
It uses the Streamable HTTP transport introduced in MCP v2025-03-26 for native serverless compatibility.
Are there any prerequisites for running this MCP server?
Yes, you need AWS CLI and Terraform installed to deploy and manage the server.
Does this MCP server require custom bridging components?
No, it runs natively on AWS Lambda and API Gateway without extra bridging or custom transports.
How do I install dependencies for the Peppa MCP Server?
Navigate to the src directory and run 'npm install' to install necessary dependencies.
Can I use this MCP server for scalable real-time model context interactions?
Yes, its serverless architecture on AWS Lambda supports scalable real-time MCP interactions.
How long does it take for the API Gateway endpoint to become operational?
It might take a few seconds after deployment for the API Gateway endpoint to become fully operational.