Reference

MCP integration

Install GNO as a local MCP server for Claude Desktop, Claude Code, Cursor, Codex, Zed, Windsurf, Amp, and more.

MCP lets AI assistants call local tools. GNO’s MCP server gives Claude, Cursor, Codex, and other clients grounded access to your own documents without uploading the corpus to a hosted search service. GNO retrieves; the client model synthesizes.

What this is

Install

gno mcp install --target claude-desktop
gno mcp install --target claude-code
gno mcp install --target cursor
gno mcp install --target codex
gno mcp install --target zed
gno mcp install --target windsurf
gno mcp install --target opencode
gno mcp install --target amp
gno mcp status

Default scope is user-level when the client supports it. Use --scope project for project-local configuration in clients such as Claude Code, Cursor, Codex, OpenCode, and LibreChat. Restart the client after install.

Server command

Tool playbook

Recommended agent pattern

  1. Start with gno_query for broad questions.
  2. Use gno_get around returned line anchors instead of loading whole documents by default.
  3. Use gno_multi_get with a byte cap when several sources are needed.
  4. Use graph tools when the question is about relationships, missing links, related ideas, or how two notes connect.

Security posture

Write tools (capture, sync, embed, index, collection changes) are disabled by default so your AI client cannot accidentally modify the corpus. Enable them explicitly per client:

gno mcp install --target cursor --enable-write
GNO_MCP_ENABLE_WRITE=1 gno mcp

Collection creation rejects dangerous roots such as /, ~, system folders, and hidden config directories. Still review client approval prompts before write calls.

Resource URIs

GNO exposes every document as an MCP resource, so clients can fetch a file by URI without going through a tool call.

gno://documents/<id>
gno://collections/<name>