MCP Catalogs
首页

affine-mcp-server

by DAWNCR0W·166·综合分 50

全面的 AFFiNE MCP 服务器,通过 stdio 或 HTTP 提供 84 个工作区、文档和数据库操作工具。

productivityknowledge-graphdeveloper-tools
56
Forks
3
活跃 Issue
本月
最近提交
2 天前
收录于

概述

affine-mcp-server 是一个结构良好的 MCP 服务器,使 AI 助手能够与 AFFiNE 工作区交互。它通过稳定的 API 表面提供对文档、数据库、协作功能和组织工具的全面访问。该服务器支持 stdio 和 HTTP 传输,具有强大的身份验证选项,包括 AFFiNE 云和自托管实例的令牌、Cookie 和电子邮件/密码。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:将 Claude Desktop、Cursor 或其他 AI 客户端连接到 AFFiNE 工作区,以增强文档创建和管理
:通过 AI 工作流中的 MCP 工具调用自动化 AFFiNE 中的数据库操作
:为浏览器连接的客户端创建远程 HTTP 端点,以便通过标准化工具与 AFFiNE 交互
:支持哪些身份验证方法?
:我可以限制暴露哪些工具吗?

什么时候选它

如果您使用 AFFiNE 作为知识库并希望集成 AI 助手进行文档检索、数据库交互和工作流自动化,请选择这个 server。

什么时候不要选它

如果您仅使用浏览器本地的 AFFiNE 工作空间(非服务器支持)或需要通过 MCP 服务器 API 未暴露的 AFFiNE 功能,请避免使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • 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

说明: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.

可对比工具

notion-mcpmcp-file-systemmcp-sqlite

安装

安装

  1. 全局安装 CLI:
npm i -g affine-mcp-server
affine-mcp --version
  1. 或临时运行:
npx -y -p affine-mcp-server affine-mcp -- --version
  1. Docker 部署:
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 配置

添加到您的 Claude Desktop 配置中:

{
  "mcpServers": {
    "affine": {
      "command": "affine-mcp"
    }
  }
}

FAQ

支持哪些身份验证方法?
该服务器支持 AFFiNE 云和自托管实例的令牌、Cookie 和电子邮件/密码身份验证。建议在生产环境中使用 API 令牌。
我可以限制暴露哪些工具吗?
是的,您可以使用 AFFINE_TOOL_PROFILE(read_only、core、authoring)或 AFFINE_DISABLED_GROUPS 等环境变量来限制最小权限部署的工具暴露。

affine-mcp-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。