affine-mcp-server
View on GitHubModel Context Protocol server for AFFiNE. Connect AI assistants to AFFiNE workspaces, documents, databases, and collaboration APIs over stdio or HTTP.
MCP server that connects AI assistants (Claude Code, Cursor, Codex, Claude Desktop) to AFFiNE workspaces over stdio or HTTP. Exposes 106 canonical tools backed by AFFiNE GraphQL/WebSocket APIs for documents, databases, blocks, and comments, with Docker and OAuth support.
Use Cases
Connect Claude Code, Cursor, or Codex CLI to AFFiNE workspacesRead and edit AFFiNE documents and pages from an AI assistantAutomate AFFiNE database and block workflowsManage workspaces, organizations, and comments via MCP toolsExpose a remote HTTP MCP endpoint for hosted or browser clientsQuery AFFiNE knowledge base content as agent contextCreate pages from native templates and semantic compositionRun a Dockerized MCP server with bearer-token or OAuth auth
Built With
- Language
- JavaScript
- Frameworks
- Model Context Protocol TypeScript SDK · Node.js · Express/HTTP server · GraphQL · WebSocket · Docker · OAuth
Tags
mcp · mcp-server · model-context-protocol · affine · knowledge-base · workspace-automation · stdio · http · oauth · graphql · docker · claude · cursor · codex · documents · databases