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 分