Search, read, and edit your local SiYuan workspace in Google Antigravity App and CLI through SiYuan's built-in MCP server.
-
Start SiYuan and open the workspace you want to access. Copy its API token from Settings - Authentication.
-
In a terminal, install the plugin:
agy plugin install https://github.com/siyuan-note/siyuan-antigravity-plugin
The App and CLI share installed plugins on the same computer. For a local App-only installation, download this repository and place the extracted plugin folder in
~/.gemini/config/plugins/or in.agents/plugins/inside your Antigravity project. See Google's plugin installation guide. -
In the App, open Customizations - Installed and enable SiYuan. In the CLI, run
/pluginand enable it from the Installed tab. Enter the SiYuan MCP URL (normallyhttp://127.0.0.1:6806/mcp) and the SiYuan API token when prompted. If SiYuan is listening on a different local port, use that port. -
Ask Antigravity to list your SiYuan notebooks or search your notes. To disconnect, disable or uninstall the plugin in Antigravity.
Use the URL of your own SiYuan instance. Use HTTP only for a loopback address and keep the endpoint local to your computer. The API token grants administrator access to the workspace. Enter it in Antigravity's configuration prompt and keep it out of chat and source files.
SiYuan's MCP tool exposure policy and encrypted notebook access rules still apply. Writes affect your workspace. Search terms and note content used by the agent may be sent to Google as conversation context.
agy plugin validate --strict .This project is licensed under the GNU Affero General Public License v3.0 or later.