A minimal MCP (Model Context Protocol) server scaffold using stdio transport.
npm installnode index.jsAdd the following to your MCP client config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"empty-mcp": {
"command": "node",
"args": ["/absolute/path/to/empty-mcp/index.js"]
}
}
}Register tools on the server before it connects to the transport:
server.tool("hello", { name: z.string() }, async ({ name }) => ({
content: [{ type: "text", text: `Hello, ${name}!` }]
}));