About callmybot-cookbook-mcp-server
A TypeScript MCP server example built with the official MCP TypeScript SDK and Express. It demonstrates a custom-container HTTP server with STDIO compatibility, session configuration, and request logging.
Key features
- 01HTTP and STDIO transports
- 02CORS headers for browser clients
- 03Smithery session configuration
- 04Request logging middleware
- 05Custom Docker container
Use cases
- 01Trying HTTP and STDIO MCP transports
- 02Hosting an MCP server in a custom container
- 03Debugging HTTP requests and responses
MCP support
Provides an MCP server over HTTP or STDIO, selectable with the `TRANSPORT` environment variable. It includes CORS support and handles session configuration passed through Smithery.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://server.smithery.ai/@callmybot/cookbook-mcp-server/mcpclaude mcp add --transport http ai-smithery-callmybot-cookbook https://server.smithery.ai/@callmybot/cookbook-mcp-server/mcp{"mcpServers":{"ai-smithery-callmybot-cookbook":{"type":"http","url":"https://server.smithery.ai/@callmybot/cookbook-mcp-server/mcp"}}}Open in Cursor{"servers":{"ai-smithery-callmybot-cookbook":{"type":"http","url":"https://server.smithery.ai/@callmybot/cookbook-mcp-server/mcp"}}}Open in VS Code{"mcpServers":{"ai-smithery-callmybot-cookbook":{"type":"http","url":"https://server.smithery.ai/@callmybot/cookbook-mcp-server/mcp"}}}{"mcpServers":{"ai-smithery-callmybot-cookbook":{"serverUrl":"https://server.smithery.ai/@callmybot/cookbook-mcp-server/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://server.smithery.ai/@callmybot/cookbook-mcp-server/mcpAuth requiredTools
Details
From the project READMETypeScript MCP Server with Custom Container
A simple TypeScript MCP server built using the official MCP TypeScript SDK, Express, and custom Docker container. This example demonstrates how you can host HTTP servers on Smithery using custom containers, with STDIO support for backwards compatibility.
See the complete guide: https://smithery.ai/docs/migrations/typescript-custom-container
Features:
- CORS: CORS headers for browser-based MCP clients
- Smithery Session Configuration: handles user's session configuration passed via Smithery (learn more)
- Request Logging Middleware: Custom middleware for debugging HTTP requests and responses
- Server Transport: Can run with both STDIO and HTTP transports using
TRANSPORTenv variable
Prerequisites
- Node.js 22 or higher
- npm package manager
Project Structure
src/index.ts- Main Express server with MCP HTTP transportpackage.json- Node.js dependencies and scriptssmithery.yaml- Smithery deployment and session configurationDockerfile- Dockerfile to host server in Smithery
Quick Start
-
Install dependencies:
npm install -
Run the development server:
HTTP Mode:
npm run devThis will start the server on port 8081.
-
Test interactively: Once your server is running in HTTP mode, you can test it interactively using the Smithery playground:
npx -y @smithery/cli playground --port 8081
-
Deploy your own version: To deploy your own MCP server:
- Connect your repository at https://smithery.ai/new
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.