zero-mcp
by SNIKO·★ 2·Score 37
Zero MCP is a lightweight, zero-boilerplate toolkit for building fast HTTP-based MCP servers with minimal dependencies.
Overview
Zero MCP offers an alternative to the official MCP SDK by focusing on performance and simplicity. It eliminates dependency bloat by using only two packages (zod and zod-to-json-schema), provides native HTTP server performance without Express middleware overhead, and reduces boilerplate code with an API that allows instant server setup. The toolkit includes built-in observability through lifecycle hooks, production-ready CORS controls, and Zod integration for automatic JSON Schema generation.
Try asking AI
After installing, here are 3 things you can ask your AI assistant:
When to choose this
Choose Zero MCP when you need a fast, lightweight HTTP-based MCP server with minimal dependencies and want to avoid the Express-based overhead of the official SDK.
When NOT to choose this
Don't choose Zero MCP if you need full MCP specification support including stdio transports, prompts API, or authentication flows, as it only supports HTTP transport.
Tools this server exposes
1 tool extracted from the READMEadd({ a: number, b: number }) => Promise<Array<{ type: 'text', text: string }>>Simple addition tool that returns the sum of two numbers.
Note: Only one tool example ('add') was explicitly shown in the README code example. No other tools are documented, though the framework allows for creating tools via server.tool().
Comparable tools
Installation
npm install zero-mcp zodExample server implementation:
import { McpServer, z } from 'zero-mcp';
const server = new McpServer({
name: 'calculator',
version: '1.0.0',
});
server.tool({
name: 'add',
description: 'Simple addition tool.',
schema: z.object({
a: z.number().describe('First addend'),
b: z.number().describe('Second addend'),
}),
handler: async ({ a, b }) => {
return [{
type: 'text',
text: `The sum of ${a} and ${b} is ${a + b}.`,
}];
},
});
await server.start({
host: '127.0.0.1',
port: 3000,
path: '/mcp',
});
console.log('Ready on http://127.0.0.1:3000/mcp');To use with Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"zero-mcp": {
"command": "node",
"args": ["path/to/your/server.js"]
}
}
}Compare zero-mcp with
Last updated · Auto-generated from public README + GitHub signals.