
Datanotes
io.github.davidefornelli由 GitHub 账号 davidefornelli 发布v3.0.0更新于 Oct 24, 2026
The engine of your second brain: Markdown notes as database tables, for you and your agents.
概览
把 Markdown 笔记文件夹变成带类型校验的数据表,让助手通过 MCP 查询、写入并撤销更改。
- 可以做什么
- 在笔记文件夹上创建并描述数据表,支持带类型的列、链接、唯一值和约束
- 按条件筛选查询行,把笔记当作表记录读取
- 插入和更新行,每次写入都按表结构校验
- 通过日志撤销更改,日志记录每次写入的智能体、会话和令牌
- 从固定版本并需确认的 git 仓库安装额外的表和 MCP 工具
- 适用场景
- 适合以 Markdown 文件保存笔记、并希望助手把笔记当作结构化记录读写(带校验和撤销)而不是直接改文件的场景。适用于个人或小团队的笔记文件夹,不适合大型分析数据集或大量并发写入。
- 运行要求
- 需要 Node.js 22 或更高版本(Windows 上需 Node.js 24.16 或更高,或 26.1 或更高)。通过 npm 包 datanotes 在本地以 stdio 运行,并在命令行传入数据库文件夹路径。未声明需要账号、API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Datanotes,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Datanotes
Datanotes is the open-source database engine for Markdown: it runs a folder of notes as typed, validated tables that your programs and AI agents query, write and undo over MCP or HTTP, while every row stays a plain file you own.
[npm version] [CI] [License: Apache-2.0]
Documentation: datanotes.dev
Why Datanotes
- Agents can't write garbage. Every write is checked against its table: types, links, unique values and CHECK constraints. A refused write changes nothing. Its answer says which value broke which rule and how to fix it.
- Every change can be undone. The engine journals every write it makes. It records who made it: the agent, its session and its token.
undo_migrationtakes any change back. - It's still just Markdown. A row is a note, or a section of a pack note, and its front matter keys are the columns. Read it, edit it, grep it or commit it to Git. The engine reads your hand edits and checks them too.
- Extensions. Install tables and MCP tools from a git repository, pinned and confirmed (
datanotes extension install). - Local first. Datanotes is Apache-2.0 and runs on your machine. Nothing leaves it unless you turn that feature on.
When not to use it
Datanotes keeps every row as a file, so it isn't a replacement for SQLite or Postgres. Choose a classic database for:
- Large analytical datasets
- High write throughput
- Many concurrent writers on one folder
Datanotes is comfortable at 10,000 notes. At 50,000 notes, the engine takes about 15 seconds for its first start, and 2 to 3 seconds to restart.
Quick start
You need Node.js 22 or newer. On Windows, use Node.js 24.16 or newer, or 26.1 or newer.
Start the engine on a folder, which becomes your database. It can be empty, or hold notes already:
Run Datanotes on your notes walks you through your first table.
Connect your agents
Agents reach the engine through its Model Context Protocol (MCP) server, datanotes mcp. It uses the engine that runs on the folder, or starts one. Every client runs the same command:
Claude Code
Claude Desktop
Add the server to claude_desktop_config.json:
Cursor
Add the server to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json:
VS Code
Add the server to .vscode/mcp.json in your workspace:
Codex
Add the server to ~/.codex/config.toml:
Windows
On Windows, clients start npx through cmd /c. For Claude Code, outside Windows Subsystem for Linux (WSL):
In a JSON file, the command is cmd and the backslashes are escaped:
Connect your agents covers HTTP transport and named tokens.
Use it from TypeScript
Install the package with npm install datanotes. This script finds the engine on your folder, creates a table and queries it:
Each film is now a note, main/public/film/Nosferatu.md, with the values in its front matter. The JavaScript client page covers the rest of the client.
Learn more
License
Apache License 2.0: see LICENSE and NOTICE. Copyright 2026 Davide Fornelli.
来源:README.md,提交 455f00f
工具
0版本历史
1- v3.0.0最新Oct 12, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分