SoloMD

io.github.zhitongblog由 GitHub 帳號 zhitongblog 發布v4.14.11更新於 Oct 24, 2026

Read and search a folder of Markdown notes: search, backlinks, tags, tasks, outlines, git history.

概覽

AI 產生的概覽

一個模型上下文協定伺服器,允許AI助手讀取、搜尋並與儲存在SoloMD儲存庫中的Markdown筆記進行互動。

可以做什麼
在指定的儲存庫內讀取和搜尋Markdown筆記,提供元數據、完整內容和結構資訊。它允許助手列出筆記、讀取單個檔案、執行子字串或正規表達式搜尋以及檢索反向連結。使用者還可以管理任務、檢視標題大綱以及存取特定筆記的AutoGit提交歷史。寫入功能包括建立、附加或回滾筆記,前提是伺服器已使用適當的寫入權限啟動。它還可以將筆記匯出為各種格式。
適用情境
當您希望AI助手能對由SoloMD管理的個人知識庫或筆記系統有深入的上下文理解時使用此伺服器。它非常適合基於個人檔案的研究、內容生成或自動化筆記管理任務。
執行需求
它作為一個本地程序運行。安裝可透過單行腳本、Cargo或手動完成。若要執行寫入操作,伺服器必須使用--allow-write旗標啟動。
安裝前請注意
寫入操作(建立、附加、回滾)預設禁用,需要明確使用--allow-write旗標啟動伺服器。請注意,如果配置為從指定位置寫入,export_note 可能會寫入工作區外部。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SoloMD,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

solomd-mcp — Model Context Protocol server for SoloMD vaults

solomd-mcp lets Claude Code, Codex CLI, Cursor, Continue, and any other MCP client read (and optionally edit) a SoloMD Markdown notes folder. Your vault becomes a first-class tool the assistant can call.

It is a standalone Rust binary. The desktop app bundles a copy (on macOS: /Applications/SoloMD.app/Contents/MacOS/solomd-mcp) but never runs it itself; it only runs when an MCP client starts it. It reports the same version as the app (solomd-mcp --version).

solomd-mcp --workspace /Users/me/Documents/Notes# stdin / stdout: JSON-RPC 2.0 (stdio transport, the default)# stderr:        human logs (use --verbose for debug)

Multiple workspaces (v4.0+)

Pass --workspace once per vault. Each value is either a bare path (alias defaults to the path's last component) or <alias>=<path>:

solomd-mcp \  --workspace work=/Users/me/Documents/Work \  --workspace home=/Users/me/Documents/Home

The first workspace is the default — tool calls without an explicit workspace argument resolve to it. Existing single---workspace clients keep working unchanged. Tools that want to target a non-default workspace pass an extra workspace argument:

jsonc
// Default (first registered) workspace:{ "name": "list_notes", "arguments": {} }
// Explicit alias:{ "name": "list_notes", "arguments": { "workspace": "home" } }
// Or by absolute path (must match a registered workspace):{ "name": "list_notes", "arguments": { "workspace": "/Users/me/Documents/Home" } }

Each workspace's AutoGit history (autogit_log, autogit_diff, autogit_rollback) is independent — the per-workspace .git repo is opened on demand for each call.

Tools exposed

ToolDescriptionGating
list_notesWalk the vault and return metadata (path, name, title, mtime, size, summary). Defaults to 100 notes, sorted newest-first.always
read_noteFull content of one note, plus parsed front matter, headings, tags, and outbound [[wikilinks]].always
searchSubstring or regex search. Uses ripgrep when on PATH, otherwise a Rust regex walk. Caps at 200 hits with 3-line context.always
get_backlinksEvery place that wikilinks the named note (case-insensitive on the file stem).always
list_tagsAggregated tag counts across the vault — body #tag plus front-matter tags:.always
get_outlineHeading outline of a single note (level 1-6, text, line).always
list_tasksEvery - [ ] / - [x] checkbox in the vault, with file, line and done state; done filters.always
autogit_logCommit history of one note from the AutoGit repo, newest first.always
autogit_diffUnified diff of one note between two AutoGit commits.always
sync_statusGitHub-sync state from .solomd/sync.json (remote, branch, encryption).always
share_urlPublic solomd.app/share URL for a note in a linked repo.always
read_agent_traceSteps of one agent run from .solomd/agent-runs/<run_id>/trace.jsonl; an unknown run id is an error.always
write_noteCreate a .md / .markdown / .txt note (missing folders inside the workspace are created). Replaces an existing note only with allow_overwrite: true.--allow-write
append_to_noteAppend text to an existing note (newline-safe).--allow-write
autogit_rollbackRestore a note's content from an AutoGit commit.--allow-write
export_noteExport a note to html / md / txt / docx. output_path may be outside the workspace (its folder must exist); an existing file is replaced only with overwrite: true.--allow-write, and listed only when the Node backend is found (below)

That is 16 tools. Read-only by default. Write tools are also offered through the MCP tools/list response so clients can show them, but invocations fail with a clear "restart with --allow-write" message until you opt in.

Every line number (get_outline, get_backlinks, read_note headings and wikilinks, list_tasks, search) is a 1-based line in the file as it sits on disk, front matter included, so the tools agree with each other and with an editor. search columns count characters, not bytes.

export_note needs Node.js and a SoloMD source checkout. It runs app/scripts/solomd-export.mjs (the same engine as solomd export) with the app's node_modules. The installed app ships neither, so the tool is only listed when node is on PATH and the script is found: via SOLOMD_EXPORT_SCRIPT=/path/to/solomd/app/scripts/solomd-export.mjs, or automatically when the binary or the working directory is inside a checkout where pnpm install has been run in app/.

Install

One-line installer (macOS / Linux)

bash
curl -fsSL https://raw.githubusercontent.com/zhitongblog/solomd/main/scripts/install-mcp.sh | bash

This downloads the right binary for your platform from the latest GitHub release and drops it into /usr/local/bin/solomd-mcp (falling back to ~/.local/bin/solomd-mcp if the system path is not writable).

Cargo

bash
cargo install --git https://github.com/zhitongblog/solomd solomd-mcp

Manual

Grab the right archive from github.com/zhitongblog/solomd/releases, extract solomd-mcp, and put it on your PATH.

Wire it up

Claude Code

Easiest route is the CLI — it writes the user-scope config (~/.claude.json) for you:

bash
claude mcp add --scope user solomd-vault -- \  solomd-mcp --workspace /Users/me/Documents/Notes

To scope the server to one project instead, drop an .mcp.json in the project root:

json
{  "mcpServers": {    "solomd-vault": {      "command": "solomd-mcp",      "args": ["--workspace", "/Users/me/Documents/Notes"]    }  }}

Multi-workspace profile (one MCP server, several vaults):

json
{  "mcpServers": {    "solomd-vaults": {      "command": "solomd-mcp",      "args": [        "--workspace", "work=/Users/me/Documents/Work",        "--workspace", "home=/Users/me/Documents/Home"      ]    }  }}

To enable writes:

json
{  "mcpServers": {    "solomd-vault": {      "command": "solomd-mcp",      "args": ["--workspace", "/Users/me/Documents/Notes", "--allow-write"]    }  }}

Codex CLI

~/.codex/config.toml:

toml
[mcp_servers.solomd-vault]command = "solomd-mcp"args = ["--workspace", "/Users/me/Documents/Notes"]

Cursor / Continue / generic

Anything that speaks MCP over stdio works. Point its command at solomd-mcp and pass --workspace <path>. The solomd CLI (scripts/install-cli.sh) can do this for you: solomd mcp install writes the entry into every AI client it finds, solomd mcp-config prints it.

Hosted clients (Streamable HTTP)

For clients that can't spawn a local binary (Smithery, Claude.ai remote MCP, ChatGPT connectors), run the HTTP transport:

bash
solomd-mcp --workspace /Users/me/Documents/Notes \  --transport http --bind 127.0.0.1:8765 --auth-token "$TOKEN"

It binds to loopback by default, so nothing outside the machine can reach it until you change --bind. With --auth-token (or SOLOMD_MCP_TOKEN) every request must send Authorization: Bearer <token>; without one the endpoint is open to anything that can reach the address.

CLI reference

solomd-mcp [OPTIONS] --workspace <ALIAS=DIR | DIR>...
  --workspace <ALIAS=DIR | DIR>                      Path to a notes folder. Required. Canonicalised.                      Repeat for multi-workspace mode. Form: `<alias>=<path>`                      or just `<path>` (alias defaults to the path's last                      component). The first workspace is the default — tool                      calls without an explicit `workspace` argument resolve                      to it (back-compat for single-workspace clients).  --allow-write       Enable write_note + append_to_note + autogit_rollback                      + export_note. Off by default.  --transport <stdio|http>                      stdio (default) or Streamable HTTP.  --bind <ADDR>       HTTP listen address (default 127.0.0.1:8765).  --auth-token <TOKEN>                      HTTP bearer token [env: SOLOMD_MCP_TOKEN].  -v, --verbose       Debug-level stderr logs.  -V, --version       Print version.  -h, --help          Print help.

Set SOLOMD_MCP_LOG=trace (or any tracing-subscriber filter expression) for finer-grained control.

Safety

  • Every input path is canonicalised and verified to live inside the workspace before any read/write. Both .. segments and absolute paths outside the workspace are rejected. The one tool that may write outside the workspace is export_note, and only with --allow-write; it never creates folders there and never replaces an existing file unless the call passes overwrite: true.
  • The watcher / index from the SoloMD desktop app is not used here — this is a stateless per-invocation server that walks the filesystem lazily.
  • list_notes reads only an 8 KB prefix of each file (enough for title + summary), so even a vault with thousands of large notes is cheap to enumerate. Full file content only loads on read_note.

Verifying

bash
# Roundtrip handshake: initialize → tools/list.{  printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"smoketest","version":"0"}}}'  printf '%s\n' '{"jsonrpc":"2.0","method":"notifications/initialized"}'  printf '%s\n' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'  sleep 1} | solomd-mcp --workspace ~/Documents/Notes

You should see 16 tools listed (15 if export_note's Node backend isn't available).

License

MIT — same as SoloMD.

來源:mcp-server/README.md,提交 8b4384a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

10
  1. v4.14.11最新Oct 9, 2026
  2. v4.14.10Oct 7, 2026
  3. v4.14.9Oct 6, 2026
  4. v4.14.8Oct 5, 2026
  5. v4.14.7Oct 3, 2026
  6. v4.14.6Oct 2, 2026
  7. v4.14.5Oct 1, 2026
  8. v4.14.4Sep 26, 2026
  9. v4.14.3Sep 25, 2026
  10. v4.14.2Sep 24, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分