MCP Catalogs
Home

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.

productivityknowledge-graphdeveloper-tools
56
Forks
3
Open issues
this month
Last commit
2d ago
Indexed

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:

you:Connect Claude Desktop, Cursor, or other AI clients to AFFiNE workspaces for enhanced document creation and management
you:Automate database operations in AFFiNE through MCP tool calling in AI workflows
you:Create remote HTTP endpoints for browser-connected clients to interact with AFFiNE via standardized tools
you:What authentication methods are supported?
you:Can I restrict which tools are exposed?

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 README
  • create_workspace

    Create a new workspace in AFFiNE

  • search_documents

    Search for documents across workspaces

  • read_document

    Read the content of a specific document

  • create_document

    Create a new document in a workspace

  • create_database_column

    Add a new column to a database

  • add_database_row

    Add a new row to a database

  • list_comments

    List all comments on a document

  • create_comment

    Add a comment to a document

  • get_user_info

    Retrieve information about the current user

  • upload_blob

    Upload a file/blob to AFFiNE storage

  • list_notifications

    Get all notifications for the current user

  • publish_document

    Publish 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

notion-mcpmcp-file-systemmcp-sqlite

Installation

Installation

  1. Install the CLI globally:
npm i -g affine-mcp-server
affine-mcp --version
  1. Or run ad-hoc:
npx -y -p affine-mcp-server affine-mcp -- --version
  1. 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:latest

Claude 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.