MCP ConfigsMay 12, 2026·2 min read

affine-mcp-server — AFFiNE Docs & Database MCP

AFFiNE MCP Server exposes AFFiNE workspaces to Claude Code/Cursor via MCP (stdio/HTTP), with auth and least-privilege tool profiles.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Native · 94/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Mcp
Install
Manual
Trust
Trust: Established
Entrypoint
npm i -g affine-mcp-server && affine-mcp --version
Universal CLI install command
npx tokrepo install 8c421f26-d032-529a-b18d-710a2cd4fc34
Intro

AFFiNE MCP Server connects AI assistants to AFFiNE workspaces, documents, and databases through a stable MCP tool surface over stdio or HTTP. It targets Claude Code/Codex CLI/Cursor setups where you want least-privilege, auditable access to your knowledge base.

Best for: teams using AFFiNE as a docs + database knowledge hub and want to let coding agents retrieve/update content safely

Works with: Claude Code/Cursor/Codex CLI, Node.js (CLI), Docker (optional), AFFiNE Cloud or self-hosted AFFiNE

Setup time: 15–25 minutes

Key facts (verified)

  • Version badge in README shows 2.0.0.
  • README states an 84-tool public MCP surface and least-privilege profiles.
  • GitHub: 165 stars · 56 forks; pushed 2026-05-11 (GitHub API verified).

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.

Version MCP SDK CI License

AFFiNE Server MCP server

Table of Contents

🙏

Source & Thanks

Source: https://github.com/DAWNCR0W/affine-mcp-server > License: MIT > GitHub stars: 165 · forks: 56

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets