affine-mcp-server
by DAWNCR0W·★ 166·Score 50
Comprehensive MCP server for AFFiNE, exposing 84 tools for workspace, document, and database operations over stdio or HTTP.
Overview
The affine-mcp-server is a well-structured MCP server that enables AI assistants to interact with AFFiNE workspaces. It provides comprehensive access to documents, databases, collaboration features, and organizational tools through a stable API surface. The server supports both stdio and HTTP transports, with robust authentication options including tokens, cookies, and email/password for both AFFiNE Cloud and self-hosted instances.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you use AFFiNE as your knowledge base and want to integrate AI assistants for document retrieval, database interaction, and workflow automation.
When NOT to choose this
Avoid if you only use browser-local AFFiNE workspaces (not server-backed) or need access to AFFiNE features not exposed through the MCP server API.
Tools this server exposes
12 tools extracted from the READMEcreate_workspaceCreate a new workspace in AFFiNE
search_documentsSearch for documents across workspaces
read_documentRead the content of a specific document
create_documentCreate a new document in a workspace
create_database_columnAdd a new column to a database
add_database_rowAdd a new row to a database
list_commentsList all comments on a document
create_commentAdd a comment to a document
get_user_infoRetrieve information about the current user
upload_blobUpload a file/blob to AFFiNE storage
list_notificationsGet all notifications for the current user
publish_documentPublish a document to make it publicly accessible
Note: Tool names inferred from the Tool Surface section which lists domains but doesn't provide explicit tool names. The actual tool names would be defined in tool-manifest.json.
Comparable tools
Installation
Installation
- Install the CLI globally:
npm i -g affine-mcp-server
affine-mcp --version- Or run ad-hoc:
npx -y -p affine-mcp-server affine-mcp -- --version- Docker deployment:
docker run -d
-p 3000:3000
-e MCP_TRANSPORT=http
-e AFFINE_BASE_URL=https://your-affine-instance.com
-e AFFINE_API_TOKEN=ut_your_token
-e AFFINE_MCP_AUTH_MODE=bearer
-e AFFINE_MCP_HTTP_TOKEN=your-strong-secret
ghcr.io/dawncr0w/affine-mcp-server:latestClaude Desktop Configuration
Add to your Claude Desktop config:
{
"mcpServers": {
"affine": {
"command": "affine-mcp"
}
}
}FAQ
- What authentication methods are supported?
- The server supports token, cookie, and email/password authentication for both AFFiNE Cloud and self-hosted instances. API tokens are recommended for production use.
- Can I restrict which tools are exposed?
- Yes, you can use environment variables like AFFINE_TOOL_PROFILE (read_only, core, authoring) or AFFINE_DISABLED_GROUPS to limit tool exposure for least-privilege deployments.
Compare affine-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.