1
Add it to Claude Code
claude mcp add -e "SIYUAN_TOKEN=${SIYUAN_TOKEN}" siyuan-note -- npx -y @fromsko/siyuan-mcp-serverRequired:
SIYUAN_TOKENEnvironment Variables
Set these before running SiYuan Note.
VariableDescriptionRequired
SIYUAN_TOKENSiYuan Note API token for authenticationYesAvailable Tools (6)
Once configured, SiYuan Note gives your AI agent access to:
notebook.*Manage notebooks including creation, deletion, and renaming.namefiletree.*Perform document operations such as creating, editing, and deleting files.notebookpathmarkdownblock.*Execute block-level operations including inserting, updating, and deleting content blocks.blockIddatasearch.*Perform full-text searches and SQL queries.querymethodtemplate.*Create and render templates.templateIdsql.*Execute complex database queries.sqlTry It Out
After setup, try these prompts with your AI agent:
→Create a new notebook named 'AI Research' in my SiYuan Note.
→Search for all notes containing 'machine learning' and summarize the findings.
→Create a new document in the 'Daily' notebook with the title 'Meeting Notes' and add a summary of today's tasks.
→Run a SQL query to find all blocks tagged with #todo.
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Node.js 18+ with npm/npx installed
- Docker installed and running
SIYUAN_TOKEN— SiYuan Note API token for authentication
Alternative installation methods
pnpm
pnpm add -g @fromsko/siyuan-mcp-servernpx
npx @fromsko/siyuan-mcp-serverDocker
docker pull fromsko/siyuan-mcp-serverConare · memory for coding agents
Keep this setup from going cold
Save the docs, env vars, and workflow around SiYuan Note in Conare so Claude Code, Codex, and Cursor remember it next time.
Remember this setup$npx conare@latest