使用说明
📝 AI Sticky Notes MCP Server
A simple MCP (Model Context Protocol) server for managing sticky notes with persistent storage.
✨ Features
- 📌 Add Notes - Store notes in a persistent file
- 📖 Read Notes - Retrieve all stored notes
- 🔄 Persistent Storage - Notes are saved automatically
- 🚀 FastMCP - Built with FastMCP for easy integration
🛠️ Installation
Step 1: Initialize the project
uv init .
Step 2: Add dependencies
uv add "mcp[cli]"
Step 3: Install the MCP server
uv run mcp install main.py
🚀 Usage
Run the server:
python main.py
Or using uv:
uv run python main.py
🔧 Available Tools
| Tool | Description | Parameters |
|---|---|---|
add_note |
Add a new note to the sticky notes | message: str |
read_notes |
Read all notes from the sticky notes | None |
Example Usage
# Add a note
add_note("Remember to buy groceries")
# Read all notes
read_notes()
📁 Project Structure
mcp-server-project/
├── main.py # Main server file
├── notes.txt # Notes storage file (auto-created)
├── pyproject.toml # Project configuration
└── README.md # This file
📚 Requirements
- Python 3.12+
mcp[cli]>=1.23.1
🤝 Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
📄 License
MIT License
