ship-mcp
The clean TypeScript starter for building MCP servers. Zod-validated tools, unit tests, MCP Inspector wired up, one-command dev loop. Clone it, rename two strings, ship your server.
npx degit YOURORG/ship-mcp my-server && cd my-server && npm i && npm run dev
Why this exists
Every MCP server starts with the same 90 minutes of setup: SDK wiring, stdio transport, schema validation, figuring out why console.log breaks the protocol (logs go to stderr โ already handled here), and getting the Inspector attached. This repo is that 90 minutes, done properly, once.
What's inside
src/index.ts โ server wiring: register tools, connect stdio transport. ~40 lines, no magic.
src/tools.ts โ tool logic decoupled from wiring so it's unit-testable. Two examples: echo (hello-world) and fetch_json (real async tool with error handling).
src/tools.test.ts โ Vitest tests that run without spawning the server.
npm run inspect โ opens the official MCP Inspector against your dev server.
Quickstart
npm install
npm run dev
npm test
npm run inspect
npm run build
Use it from Claude Desktop / Claude Code
{
"mcpServers": {
"my-server": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}
export const greetInput = { name: z.string() };
export async function greet({ name }: { name: string }) {
return { content: [{ type: "text" as const, text: `Hello, ${name}!` }] };
}
server.registerTool("greet", { description: "Greet someone", inputSchema: greetInput }, greet);
Want to ship a paid MCP server?
Fewer than 5% of the 11,000+ MCP servers out there make money โ not because the demand isn't there, but because the billing plumbing is genuinely annoying. Ship MCP Pro is this starter plus everything the free version deliberately leaves out:
- ๐ License-key gating โ Payhip & Gumroad license verification middleware; sell keys, server validates them
- ๐ Usage metering + per-key rate limits โ free tier / paid tier out of the box
- ๐ Streamable HTTP transport โ deploy as a remote server (Docker + Railway/Fly guides included)
- โ
CI pipeline, expanded test suite, production error handling
- ๐ฃ Launch kit โ the exact directory-submission checklist + listing templates that get servers 10x more installs
One-time $49, MIT-licensed output, free updates. โ Get Ship MCP Pro
MIT ยฉ Argo Navis