Skip to content

notes-mcp-server (TypeScript template)

Download this template: typescript-server.zip

A stdio MCP server with two tools (search_notes, add_note), one resource (notes://all), and one prompt (weekly-review). Notes are stored in a JSON file.

It uses serveStdio(createServer), so it serves both 2026-07-28 clients and legacy clients that open with initialize. createServer() and the note helpers are exported, and importing the file doesn’t start a server, so you can unit-test them.

Needs Node 20 or later (the MCP Inspector needs Node 22.19 or later).

Terminal window
npm install
npm run build
npm run smoke # automated check: connects, lists tools, validates them (prints PASS)
npm run inspect # interactive MCP Inspector

The template pins TypeScript 5 (^5.9.0). A plain npm install -D typescript now installs TypeScript 7, which this template hasn’t been tested with.

Env var Default Purpose
NOTES_FILE ~/.notes-mcp.json Where notes are stored

Cursor (.cursor/mcp.json):

{ "mcpServers": { "notes": { "type": "stdio", "command": "node", "args": ["C:/path/to/typescript-server/build/index.js"] } } }

Claude Code:

Terminal window
claude mcp add notes -- node C:/path/to/typescript-server/build/index.js

For more clients, see Connect to clients.