by xgq18237
Integrate SiYuan with leading case note software like therapynotes com for easy note creation, editing, and organization
Connects to your SiYuan note-taking application to manage notes programmatically. Enables complete knowledge base operations through API integration.
SiYuan is a community-built MCP server published by xgq18237 that provides AI assistants with tools and capabilities via the Model Context Protocol. Integrate SiYuan with leading case note software like therapynotes com for easy note creation, editing, and organization It is categorized under productivity.
You can install SiYuan in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
SiYuan is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Strong directory entry: SiYuan surfaces stars and publisher context so we could sanity-check maintenance before adopting.
I recommend SiYuan for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
SiYuan has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
We evaluated SiYuan against two servers with overlapping tools; this profile had the clearer scope statement.
According to our notes, SiYuan benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
SiYuan is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
We wired SiYuan into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
SiYuan is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
According to our notes, SiYuan benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
SiYuan reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
showing 1-10 of 39
A Model Context Protocol (MCP) server for SiYuan Note, providing complete SiYuan API functionality.
# Run directly (local SiYuan)
npx -y siyuan-mcp@latest
# Set environment variables for local access
SIYUAN_HOST=127.0.0.1 SIYUAN_PORT=6806 SIYUAN_TOKEN=your-token npx -y siyuan-mcp@latest
# For remote SiYuan behind HTTPS reverse proxy
SIYUAN_URL=https://siyuan.example.com SIYUAN_TOKEN=your-token npx -y siyuan-mcp@latest
# Pull image
docker pull zhizhiqq/siyuan-mcp:latest
# Run container
docker run -d \
-e SIYUAN_HOST=127.0.0.1 \
-e SIYUAN_PORT=6806 \
-e SIYUAN_TOKEN=your-token \
--name siyuan-mcp-server \
zhizhiqq/siyuan-mcp:latest
{
"mcpServers": {
"siyuan-mcp": {
"command": "npx",
"args": ["-y", "siyuan-mcp@latest"],
"env": {
"SIYUAN_HOST": "127.0.0.1",
"SIYUAN_PORT": "6806",
"SIYUAN_TOKEN": "your-api-token-here"
}
}
}
}
{
"mcpServers": {
"siyuan-mcp": {
"command": "npx",
"args": ["-y", "siyuan-mcp@latest"],
"env": {
"SIYUAN_HOST": "127.0.0.1",
"SIYUAN_PORT": "6806",
"SIYUAN_TOKEN": "your-api-token-here"
}
}
}
}
If your SiYuan instance is behind a reverse proxy (e.g., Traefik, nginx) with HTTPS:
{
"mcpServers": {
"siyuan-mcp": {
"command": "npx",
"args": ["-y", "siyuan-mcp@latest"],
"env": {
"SIYUAN_URL": "https://siyuan.example.com",
"SIYUAN_TOKEN": "your-api-token-here"
}
}
}
}
If you use Docker to run the service, you can configure the client to connect to the Docker container:
Cursor Docker Configuration
{
"mcpServers": {
"siyuan-mcp": {
"command": "docker",
"args": ["run", "--rm", "-e", "SIYUAN_HOST=127.0.0.1", "-e", "SIYUAN_PORT=6806", "-e", "SIYUAN_TOKEN=your-api-token-here", "zhizhiqq/siyuan-mcp:latest"],
"env": {}
}
}
}
Claude Desktop Docker Configuration
{
"mcpServers": {
"siyuan-mcp": {
"command": "docker",
"args": ["run", "--rm", "-e", "SIYUAN_HOST=127.0.0.1", "-e", "SIYUAN_PORT=6806", "-e", "SIYUAN_TOKEN=your-api-token-here", "zhizhiqq/siyuan-mcp:latest"],
"env": {}
}
}
}
Note: When using Docker configuration, ensure Docker is installed and running.
| Variable | Description | Default | Required |
|---|---|---|---|
SIYUAN_URL | Full URL for SiYuan (e.g., https://siyuan.example.com). If set, overrides HOST/PORT. | - | No |
SIYUAN_HOST | SiYuan server address | 127.0.0.1 | No |
SIYUAN_PORT | SiYuan server port | 6806 | No |
SIYUAN_TOKEN | API token | - | Yes |
Note: Use SIYUAN_URL when connecting to a SiYuan instance behind an HTTPS reverse proxy. When SIYUAN_URL is set, SIYUAN_HOST and SIYUAN_PORT are ignored.
A: Please check the following steps:
A:
Settings → About → API TokenGenerate Token or copy existing token-y parameter with npx?A: The -y parameter automatically confirms package installation without prompting for user input, which is essential for MCP client configurations where interactive prompts would cause connection failures.
A: Use the SIYUAN_URL environment variable instead of SIYUAN_HOST and SIYUAN_PORT:
SIYUAN_URL=https://siyuan.example.com SIYUAN_TOKEN=your-token npx -y siyuan-mcp@latest
Notebooks are the basic organizational units of SiYuan Note, each containing multiple documents.
list_notebooks - List all notebooks, get notebook IDs and namesopen_notebook - Open specified notebook, activate workspaceclose_notebook - Close specified notebook, release resourcesrename_notebook - Rename notebook, update display namecreate_notebook - Create new notebook, support custom namesremove_notebook - Delete notebook, clean related dataget_notebook_conf - Get notebook configuration informationset_notebook_conf - Save notebook configuration, custom settingsDocuments are specific content units in notebooks, supporting hierarchical structure and path management.
create_doc - Create new document in specified notebook, support Markdown contentrename_doc - Rename document, keep content unchangedrename_doc_by_id - Rename by document ID, precise operationremove_doc - Delete document, clean file systemremove_doc_by_id - Delete by document ID, precise operationmove_docs - Move documents to other locations or notebooksmove_docs_by_id - Move by document ID, precise operationget_hpath_by_path - Get human-readable path by pathget_hpath_by_id - Get human-readable path by IDget_path_by_id - Get storage path by IDget_ids_by_hpath - Get IDs by human-readable pathBlocks are the smallest content units in SiYuan Note, supporting flexible editing, reorganization, and referencing.
insert_block - Insert block, support specified position and data typeprepend_block - Insert prepend child block, add content at parent block beginningappend_block - Insert append child block, add content at parent block endupdate_block - Update block content, support Markdown and DOM formatsdelete_block - Delete block, clean related referencesmove_block - Move block to new position, support hierarchical adjustmentget_block_kramdown - Get block kramdown source code, for exportget_child_blocks - Get child block list, traverse block structurefold_block - Fold block, hide child contentunfold_block - Unfold block, show child contenttransfer_block_ref - Transfer block reference, maintain reference relationshipsBlock attributes are used to store metadata and custom information, supporting key-value pair storage.
set_block_attrs - Set block attributes, support custom key-value pairsget_block_attrs - Get block attributes, read metadata informationGet data from SiYuan Note through SQL queries, supporting complex query conditions.
sql_query - Execute SQL queries, support all SQLite syntaxflush_transaction - Commit transactions, ensure data persistenceManage files and directories in SiYuan Note workspace, support resource management.
get_file - Get file content, read file dataremove_file - Delete file, clean storage spacerename_file - Rename file, update file pathread_dir - List directory content, browse file structureput_file - Write file, create or update file contentExport SiYuan Note content to various formats, support backup and sharing.
export_md_content - Export Markdown text, maintain formatexport_resources - Export files and directories, include resource filesPush messages and error prompts to users, provide operation feedback.
push_msg - Push messages, display success promptspush_err_msg - Push error messages, display error informationGet SiYuan Note system status and runtime information, monitor system health.
get_version - Get SiYuan Note version informationget_current_time - Get system current timeget_boot_progress - Get boot progress, monitor boot statuscheck_siyuan_status - Check SiYuan Note status and API availabilityget_workspace_info - Get workspace and connection informationUse template system to create dynamic content, support variable substitution.
render_template - Render template files, support external templatesrender_sprig - Render Sprig templates, support inline template syntaxUse Pandoc for document format conversion, support multiple output formats.
pandoc_convert - Pandoc conversion, support multiple document formatsManage resource files in SiYuan Note, support batch upload.
upload_asset - Upload resource files, support batch operationsPrerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.