Skip to main content
Glama
README.md
# mcp-notes

[![CI](https://github.com/forjoa/mcp-notes/actions/workflows/ci.yml/badge.svg)](https://github.com/forjoa/mcp-notes/actions/workflows/ci.yml)

A [Model Context Protocol](https://modelcontextprotocol.io) server that gives AI assistants (Claude Desktop, Claude
Code, any MCP client) a **persistent, searchable notebook**. Zero config: notes live in `~/.mcp-notes/notes.json`.

## Tools

| Tool | Hint | |
| --- | --- | --- |
| `add_note` | | Save a note with optional tags |
| `search_notes` | read-only | Ranked search over title (×3), tags (×2) and body, optional tag filter; empty query = newest |
| `read_note` | read-only | Full note by id |
| `update_note` | | Change title, body or tags |
| `delete_note` | destructive | Delete by id (clients can ask for confirmation) |

Inputs are validated with zod; errors come back as tool errors the model can read, not crashes.
Writes go to a temp file and are renamed into place, so a crash never leaves a half-written notebook.

## Use it

```bash
git clone https://github.com/forjoa/mcp-notes && cd mcp-notes && npm install
claude mcp add notes -- npx tsx /absolute/path/to/mcp-notes/src/index.ts
```

Claude Desktop (`claude_desktop_config.json`):

```json
{ "mcpServers": { "notes": { "command": "npx", "args": ["tsx", "/absolute/path/to/mcp-notes/src/index.ts"] } } }
```

Set `MCP_NOTES_FILE` to keep the notebook somewhere else.

## Tests

The suite talks to the real server through the SDK's in-memory transport, exactly as a client would
(`listTools`, `callTool`), against a temporary notebook file.

TypeScript · `@modelcontextprotocol/sdk` · zod · Vitest. MIT.