The Affine MCP Server acts as an intermediary, providing a robust interface to interact with your self-hosted AFFiNE instance. It exposes a comprehensive set of AFFiNE GraphQL tools over WebSocket or stdio, enabling programmatic management of workspaces, documents, search operations, comments, and content history. Designed to mirror common Notion-like workflows, it supports flexible authentication methods, including session cookies and personal access tokens, and is easily deployable via Docker.