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
Visit Server

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured