AI Skill Hub 推荐使用:开源MCP工具:本地优先markdown笔记 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
基于MCP的本地优先markdown笔记工具,支持16个工具和2个资源,提供高效的笔记管理和协作功能。
开源MCP工具:本地优先markdown笔记 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
基于MCP的本地优先markdown笔记工具,支持16个工具和2个资源,提供高效的笔记管理和协作功能。
开源MCP工具:本地优先markdown笔记 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/mi4uu/brain.md
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"--mcp-------markdown--": {
"command": "npx",
"args": ["-y", "brain.md"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 开源MCP工具:本地优先markdown笔记 执行以下任务... Claude: [自动调用 开源MCP工具:本地优先markdown笔记 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"__mcp_______markdown__": {
"command": "npx",
"args": ["-y", "brain.md"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<img src="web/public/brainmdlogo.png" alt="brain.md" width="120" />
```sh
One line. No clone, no Bun, no Node — the installer detects your OS + arch, downloads the matching prebuilt binary from the latest GitHub release, drops it in ~/.local/bin (or %USERPROFILE%\.brain.md\bin on Windows), and verifies it runs.
Every release ships a single-file executable per platform with the web UI embedded inside it. No Bun runtime, no Node.js, no git clone, no bun install — just download, mark executable, run.
Grab the file for your machine from the latest release: 👉 github.com/mi4uu/brain.md/releases/latest
| Platform | Architecture | Asset |
|---|---|---|
| 🍎 macOS — Apple Silicon | arm64 | [brain-md-darwin-arm64](https://github.com/mi4uu/brain.md/releases/latest/download/brain-md-darwin-arm64) |
| 🍎 macOS — Intel | x64 | [brain-md-darwin-x64](https://github.com/mi4uu/brain.md/releases/latest/download/brain-md-darwin-x64) |
| 🐧 Linux | x64 | [brain-md-linux-x64](https://github.com/mi4uu/brain.md/releases/latest/download/brain-md-linux-x64) |
| 🐧 Linux | arm64 | [brain-md-linux-arm64](https://github.com/mi4uu/brain.md/releases/latest/download/brain-md-linux-arm64) |
| 🪟 Windows | x64 | [brain-md-windows-x64.exe](https://github.com/mi4uu/brain.md/releases/latest/download/brain-md-windows-x64.exe) |
```sh
sudo mv brainmd /usr/local/bin/brainmd brainmd --help # see all flags brainmd --port 4000 # custom port brainmd --vault-dir ~/notes/my-vault # custom vault location
#### One-liner — Windows (PowerShell)
powershell iwr https://github.com/mi4uu/brain.md/releases/latest/download/brain-md-windows-x64.exe ` -OutFile brainmd.exe .\brainmd.exe # → serves on http://localhost:3000 .\brainmd.exe --help # all flags ```
First run: brain.md creates an empty vault at the XDG default ($HOME/.local/share/brain.md/vaulton macOS/Linux, the equivalent on Windows) and serves the editor at <http://localhost:3000>. Want to try the demo vault first? Downloadexample/vault/and pass it withbrain --vault-dir ./vault.
Untagged commits also produce binaries — they live as build artifacts on the Actions page with 30-day retention.
git clone https://github.com/mi4uu/brain.md.git
cd brain.md
bun install
bun run start # runs the production server on :3000
For development:
bun run dev:server # backend on :3000
bun run dev:web # vite on :5173 (with /api proxy)
If you run bun run start from a fresh source checkout (no compiled binary, no web/dist), the server downloads the matching web bundle from the GitHub release into $XDG_CACHE_HOME/brain.md/web/<version>/ on first request and serves from there. To always work offline, run bun --cwd web run build once.
Requires Bun ≥ 1.3. brain.md uses Bun.password (built-in argon2id) so you don't need a native crypto build.
---
Default: no auth. Set a password in Settings → Security to switch on bearer-token authentication for both the HTTP API and the MCP endpoints. Password is hashed with argon2id (Bun's built-in Bun.password, no native crypto build needed); tokens live in memory with a 24-hour TTL.

The plain-text MCP example earlier in the README assumes no auth. When you turn auth on, every request to /mcp needs an Authorization: Bearer <token> header. Most MCP clients have a field for it:
Claude Code / Cursor / Continue / any streamable-HTTP client:
{
"mcpServers": {
"brain.md": {
"type": "streamable-http",
"url": "https://brainmd.example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Claude Desktop (stdio-only — needs mcp-remote bridge):
{
"mcpServers": {
"brain.md": {
"command": "npx",
"args": [
"mcp-remote",
"https://brainmd.example.com/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN_HERE"
]
}
}
}
How to get a token. brain.md issues tokens through POST /api/auth/login. You can do it from anywhere — most useful is a quick curl:
curl -X POST https://brainmd.example.com/api/auth/login \
-H 'content-type: application/json' \
-d '{"password":"YOUR_PASSWORD"}' | jq -r .token
Paste the returned token into the headers.Authorization field above, restart the MCP client, done.
Heads-up. Tokens have a 24-hour TTL and are stored in memory only — a server restart invalidates every token. If your agent suddenly starts seeing 401 Unauthorized, get a fresh token. Long-term: pin the token on the client and let your agent re-login on 401 (most MCP clients don't do this yet — patches welcome).
If you're embedding the URL itself anywhere persistent, prefer a secret-manager / .env over hard-coding the bearer string.
Static bearer tokens are rejected by Claude.ai's Custom Connector spec (MCP authorization spec 2025-11-25 forbids ?token= in the URL and Claude.ai's UI has no field for a static Authorization header). You need full OAuth 2.1 with PKCE and Dynamic Client Registration.
brain.md ships all of it as of v0.4.0. Set a vault password in Settings → Security (this is what gates the consent screen), then in the Claude.ai Custom Connector dialog:
| Field | Value |
|---|---|
| Name | brain.md (or anything you like) |
| Remote MCP server URL | https://your-brainmd.example.com/mcp |
| OAuth Client ID | leave empty — DCR will mint one |
| OAuth Client Secret | leave empty — we use PKCE-only public clients |
Claude.ai will: 1. Hit GET /.well-known/oauth-protected-resource and discover the embedded authorization server. 2. POST /oauth/register to obtain a client_id (no human input). 3. Redirect you to GET /oauth/authorize?... where brain.md renders the consent page. Type your vault password and click Allow. 4. Redirect back with ?code=..., exchange at /oauth/token with PKCE verifier, get an access token + refresh token. 5. Use the access token for /mcp calls. Tokens are audience-bound (RFC 8707) — a token issued for brain.md cannot be used elsewhere.
Scopes advertised: vault:read, vault:write. Per-folder permissions (set in the web UI) still apply on top — scope grants the surface, folder-perms grant the path. The narrower of the two always wins.
Same flow works with any spec-compliant MCP client: Cursor, ChatGPT Apps, future Anthropic clients, etc. Claude Code / Claude Desktop have shipped before the spec stabilised so they still want a static bearer or the mcp-remote stdio bridge — both documented above.
---
| Obsidian | Logseq | Notion | **brain.md** | |
|---|---|---|---|---|
| License | Proprietary | AGPL-3.0 | Proprietary | **AGPL-3.0** |
| Local-first vault on disk | ✓ | ✓ | ✗ (cloud) | **✓** |
Plain .md files (no proprietary db) | ✓ | ✓ (block model) | ✗ | **✓** |
| Built-in MCP server | ✗ (3rd-party plugin) | ✗ | ✗ | **✓ — 17 tools** |
| Vector RAG built-in | ✗ (paid plugin) | ✗ | ✓ (cloud only) | **✓ — embedded, local** |
| Per-folder agent permissions | n/a | n/a | n/a | **✓** |
| Single binary, no Electron | ✗ (Electron) | ✗ (Electron) | n/a | **✓ — bun --compile** |
| Works fully offline (incl. embeddings) | ✓ (no AI) | ✓ (no AI) | ✗ | **✓ — bundled WASM ONNX** |
brain.md is not trying to replace Obsidian's plugin ecosystem or Notion's databases. It's narrower on purpose: a markdown vault designed from day one as a memory layer for AI agents over the Model Context Protocol.
---
该工具提供了一个强大的MCP工具集,支持多种工具和资源,适合开发者和团队使用,但需要进一步优化和文档化。
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
总体来看,开源MCP工具:本地优先markdown笔记 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | brain-md |
| 原始描述 | 开源MCP工具:Local-first markdown notes with a first-class MCP server. 16 tools + 2 resources。⭐13 · TypeScript |
| Topics | mcpagplai-agentsbunclaude-codeclaude-desktoptypescript |
| GitHub | https://github.com/mi4uu/brain.md |
| License | AGPL-3.0 |
| 语言 | TypeScript |
收录时间:2026-05-30 · 更新时间:2026-05-31 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端