Skip to content

Pizza MCP server ​

For this workshop we use the Open Source example Pizza MCP Agent.

DANGER

This is only relevant from if you arrive in workshop chapter 6.

This project demonstrates how to build AI agents that can interact with real-world APIs using the Model Context Protocol (MCP). It features a complete pizza ordering system with a serverless API, web interfaces, and an MCP server that enables AI agents to browse menus, place orders, and track order status.

The system consists of multiple interconnected services:

  • Pizza MCP server: MCP server enabling AI agent interactions
  • Pizza web app: Live order dashboard, showing real-time pizza orders status
  • Registration system: User registration for accessing the pizza ordering system
NameDescription
Pizza MCP serverhttps://ca-pizza-mcp-sc6u2typoxngc.graypond-9d6dd29c.eastus2.azurecontainerapps.io/sse
Pizza web apphttps://ambitious-stone-0f6b9760f.2.azurestaticapps.net/
Registration systemhttps://nice-dune-07e53ec0f.2.azurestaticapps.net/

Overview ​

This is the Pizza MCP server, exposing the Pizza API as a Model Context Protocol (MCP) server. The MCP server allows LLMs to interact with the pizza ordering process through MCP tools.

This server supports the following transport types:

  • Streamable HTTP
  • SSE (legacy, not recommended for new applications)

MCP tools ​

The Pizza MCP server provides the following tools:

Tool NameDescription
get_pizzasGet a list of all pizzas in the menu
get_pizza_by_idGet a specific pizza by its ID
get_toppingsGet a list of all toppings in the menu
get_topping_by_idGet a specific topping by its ID
get_topping_categoriesGet a list of all topping categories
get_ordersGet a list of all orders in the system
get_order_by_idGet a specific order by its ID
place_orderPlace a new order with pizzas (requires userId)
delete_order_by_idCancel an order if it has not yet been started (status must be pending, requires userId)

Test with MCP inspector ​

First, you need to start the Pizza API and Pizza MCP server locally.

  1. In a terminal window, start MCP Inspector:
    bash
    npx -y @modelcontextprotocol/inspector
  2. Ctrl+click to load the MCP Inspector web app from the URL displayed by the app (e.g. http://127.0.0.1:6274)
  3. In the MCP Inspector, set the transport type to SSE and
  4. Put https://ca-pizza-mcp-sc6u2typoxngc.graypond-9d6dd29c.eastus2.azurecontainerapps.io/sse in the URL field and click on the Connect button.
  5. In the Tools tab, select List Tools. Click on a tool and select Run Tool.

NOTE

This application also provides an SSE endpoint if you use /sse instead of /mcp in the URL field.