Mcp Notes Server

io.github.bradraylucas-eng由 GitHub 账号 bradraylucas-eng 发布v1.0.0更新于 Oct 24, 2026

Tiny local MCP notes server in Python: create, list, and search notes stored in a local JSON file.

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

一个小型本地 MCP 服务器,为助手提供持久笔记本:可创建、列出和搜索保存在本机纯 JSON 文件中的笔记。

可以做什么
创建带标题和正文的笔记,并返回含 id 与时间戳的已保存记录。按最新优先列出已保存笔记,数量上限可配置。按关键词在标题和正文中进行不区分大小写的搜索。笔记保存在单个本地 JSON 文件中,采用原子写入。
适用场景
适合希望助手在会话之间记住简短文本、又不想使用数据库、云账户或网络的场景,也可作为编写自有 MCP 服务器的可读起点。
运行要求
需要本地 Python 运行环境并安装 mcp Python SDK v1.x(依赖限定 mcp<2),并在 MCP 宿主配置中以 stdio 方式启动服务器脚本。无需账户、API 密钥或网络访问。
安装前请注意
服务器会写入其所在目录下的 JSON 文件,笔记以明文形式留在磁盘上。没有删除工具,也没有身份验证;作者称其为学习或原型基础而非加固的生产服务,除原子替换文件外没有并发锁。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Notes Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-notes-server

A minimal, free and open-source Model Context Protocol (MCP) server in Python that gives any MCP-compatible AI assistant a persistent notebook: create notes, list them, and search them — stored in a plain local JSON file you own.

Built with the official mcp Python SDK (FastMCP). No database, no cloud, no accounts. Your notes never leave your machine.

Tools

ToolWhat it does
create_noteCreate a note with a title (required, ≤120 chars) and body (≤10,000 chars). Returns the saved record with id and timestamps.
list_notesList saved notes, newest first (configurable limit, 1–500).
search_notesCase-insensitive keyword search across titles and bodies.

Quick start

bash
git clone <this-repo-url>cd mcp-notes-serverpip install -r requirements.txtpython server.py

The server speaks MCP over stdio. Connect it from any MCP host — see the config examples below and in examples/.

Claude Desktop

Add to your claude_desktop_config.json (see examples/claude_desktop_config.example.json):

json
{  "mcpServers": {    "notes-server": {      "command": "python",      "args": ["/absolute/path/to/mcp-notes-server/server.py"]    }  }}

Generic MCP host

See examples/mcp-client-config.generic.json — the same stdio command/args pattern works for most hosts.

Try it

  1. Connect your MCP host and ask: "Create a note titled 'Shopping list' with milk, eggs, and coffee."
  2. Ask: "Search my notes for eggs."
  3. Open notes.json (created automatically next to server.py) to see the raw storage — it's just JSON.

How it works

  • Storage helpers load/save a single notes.json file; saves are atomic (write to temp file, then replace).
  • Every tool validates its input (title required and length-capped, body length-capped, search query required).
  • Tool functions are ordinary Python functions decorated with @mcp.tool() — the type annotations become the tool input schemas. The whole server is one readable file (~150 lines), meant to be copied and adapted.

Run the smoke test (no MCP host needed):

bash
python tests/smoke_test.py

Verified end-to-end over the real MCP protocol (stdio, official SDK v1.x) — tools listed, note created, searched, and listed: see tests/mcp_e2e_test.py and run it yourself after pip install -r requirements.txt. Note the requirements pin mcp<2: the 2.x SDK renamed FastMCP, and this code targets the v1 API.

Scope & safety

  • Local only. This server reads/writes one JSON file in its own folder. It makes no network calls and has no delete tool — by design, as a starter pattern.
  • Treat it as a learning/prototyping base, not a hardened production service: no authentication (stdio servers are launched by your host as your user), no concurrency locking beyond atomic file replacement.

Get the full pack

This free server is one of three starters in the MCP Server Starter Templates pack — the full pack adds a read-only SQLite lookup server (with a tested SQL-injection guard: SELECT-only validation) and a web-summary server skeleton, plus client configs for all three, a testing checklist, and security notes for taking MCP servers toward production.

→ MCP Server Starter Templates (and more AI agent tools: AgentProof testing kits, LLM/RAG eval kits, verified datasets for agents): bradray2.gumroad.com

Free samples of the paid kits live in the companion repo, ai-agent-tools-free-samples.

License

MIT — see LICENSE. Use it, fork it, ship it.

Copyright (c) 2026 Brad Lucas.

来源:README.md,提交 2950414

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Oct 14, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分