Skip to main content
Glama

my-mcp-server

我用来构建新工具的 MCP 服务器模板

虽然小,但我每周都会用到。

安装

pip install -r requirements.txt

Related MCP server: mcp-snippetbox

亮点

  • 三个工具:add / get / list notes

  • 包含 Claude Desktop 配置片段

  • FastMCP 风格:装饰器,零样板代码

  • 状态持久化到主目录下的一个 JSON 文件

示例

# claude_desktop_config.json
# {
#   "mcpServers": {
#     "notes-box": {"command": "python", "args": ["server.py"]}
#   }
# }
python server.py

项目结构

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   └── bug_report.md
│   ├── dependabot.yml
│   └── pull_request_template.md
├── docs/
│   ├── faq.md
│   └── usage.md
├── examples/
│   └── quickstart.md
├── tests/
│   └── test_smoke.py
├── .editorconfig
├── .gitignore
├── CONTRIBUTING.md
├── LICENSE
├── Makefile
├── SECURITY.md
├── requirements.txt
└── server.py

开发

python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python -m pytest -q

开发

# run the test suite
pytest -q   # or npm test / go test ./...

许可证

采用 MIT 许可证,请参阅 LICENSE。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables adding, retrieving, and listing notes, with state persisted to a JSON file in the home directory.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Desktop to add, get, and list notes, with state persisted to a JSON file in the home directory.
      MIT