笔记管理器
STDIO用于管理笔记的MCP持久化存储服务器
用于管理笔记的MCP持久化存储服务器
A Model Context Protocol (MCP) server implementation for managing notes with persistent storage.
To install notes for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install notes --client claude
python -m venv .venv # On Unix/MacOS: source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install MCP
notes/
├── __init__.py # Package initialization
├── server.py # Main server implementation
├── storage.py # Note persistence layer
├── resources.py # Resource handling (note:// URIs)
├── prompts.py # LLM prompt generation
└── tools/ # Server tools
├── __init__.py # Tools package initialization
├── list_tools.py # Tool listing functionality
└── handle_tools.py # Tool handling implementation
add-note
: Create a new notelist-all-notes
: Display all stored notesupdate-note
: Modify an existing notedelete-note
: Remove a noteStart the server:
mcp install src/notes mcp start Notes
Example operations:
# Create a note await client.call_tool("add-note", { "name": "example", "content": "This is a test note" }) # List all notes await client.call_tool("list-all-notes") # Update a note await client.call_tool("update-note", { "name": "example", "content": "Updated content" }) # Delete a note await client.call_tool("delete-note", { "name": "example" })
Notes are stored in notes_storage.json
with the following structure:
{ "note_name": { "content": "Note content", "created_at": "2025-01-12T11:28:16.721704", "modified_at": "2025-01-12T11:28:16.721704" } }
Notes can be accessed as resources using the note://
URI scheme:
note://internal/note_name
The server includes a prompt generation feature for note summarization:
To modify or extend the server:
Tests should cover:
[Add your license here]