mothermachine

Browse / Notes and knowledge

SiYuan

Block-based local-first knowledge base whose Go kernel ships a 30-plus tool MCP server and HTTP API.

AdaptableOperable ProductDesktop app Hybrid GoTypeScript MCP server License: AGPL-3.0

SiYuan is a privacy-first personal knowledge manager with block-level references, databases, daily notes, and an SQL query layer, available as desktop, mobile, and a Docker-served kernel. The kernel exposes an HTTP API (API.md) and an in-kernel MCP server (kernel/mcp) with tools for notebooks, documents, blocks, search, SQL, attributes, assets, export, sync, and even web search. Core is free and AGPL; sync and some features are paid.

Use it when
  • you want block references and databases like Notion, stored locally, with an agent that can query them by SQL
  • you run a Docker kernel on your NAS and want daily notes written by an agent from the terminal
Gotchas
  • AGPL-3.0
  • Since v3.7.0 the Docker image needs an explicit serve subcommand
  • Official cloud sync and some features are paid; third-party S3/WebDAV sync needs PRO Features
  • Docker web UI is protected only by the access auth code unless OIDC is set

Last activity Sep 3, 2026. Fit: adaptable 2, operable 3.

Editions

Free · Free open source

closed source

closed source

For agents: JSON · Markdown

Adaptable: what is yours to change

Make it yours

Config only10 things to edit

Docker serve mode is env-driven: SIYUAN_WORKSPACE_PATH, SIYUAN_ACCESS_AUTH_CODE (or SIYUAN_ACCESS_AUTH_CODE_BYPASS), SIYUAN_LANG, PUID and PGID, and an OIDC block (SIYUAN_OIDC_ENABLED, SIYUAN_OIDC_PROVIDER, SIYUAN_OIDC_REDIRECT_URL) that replaces the lock-screen code. The README carries docker-compose, Unraid, and TrueNAS examples. Desktop settings live in the UI.

Env vars
SIYUAN_WORKSPACE_PATH SIYUAN_ACCESS_AUTH_CODE SIYUAN_ACCESS_AUTH_CODE_BYPASS SIYUAN_OIDC_ENABLED SIYUAN_OIDC_PROVIDER SIYUAN_OIDC_REDIRECT_URL SIYUAN_LANG PUID PGID
Config files
docker-compose.yml
Prompt files
none
Accounts you need
OpenAI (optional, AI writing)SiYuan account (paid sync and PRO features)S3 or WebDAV provider (PRO third-party sync)

Source

Operable: what an agent can drive

Interface

OfficialMCP serverpublished by the builderlocal

How an agent can drive an Operable Listing, in five levels: native (built for the agent as the primary interface), official (the Builder ships an agent interface), wrapped (a third party wraps the software's API), config (an agent can only drive it by editing files), gui (screen control only). An interface is official only when it is published by the same organization that ships the software. GUI-level Listings are allowed and sorted last.

Docs
github.com/siyuan-note/siyuan/tree/master/kernel/mcp
Tools
notebook document block search sql attr tag bookmark dailynote database asset file image export import history sync template inbox todo_write ref outline repo workspace system web_fetch web_search question skill

Reach

Partial coverage. 9 of 10 jobs reachable through the stated interface.

JobThrough the interfaceEvidence
Notebooks and documentsReachablekernel/mcp/tools notebook.go, document.go
Block-level read, insert, update, and moveReachableblock.go
Search and SQL queriesReachablesearch.go, sql.go
Attributes, tags, bookmarks, and referencesReachableattr.go, tag.go, bookmark.go, ref.go
Daily notes and templatesReachabledailynote.go, template.go
Databases (attribute views)Reachabledatabase.go
Assets, files, and imagesReachableasset.go, file.go, image.go
Export, import, history, and snapshotsReachableexport.go, import.go, history.go, repo.go
Sync and workspace managementReachablesync.go, workspace.go, system.go
Plugins and marketplace, AI writing UINot reachableno plugin tool in kernel/mcp/tools; AI writing is a UI feature over the OpenAI API

Code stack

Languages
GoTypeScript
Frameworks
ElectronGin
Package manager
go modules, pnpm
Database
SQLite
Hosting target
binarydocker
Built
Mixed (recorded, never ranked)

Model stack

Providers
OpenAI API (AI writing and chat)
Models
none
Keys you need
none
Prompts live in
none

Evidence and confidence

FieldWhere it was seenConfidence
formFactorREADME: desktop app from app stores and installers; Docker serves the same kernel with a web UI70%
executionModelAI writing and Q/A through OpenAI API; MCP tools include web_search and question; notes work without a model75%
operabilitykernel/mcp/tools in the repo with 30-plus tool files; tagline 'From thought to insight, with agents'90%
effortREADME Docker section names SIYUAN_* env vars90%
editionsb3log.org/siyuan/en/pricing.html: core free, PRO Features $64 lifetime, Subscription $148/year85%
activepushedAt 2026-09-03–
provenanceAGENTS.md at root; project from 202040%
reach85%

Open questions

  • Is the level native rather than official? The Builder now leads with agents but the app predates them
  • Does the MCP server require the paid tier for any tool (sync, web_search)?

Sources