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 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| 最近更新的 10 篇文档 | 仅返回必要字段,避免将整篇正文注入上下文 |
| 所有笔记本 |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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