moneta-notes-mcp

moneta-notes-mcp

MCP server exposing fast full-text and semantic search over an Obsidian vault, plus safe structured note read and write access for Claude.

Category
访问服务器

README

Moneta Notes (mnotes)

A personal notes system built around an Obsidian vault, providing fast full-text and semantic search plus safe, structured note read/write access for Claude via MCP.

Three components, one shared core library:

  1. Indexing Subsystem — a background daemon that keeps a SQLite index (FTS5 + sqlite-vec) in sync with the vault on disk.
  2. CLI Tools — terminal commands for manual/debug search and note access, used directly and from NeoVim.
  3. MCP Server — exposes search, read, and write capabilities to Claude Code / Claude Desktop.

The CLI and MCP server are thin wrappers around one shared core library. Neither implements search, hashing, or file I/O logic itself — that guarantees the two surfaces can never drift out of sync.

Runs on macOS only (Apple Silicon), on either a personal or work machine, never both at once. Each machine gets its own vault, its own index, and its own config.

This file is a maintainer-facing overview — architecture, tech stack, dev conventions. Detailed, binding functional specs live in docs/specs/ and are the actual source of truth for what this project does; if anything here conflicts with a spec, the spec wins.


Name

Moneta was an epithet of the Roman goddess Juno — Juno Moneta, "Juno who warns/reminds," from the Latin verb monere (to remind, to warn, to advise). Her temple on the Capitoline Hill also housed Rome's mint, which is why moneta is the root of "money" and "mint" in English and the Romance languages. The reminding/advising sense is the one that gave this project its name.


Documentation

Guide Covers
Installation Prerequisites, running scripts/install.sh, what it creates, verifying the install
Configuration Every config.toml option: what it does, its default
Usage The full mnotes CLI command reference plus the MCP tool surface
Process Management Starting/stopping/restarting the indexing daemon, log locations, troubleshooting
Uninstallation Running scripts/uninstall.sh, what it removes, what it leaves alone

Prerequisites

Runs on macOS only (Apple Silicon). Required: Node.js, pnpm. Strongly recommended: ripgrep, fswatch, Xcode Command Line Tools. Optional: the Claude Code CLI, for automatic MCP registration. See Installation for what each is for and what happens if it's missing.


License & Contributing

Licensed under Apache-2.0. Contributions are welcome — see CONTRIBUTING.md for signed-commit and DCO sign-off requirements, and Architecture § Development for running tests/lint and what the Husky hooks enforce.


Specs

Spec Covers
S001 — Data Model SQLite schema: notes, FTS5, chunks/vectors, tags, links, index queue, migrations
S002 — Search Fulltext/semantic/hybrid ranking, RRF merge, chunk collapse
S003 — Notes Note CRUD, hashing, frontmatter/metadata, the id field, rename (incl. link cascade), backlinks
S004 — Grep & Tags Ripgrep wrapper, tag extraction and listing
S005 — Indexing Daemon fswatch loop, embedding pipeline, queue/retry, daemon↔CLI IPC
S006 — CLI mnotes command surface and output formats
S007 — MCP Server Tool schemas, transport, error mapping
S008 — Logging Logger, rotation, audit trail
S009 — Config & Install config.toml schema, install/uninstall, launchd
S010 — Shared Utilities Title↔path conversion, line counting, code-region stripping
S011 — Links Wikilink extraction, backlinks, rename link-cascade, broken-link detection

Specs are numbered (S001, S002, ...) and named with a short kebab-case topic. A spec may amend an earlier one (noted at the top of the file) as later design work surfaces a gap — e.g. S004 amends S001's tags table collation, S005 amends S001 with the index_queue table.

Not yet speced: MCP prompts (weekly review automation, note triage, stale/orphan note detection, weekly note scaffolding — candidates named below, design deferred to a future spec once the core tool set is built and in use).


Architecture

Three components share one core/ library — cli/ and mcp/ are thin wrappers that do their own argument parsing / protocol plumbing and then call the same functions underneath, so the two surfaces can never drift out of sync. Plain JS, no build step.

See Architecture for the full directory layout and tech stack table.


Note Versioning

Version-controlling the notes vault (as distinct from this code repository) is out of scope for mnotes itself, but strongly recommended — note_write/note_edit's write-safety guards are preventive, not a substitute for being able to recover a prior version of a note. See Note Versioning for a recommended, low-effort setup.

Status

Fully speced (see docs/specs/): data model, search, notes, grep/tags, indexing daemon, CLI, MCP server, logging, config & install.

Not yet speced: MCP prompts (weekly review automation, note triage, stale note detection, weekly note scaffolding, orphan note identification) — candidates identified, design deferred until the core tool set above is built and in use.

Not yet implemented: everything — specs are complete, implementation hasn't started.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选