notes
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@notes search my notes for action items from the last team meeting"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server-starter
A small, working Model Context Protocol server in TypeScript. Two tools, a resource, a prompt, and an integration test that proves the whole thing runs.
Built to be read. Every file is short, and the comments explain the decisions that are not obvious from the code, particularly around tool design, which is where most MCP servers actually go wrong.
Written alongside a full walkthrough: How to build an MCP server.
Why this exists
Most MCP examples online still use server.tool(), server.resource() and
server.prompt(). Those are deprecated in the current SDK. This repo uses
registerTool, registerResource and registerPrompt, which is what you
should be writing today.
Verified against @modelcontextprotocol/sdk@1.30.0 on Node 20+.
Related MCP server: Rememb
Quick start
git clone https://github.com/ImTaegan/mcp-server-starter
cd mcp-server-starter
npm install
npm run build
npm testnpm test spins the real server up against the real client over an in-memory
transport and exercises every tool, the resource, and the prompt. If it passes,
the server works.
Connect it to a client
Build first (npm run build), then point your client at dist/index.js.
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"notes": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-starter/dist/index.js"],
"env": { "NOTES_FILE": "/absolute/path/to/notes.json" }
}
}
}Claude Code — from anywhere:
claude mcp add notes -- node /absolute/path/to/mcp-server-starter/dist/index.jsRestart the client. You should see a notes server with two tools, and
summarise-notes as a slash command.
What is inside
Primitive | Name | Purpose |
Tool |
| Read-only keyword search, with an optional tag filter |
Tool |
| Creates a note, annotated as a write |
Resource |
| Every note as markdown, for attaching as context |
Prompt |
| A user-invoked digest, surfaced as a slash command |
Notes persist to a JSON file (NOTES_FILE, default ./notes.json) so the
example has no database and nothing to configure. src/store.ts is the only
file that touches storage; swap it for a real database without changing the
server.
The part that actually matters
A tool's description is not documentation. It is the prompt the model reads
when deciding whether to call it. Compare:
// Bad: technically accurate, useless to a model
description: "Searches notes."
// Good: says what it does, when to use it, and what comes back
description:
"Search the user's saved notes by keyword, optionally filtered to a single tag. " +
"Use this before answering any question about what the user has written down, " +
"and before adding a note, to avoid creating a duplicate. " +
"Returns matching notes ordered by relevance, most relevant first."Nearly every "the agent called the wrong tool" problem is a description
problem, not a model problem. The same applies to parameters: every field in
inputSchema carries a .describe() for the same reason.
Two other things worth copying:
Annotations.
readOnlyHintandidempotentHinttell the host how risky a call is, which is what lets it auto-approve reads and confirm writes.Never write to stdout. The stdio transport is stdout. One stray
console.logcorrupts the protocol stream. Log to stderr.
Layout
src/
index.ts stdio wiring, deliberately tiny
server.ts tools, resource, prompt
store.ts JSON persistence, swap for a real database
server.test.ts integration test over an in-memory transportLicence
MIT. Take it, strip out the notes, keep the shape.
Available Tools
2 toolsadd_noteAdd a noteA
Save a new note for the user. Call search_notes first to check whether a note on this topic already exists. Returns the id of the created note.
Inputs: body (required), title (required), tags.
search_notesSearch notesARead-onlyIdempotent
Search the user's saved notes by keyword, optionally filtered to a single tag. Use this before answering any question about what the user has written down, and before adding a note, to avoid creating a duplicate. Returns matching notes ordered by relevance, most relevant first.
Inputs: query (required), tag, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
search_notes and add_note target clearly different actions (retrieval vs. creation) on the same resource, with no overlap. The descriptions reinforce the boundary by instructing search before add to avoid duplicates.
Both tools follow a clean verb_noun snake_case pattern (search_notes, add_note). The convention is predictable and would extend naturally to future tools like update_note or delete_note.
Two tools is thin for a notes server; the set covers only creation and retrieval. It is not egregiously over- or under-scoped, but it sits at the borderline where a minimal CRUD surface would typically need a few more operations.
The surface supports search and create but has no update, delete, or get-by-id, so agents cannot edit, remove, or precisely retrieve a note. This matches the 'create+read but no update/delete' gap pattern, leaving notable but not catastrophic dead ends.
Maintenance
Related MCP Connectors
Persistent personal memory for AI assistants: search what you told it before and save new facts.
Personal context for every AI: search, read, and write back to your private Markdown library.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Persistent memory layer for AI clients: store, recall, and correct context across tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI tools like GitHub Copilot to manage and persist context using a local JSON-based memory store. Provides CLI, MCP server, and VS Code integration for storing, retrieving, and managing context entries.2-
- AlicenseAqualityBmaintenancePersistent memory for AI agents with sectioned entries (project/user/context/etc), semantic search, CLI, and per-project scope. Local JSON, zero config, no server required.185MIT
- AlicenseNot gradedqualityDmaintenanceProvides a local long-term memory layer for AI coding tools like Cursor and Claude Code, enabling cross-session, cross-tool sharing of project facts, user preferences, decisions, and workflows.11 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to search and read a local append-only personal memory vault, retrieve individual events, export context packs, and propose new entries. Proposed writes remain unverified until a human approves them through the CLI.Apache 2.0