affine-mcp-server
by DAWNCR0W·★ 166·综合分 50
全面的 AFFiNE MCP 服务器,通过 stdio 或 HTTP 提供 84 个工作区、文档和数据库操作工具。
概述
affine-mcp-server 是一个结构良好的 MCP 服务器,使 AI 助手能够与 AFFiNE 工作区交互。它通过稳定的 API 表面提供对文档、数据库、协作功能和组织工具的全面访问。该服务器支持 stdio 和 HTTP 传输,具有强大的身份验证选项,包括 AFFiNE 云和自托管实例的令牌、Cookie 和电子邮件/密码。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您使用 AFFiNE 作为知识库并希望集成 AI 助手进行文档检索、数据库交互和工作流自动化,请选择这个 server。
什么时候不要选它
如果您仅使用浏览器本地的 AFFiNE 工作空间(非服务器支持)或需要通过 MCP 服务器 API 未暴露的 AFFiNE 功能,请避免使用。
此 server 暴露的工具
从 README 抽取出 12 个工具create_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
说明: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.
可对比工具
安装
安装
- 全局安装 CLI:
npm i -g affine-mcp-server
affine-mcp --version- 或临时运行:
npx -y -p affine-mcp-server affine-mcp -- --version- 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:latestClaude 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 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。