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.
Build and test
Section titled “Build and test”Needs Node 20 or later (the MCP Inspector needs Node 22.19 or later).
npm installnpm run buildnpm run smoke # automated check: connects, lists tools, validates them (prints PASS)npm run inspect # interactive MCP InspectorThe 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.
Configuration
Section titled “Configuration”| Env var | Default | Purpose |
|---|---|---|
NOTES_FILE |
~/.notes-mcp.json |
Where notes are stored |
Connect
Section titled “Connect”Cursor (.cursor/mcp.json):
{ "mcpServers": { "notes": { "type": "stdio", "command": "node", "args": ["C:/path/to/typescript-server/build/index.js"] } } }Claude Code:
claude mcp add notes -- node C:/path/to/typescript-server/build/index.jsFor more clients, see Connect to clients.