This is a bare-bones reference implementation from the Smithery cookbook, built to demonstrate the TypeScript SDK with their CLI tooling. It exposes a simple character counting tool and shows you how to structure a TypeScript MCP server using streamable HTTP transport instead of stdio. Think of it as a hello world with training wheels. The real value is in the source repo, which includes migration guides for moving existing stdio servers to HTTP, examples with session configuration, and both Python and TypeScript variants. You'd clone this to see how the pieces fit together before building your own server, not to actually use the character counter itself.
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