SiYuan Sisyphus MCP

SiYuan Sisyphus MCP

Enables AI agents to safely read, search, edit, and organize SiYuan notes, with git-like document timeline and notebook-level permissions.

Category
访问服务器

README

SiYuan Sisyphus MCP & CLI

<p align="left"> <a href="https://www.npmjs.com/package/siyuan-sisyphus"> <img src="https://img.shields.io/npm/v/siyuan-sisyphus?style=flat-square&color=%23cb3837" alt="npm version"> </a> <a href="https://github.com/yangtaihong59/siyuan-plugins-mcp-sisyphus/blob/main/LICENSE"> <img src="https://img.shields.io/github/license/yangtaihong59/siyuan-plugins-mcp-sisyphus?style=flat-square&color=%23007ec6" alt="license"> </a> <a href="https://yangtaihong59.github.io/siyuan-plugins-mcp-sisyphus/"> <img src="https://img.shields.io/badge/docs-VitePress-646cff?style=flat-square&logo=vitepress" alt="Documentation"> </a> <a href="https://github.com/yangtaihong59/siyuan-plugins-mcp-sisyphus/releases"> <img src="https://img.shields.io/github/v/release/yangtaihong59/siyuan-plugins-mcp-sisyphus?style=flat-square&color=%23007ec6" alt="GitHub release"> </a> </p>

<p align="left"> <a href="https://github.com/yangtaihong59/siyuan-plugins-mcp-sisyphus/blob/main/README.md">English</a> | <a href="https://github.com/yangtaihong59/siyuan-plugins-mcp-sisyphus/blob/main/README_zh_CN.md">中文</a> | <a href="https://yangtaihong59.github.io/siyuan-plugins-mcp-sisyphus/">Documentation</a> </p>

Latest: v0.4.11 — Adds sponsor acknowledgements to thank recent supporters. Document Timeline can still be disabled cleanly from settings.

<p align="center"> <img src="docs/archive/timeline.png" alt="Document Timeline" width="720"> </p> <p align="center"><em>Document Timeline: named snapshots, visual diff, and rollback for SiYuan notes.</em></p>

What It Is

SiYuan Sisyphus lets AI agents safely read, search, edit, and organize your SiYuan workspace.

It ships as both a SiYuan plugin and a standalone CLI:

  • MCP plugin: connect SiYuan to Claude Desktop, Claude Code, Codex, Cursor, Cherry Studio, Cline, and other MCP-capable clients.
  • CLI siyuan-sisyphus: let agents, terminals, and scripts call SiYuan directly through short commands.

Both entry points use the same permission model and the same underlying SiYuan operations.

Why It Is Different

  • Git-like document timeline: create named timeline nodes for a document, compare historical snapshots with the current state, and roll back when needed.
  • AI-friendly note access: the fs tool lets agents work with human-readable paths such as /Notebook/Project/Note, hiding block IDs and document-tree details when they are not needed.
  • MCP and CLI together: use MCP for multi-step agent workflows, or CLI for lightweight terminal and script automation.
  • Notebook-level safety: give each notebook its own access level: none, r, rw, or rwd.
  • Low-context tool design: 100+ SiYuan capabilities are grouped into 12 action-routed tools, with detailed help available only when the agent asks for it.
  • Practical connection setup: the plugin settings page provides copy-ready connection snippets for common AI clients and deployment styles.

Git-Like Document Timeline

The timeline feature gives ordinary SiYuan documents a source-control-style safety layer:

  • create named timeline nodes for the current document;
  • compare a historical snapshot with the current document;
  • switch between unified diff and split diff;
  • use a minimap-style change navigator and collapse unchanged blocks;
  • roll back the whole document, or restore supported parsed blocks individually.

This is a document-focused timeline built on SiYuan snapshots. It is intentionally not a full Git replacement or a complete source-control workflow.

MCP And CLI Entry Points

Use MCP when an AI client should discover tools and combine them across a longer task. This is the best fit for agent workflows that need to search, read, edit, inspect databases, and verify results.

Use CLI when a terminal command is enough. It avoids long tool schemas in the model context and works well for scripts, automation, and small one-shot tasks.

npm i -g siyuan-sisyphus
siyuan-sisyphus init
siyuan notebook list

Safety Model

SiYuan Sisyphus is designed around explicit user control:

  • each notebook can be read-only, writable, deletable, or hidden from AI;
  • dangerous actions such as delete, move, replace, and asset upload are treated separately;
  • MCP and CLI share the same core behavior, so switching entry points does not create a second permission model;
  • remote and Docker use cases go through the SiYuan HTTP API instead of assuming direct access to your local workspace files.

Quick Start

  1. Install the plugin from the SiYuan marketplace, or follow the source installation guide.
  2. Open Plugin -> SiYuan Sisyphus MCP & CLI -> Settings.
  3. Choose MCP or CLI in the connection page.
  4. Copy the generated client configuration, or initialize the CLI with siyuan-sisyphus init.
  5. Verify with a read-only task such as listing notebooks or reading the SiYuan version.

For full setup steps, use the documentation links below.

Read The Docs

Support

If you find this project helpful, please consider supporting it! Your support is what keeps me motivated to maintain and improve it.

Sponsor Thanks

Thanks to undefined, Fngd Z, and all other kind supporters for sponsoring this project.

<p align="left"> <img src="docs/archive/thank.jpeg" alt="Support QR code" width="280"> </p>

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

官方
精选