便签管理服务器

一个基于MCP协议的便签管理服务器,提供持久化存储和快速集成功能。

  • by Kowreesan98
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 Kowreesan98/mcp-server-project

使用说明

📝 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