这是一个提供对 Anytype API 访问的 MCP(模型上下文协议)服务器,允许 AI 助手和其他 MCP 客户端与您的 Anytype 数据进行交互,为您的数据使用带来更多便利。
基于 Anytype API 定义 v0.46+ (2025-03-17)。
请确保您的 Anytype 桌面版本与此兼容。
在使用本 MCP 服务器前,请确保满足以下先决条件:
get_spaces)get_objects,search_space)或全局搜索(global_search)get_object_content,支持检索全文)create_space)和对象(create_object,delete_object)export_object)get_list_views,get_list_view_objects,add_objects_to_list,remove_object_from_list)get_space_members)get_types,get_type_details,get_templates,get_template_details)git clone https://github.com/Qwinty/anytype-mcp.git
cd anytype-mcp
npm install
build/ 目录):npm run build
运行 npm run get-key 脚本来获取一个新的 App Key,并将其更新到您的 MCP 配置中,然后重启您的 MCP 客户端。
确保 Anytype 桌面应用程序正在运行。MCP 服务器连接到本地 Anytype API 的地址为 http://localhost:31009/v1。
如果您遇到认证错误:
npm run get-key 来获取一个新的 App Key默认情况下,服务器连接到 Anytype API 的地址为 http://localhost:31009/v1。如果您的 Anytype 安装使用了不同的端口,则需要修改 src/index.ts 中的 apiBaseUrl 变量并重新构建(运行 npm run build)。通过环境变量配置此属性是未来潜在的功能改进。
MIT