SiYuan MCP Server
by xgq18237
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SIYUAN_URL | No | Full SiYuan URL, overrides HOST and PORT if set. | |
| SIYUAN_HOST | No | SiYuan host, default 127.0.0.1, ignored if SIYUAN_URL is set. | 127.0.0.1 |
| SIYUAN_PORT | No | SiYuan port, default 6806, ignored if SIYUAN_URL is set. | 6806 |
| SIYUAN_TOKEN | Yes | SiYuan API Token, required for authentication. | |
| SIYUAN_MCP_DEBUG | No | Set to '1' to output debug info to stderr. | 0 |
| SIYUAN_MCP_TIMEOUT_MS | No | Timeout per API request in milliseconds. | 120000 |
| SIYUAN_MCP_UPLOAD_ROOTS | No | Colon/semicolon-separated list of allowed upload directories for local files. | current working directory |
| SIYUAN_MCP_MAX_TEXT_CHARS | No | Maximum text preview length for MCP. | 30000 |
| SIYUAN_MCP_MAX_RESPONSE_BYTES | No | Maximum response byte size. | 10485760 |
| SIYUAN_MCP_PROTECT_DESTRUCTIVE | No | Explicitly set to 'true' or '1' to block destructive operations. | false |
| SIYUAN_MCP_WRITE_PATH_PREFIXES | No | Comma-separated allowed write path prefixes in workspace. | /data/assets,/temp |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xgq18237/siyuan_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server