mkdir my-mcp-server
cd my-mcp-server
npm init -y
npm install @modelcontextprotocol/sdk zod
âšī¸ This will install the MCP SDK and Zod for parameter validation.
Add the following to your package.json:
{
"type": "module"
}