Troubleshooting
This page groups common failures and quick checks for MCP connectivity.
When to read this page: the server does not start, tools are not visible, or calls fail after connection.
Related pages:
Connection Failed
Check these first:
- Is SiYuan running and its API reachable on
6806? - Is the plugin enabled?
- If using HTTP, is the MCP server started on
36806? - If using stdio, is the
mcp-server.cjspath correct and readable from the MCP client machine? - In Docker setups, do not use a container-only path like
/siyuan/workspace/data/plugins/.../mcp-server.cjsunless that path is mounted on the client machine. Copymcp-server.cjsto a client-side path or extract it from the release package.
Tools Not Visible
- Confirm the client is connected to the MCP endpoint
- Confirm the plugin-side tool config did not disable the tool
- If using HTTP, restart the MCP server after settings changes
Calls Fail After Connection
- Verify bearer token or
SIYUAN_TOKEN - Verify notebook permissions for the target notebook
- Confirm you are using the right path type for document actions
Permission Denied
Permission levels:
rwd: read, write, deleterw: read, writer: read onlynone: no access
If a call fails, check both:
- notebook-level permission config
- whether the action itself is high-risk or disabled
Logs and Quick Reference
Default ports:
- SiYuan API:
6806 - MCP HTTP:
36806
Useful locations:
- Plugin bundle:
{workspace}/data/plugins/siyuan-plugins-mcp-sisyphus/ mcp-server.cjs: same directory as the plugin bundle
Common stdio error:
Failed to reconnect ... -32000: often means the MCP client could not startmcp-server.cjsor the server could not reachSIYUAN_API_URL. For Docker, first check thatargspoints to a client-side file path andSIYUAN_API_URLpoints to the reachable SiYuan API endpoint, usuallyhttp://<docker-host-ip>:6806.