MCP Configs2026年5月12日·1 分钟阅读

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 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 94/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Mcp
安装
Manual
信任
信任等级:Established
入口
npm i -g affine-mcp-server && affine-mcp --version
通用 CLI 安装命令
npx tokrepo install 8c421f26-d032-529a-b18d-710a2cd4fc34
介绍

AFFiNE MCP Server is designed for three common scenarios:

  • Run a local stdio MCP server for Claude Code, Codex CLI, Cursor, or Claude Desktop
  • Expose a remote HTTP MCP endpoint for hosted or browser-connected clients
  • Automate AFFiNE workspace, document, database, organization, and comment workflows through a stable MCP tool surface

Highlights:

  • Supports AFFiNE Cloud and self-hosted AFFiNE instances
  • Supports stdio and HTTP transports
  • Supports token, cookie, and email/password authentication
  • Exposes 84 canonical MCP tools backed by AFFiNE GraphQL and WebSocket APIs
  • Includes semantic page composition, native template instantiation, database intent composition, capability and fidelity reporting, and workspace blueprint helpers
  • Includes Docker images, health probes, and end-to-end test coverage

Scope boundaries:

  • This server can access only server-backed AFFiNE workspaces
  • Browser-local workspaces stored only in local storage are not available through AFFiNE server APIs
  • AFFiNE Cloud requires API-token-based access for MCP usage; programmatic email/password sign-in is blocked by Cloudflare

FAQ

它支持 AFFiNE Cloud 吗? 答:支持。README 写明支持 AFFiNE Cloud 与自托管;Cloud 场景通常使用 API token 访问。

支持 stdio 和 HTTP 吗? 答:支持。README 描述了默认 stdio 与 HTTP /mcp 传输。

如何降低风险? 答:用最小权限限制工具面、token 不入库,先从只读开始再逐步放开。

简介

AFFiNE MCP Server 通过 MCP(stdio/HTTP)把 AI 助手连接到 AFFiNE 的工作区、文档与数据库工具面。适合需要最小权限、可审计地让 Claude Code/Codex CLI/Cursor 访问知识库的团队。

最适合: 用 AFFiNE 管理文档与数据库,并希望让编码 Agent 安全检索/写入内容的团队

适配: Claude Code/Cursor/Codex CLI、Node.js(CLI)、Docker(可选)、AFFiNE Cloud 或自托管

配置时间: 15–25 分钟

关键事实(已验证)

  • README 版本徽章显示 2.0.0。
  • README 提到公开 MCP 工具面为 84 个,并提供最小权限 profile。
  • GitHub:165 stars · 56 forks;最近更新 2026-05-11(GitHub API 验证)。

正文

把它当作“集成边界”来用:先从只读/核心权限开始,再按真实需求逐步放开工具。托管场景优先用 HTTP 传输 + 强随机 Bearer token,并把 token 放在环境变量或私密配置中,不要进仓库。

最小化配置可以直接参考 README 里的 Docker + HTTP /mcp 端点示例,并按客户端配置 headers。

README 原文节选(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: https://github.com/DAWNCR0W/affine-mcp-server > License: MIT > GitHub stars: 165 · forks: 56

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产