Cupcake MCP Server
Enables searching and retrieving cupcake order records through natural language queries. Provides search functionality across order details and fetches complete order information by ID.
README
Cupcake MCP Server + Wasmer
This example shows how to run a Model Context Protocol (MCP) server for ChatGPT on Wasmer Edge.
ℹ️ MCP servers connected to ChatGPT should expose at least two tools—
searchandfetch—so ChatGPT can both discover content and then retrieve specific items.
Demo
https://mcp-chatgpt-starter.wasmer.app/sse
Add it to ChatGPT as a connector (no auth), and then just ask ChatGPT to interact with it:
How many cupcakes Alice ordered?
How it Works
All logic lives in server.py, but you can think of it in sections:
Data Section
The server loads cupcake records from a local records.json file and builds a lookup dictionary:
RECORDS = json.loads(Path(__file__).with_name("records.json").read_text())
LOOKUP = {r["id"]: r for r in RECORDS}
Models Section
We define Pydantic models to structure responses:
SearchResultandSearchResultPagefor search results.FetchResultfor full cupcake order details.
Tools Section
Two MCP tools are exposed via FastMCP:
-
search(query: str)Splits the query into tokens, performs keyword matching acrosstitle,text, andmetadata, and returns a list of matching results. -
fetch(id: str)Retrieves a single cupcake order by ID from the lookup dictionary and returns full details, including optionalurlandmetadata.
Entrypoint Section
At the bottom of server.py, the app is created and run:
app = create_server()
if __name__ == "__main__":
app.run(transport="sse")
The server uses Server-Sent Events (SSE) to communicate with ChatGPT’s MCP integration.
Running Locally
Install dependencies:
pip install -r requirements.txt
Run the server:
python server.py
Your MCP server will now be running and ready for connections from an MCP client (like ChatGPT with MCP enabled).
Example Tools in Action
-
Search tool (
search("red velvet")) Returns a list of cupcake orders that mention “red velvet.” -
Fetch tool (
fetch("42")) Returns the full details of order42, including text, metadata, and an optional URL.
Deploying to Wasmer Edge (Overview)
- Include both
server.pyandrecords.jsonin your project. - Deploy to Wasmer Edge, ensuring the entrypoint is
server.py. - Access it at:
https://<your-subdomain>.wasmer.app/sse
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.