Main
Treat this server like an integration boundary: start with read-only or core profiles, then widen tool exposure only when you have specific AFFiNE automation needs. For hosted usage, prefer HTTP transport with a strong bearer token and keep the token outside your project repo.
If you want a minimal Claude client config, use the Docker + HTTP /mcp endpoint shown in the README and set headers per client.
README excerpt (verbatim)
AFFiNE MCP Server
A Model Context Protocol (MCP) server for AFFiNE. It exposes AFFiNE workspaces and documents to AI assistants over stdio (default) or HTTP (/mcp) and supports both AFFiNE Cloud and self-hosted deployments.