sample-notes-mcp-server
A lightweight MCP server for managing text notes with add, list, search, and delete operations, persisting notes as a JSON file.
README
sample-notes-mcp-server
A tiny Model Context Protocol (MCP) server for saving, listing, searching, and deleting text notes — over stdio.
It knows nothing about any particular client. It just speaks MCP over stdio, so any MCP client (Claude Desktop, Claude Code, or your own) can use it. Notes persist as a JSON file on disk.
Install
No install required — run it straight from npm with npx:
npx sample-notes-mcp-server
Or install it globally:
npm install -g sample-notes-mcp-server
sample-notes-mcp-server
Usage
sample-notes-mcp-server [notes-file]
notes-file(optional) — path to the JSON file where notes are stored. Defaults to./notes.jsonin the current working directory. The file is created on first write.
The server communicates over stdio: stdout is reserved for the MCP protocol, so all human-facing logging goes to stderr. You normally don't run it by hand — an MCP client launches it for you (see below).
Tools
| Tool | Arguments | Description |
|---|---|---|
add_note |
text: string |
Save a short text note. Returns the new note's id. |
list_notes |
(none) | List all saved notes. |
search_notes |
query: string |
Find notes containing query (case-insensitive substring match). |
delete_note |
id: number |
Delete a saved note by its id. |
Each note is stored as { id, text, createdAt }, where id auto-increments and createdAt is an ISO 8601 timestamp.
MCP client configuration
Add the server to your MCP client's config. Most clients use a JSON block like this:
{
"mcpServers": {
"notes": {
"command": "npx",
"args": ["-y", "sample-notes-mcp-server", "/absolute/path/to/notes.json"]
}
}
}
The trailing path argument is optional — omit it to use ./notes.json relative to the client's working directory. Using an absolute path is recommended so your notes land in a predictable place.
Claude Desktop
Add the block above to claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Then restart Claude Desktop.
Claude Code
claude mcp add notes -- npx -y sample-notes-mcp-server /absolute/path/to/notes.json
Development
npm install # install dependencies
npm run build # compile TypeScript to dist/
npm run start # run the built server
npm run smoke-test # spawn the built server via a real MCP stdio client and exercise every tool
The build uses a two-config split: tsconfig.json drives the editor and typecheck (and covers the smoke test), while tsconfig.build.json excludes the smoke test so it never ships in dist/.
License
MIT — see LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.