MarkBox

MarkBox

A local notes app that enables AI tools to manage notes via MCP (list, get, create, update, delete) using the same SQLite database as the GUI.

Category
访问服务器

README

MarkBox

English · 中文

本机笔记箱:用 Tauri 2 + React + TypeScript + SQLite 做的单机 macOS 学习项目,并支持 stdio MCP,让 AI 工具与 GUI 读写同一数据库。

定位:教程 / 示例,不是生产级笔记套件(无同步、无端到端加密、默认未代码签名)。


中文

功能

  • 笔记列表 / 编辑 / 设置(三页)
  • SQLite 持久化(~/Library/Application Support/com.markbox.notes/markbox.db)
  • 本机 MCP:list_notes / get_note / create_note / update_note / delete_note
  • 双入口:默认 GUI;--mcp 走 MCP stdio

环境

  • macOS(主目标)
  • Node.js + npm
  • Rust(rustup stable)
  • Xcode Command Line Tools

快速开始

git clone <your-fork-or-url> markbox
cd markbox
npm install
source "$HOME/.cargo/env"   # 若 cargo 不在 PATH
npm run tauri dev

常用命令

命令 说明
npm run tauri dev 开发模式
npm test Rust 单测 + 前端小测
npm run tauri build 打出 .app / .dmg
cargo run --manifest-path src-tauri/Cargo.toml -- --mcp 开发期 MCP

MCP 配置示例

开发(仓库根为 cwd 时可用相对路径):

{
  "mcpServers": {
    "markbox": {
      "command": "cargo",
      "args": [
        "run",
        "--manifest-path",
        "src-tauri/Cargo.toml",
        "--",
        "--mcp"
      ]
    }
  }
}

打包安装到 Applications 后:

{
  "mcpServers": {
    "markbox": {
      "command": "/Applications/MarkBox.app/Contents/MacOS/markbox",
      "args": ["--mcp"]
    }
  }
}

MCP 与 GUI 是两个进程,共享 SQLite 文件;改库后请在列表点 Refresh 或切回窗口。

教程

循序文档在 docs/tutorials/:

课 主题
01–02 脚手架、架构
03–05 SQLite、CRUD UI、设置与错误
06 MCP
07 测试
08 打包
附录 签名 / 公证 / CI 概念

设计说明:docs/plans/。

标识与数据目录

  • Bundle identifier:com.markbox.notes
  • 数据库:~/Library/Application Support/com.markbox.notes/markbox.db

若你本地曾用过旧版 com.markbox.app,可手动迁移:

OLD="$HOME/Library/Application Support/com.markbox.app"
NEW="$HOME/Library/Application Support/com.markbox.notes"
mkdir -p "$NEW"
# 仅在 NEW 尚无库文件时拷贝
cp -n "$OLD/markbox.db" "$NEW/markbox.db" 2>/dev/null || true

分发说明

  • tauri build 产物默认未签名;本机可用,公开给陌生人建议 Apple Developer ID + 公证。
  • 详见 docs/tutorials/08-packaging.md 与 docs/tutorials/appendix-signing-ci.md。

License

MIT


English

What is this?

MarkBox is a learning-oriented local notes app:

  • Tauri 2 desktop shell + React / TypeScript UI
  • SQLite via Rust (NotesService)
  • stdio MCP (--mcp) sharing the same database as the GUI

It is intentionally small (no cloud sync, no full markdown editor, unsigned builds by default).

Requirements

  • macOS (primary)
  • Node.js + npm, Rust (stable), Xcode CLT

Quick start

npm install
npm run tauri dev

Scripts

Command Purpose
npm run tauri dev Dev app
npm test Unit tests
npm run tauri build macOS .app + .dmg
cargo run --manifest-path src-tauri/Cargo.toml -- --mcp MCP stdio

Data path: ~/Library/Application Support/com.markbox.notes/markbox.db
Tutorials (Chinese): docs/tutorials/

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选