Skip to the content.

Notes MCP server (TypeScript template)

A minimal, complete MCP server built with the official TypeScript SDK v2 (@modelcontextprotocol/server) and Zod v4 schemas.

Run

npm install
npm test          # 9 tests: in-memory client, schema validation, tsc, and a real stdio subprocess
npm run build     # compiles to dist/
npm start         # runs dist/index.js over stdio
npm run inspect   # opens the MCP Inspector against the built server

Connect

claude mcp add notes -- node /absolute/path/to/this/folder/dist/index.js

Make it yours

  1. Rename the package in package.json and the server name in createServer().
  2. Replace store.ts with your real logic (no MCP imports there).
  3. Replace the tools in server.ts. Use .describe() on every input field: descriptions are what the model reads.