This is the hello world example from Smithery's official cookbook, built with FastMCP in Python. It exposes a single greeting tool to demonstrate the basics of creating an MCP server. You'd use this as a starting point to understand the FastMCP framework structure before building something real. The source repo includes migration guides for moving from stdio to HTTP transport and examples of session configuration. If you're learning to build MCP servers in Python or want a minimal reference implementation to copy from, this is the canonical first step. The actual server does nothing useful beyond proving your setup works.
The Smithery Cookbook provides code examples and guides designed to help developers build MCP (Model Context Protocol) servers and clients, offering copy-able code snippets that you can easily integrate into your own projects.
To make the most of the examples in this cookbook, you'll need:
npm install -g @smithery/cli to access the interactive playground and development toolsClone this repository:
git clone https://github.com/smithery-ai/smithery-cookbook.git
cd smithery-cookbook
Choose an example and follow its README:
cd servers/python/quickstart
# Follow the README.md instructions
Test with Smithery Playground:
npx @smithery/cli playground --port 8081
Note: Replace 8081 with the port your server is running on
Deploy to Smithery (optional): Ready to share your MCP server? Deploy it here to host it on Smithery's platform.
Build and distribute your MCP servers with Smithery:
npx @smithery/cli playgroundsmithery.ai/server/{name} for others to discover and useLooking for more resources to enhance your MCP development experience?
If you have ideas for new examples or guides, share them on the issues page.
MIT License