QA

qwinty/anytype-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

24 stars 7 forks 质量 55 趋势 10

一个MCP(模型上下文协议)服务器,提供对Anytype API的访问,允许AI助手和其他MCP客户端与你的Anytype数据交互。

概览

一个MCP(模型上下文协议)服务器,提供对Anytype API的访问,允许AI助手和其他MCP客户端与你的Anytype数据交互。 确保你的Anytype桌面版兼容。 - 获取空间列表(get_spaces)- 搜索/获取空间内(get_objects、search_space)或全局对象(global_search)- 获取详细的对象内容(get_object_content,支持全文检索) - 创建和删除空间(create_space)和对象(create_object、delete_object) - 将对象导出为markdown(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) - Node.js 18 及以上 - 本地运行的 Anytype 桌面应用程序 - Anytype 账户 3. 构建项目(在 build/ 中将 TypeScript 编译为 JavaScript): 4.

概述(AI 翻译)

https://github.com/anyproto/anytype-mcp

Anytype MCP 服务器

一个MCP(模型上下文协议)服务器,提供对Anytype API的访问,允许AI助手和其他MCP客户端与你的Anytype数据交互。

基于Anytype API定义v0.46+(2025-03-17)。 确保你的Anytype桌面版兼容。

特色

  • 获取空格列表(get_spaces)
  • 搜索/获取空间内(get_objects、search_space)或全局范围内(global_search)内的对象
  • 获取详细的对象内容([get_object_content,支持检索全文)
  • 创建和删除空间(create_space)和对象(create_object、delete_object)
  • 将对象导出为 markdown(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)

先修条件

  • Node.js 18岁及以上
  • 本地运行的Anytype桌面应用程序
  • Anytype账户

安装

手动安装

  1. 克隆此仓库:

  2. 安装依赖:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

OFFICIAL ANYTYPE MCP WAS RELEASED HERE

https://github.com/anyproto/anytype-mcp

Anytype MCP Server

An MCP (Model Context Protocol) server that provides access to the Anytype API, allowing AI assistants and other MCP clients to interact with your Anytype data.

Based on the Anytype API definition v0.46+ (2025-03-17). Ensure your Anytype Desktop version is compatible.

Features

  • Get list of spaces (get_spaces)
  • Search/Get objects within a space (get_objects, search_space) or globally (global_search)
  • Get detailed object content (get_object_content, supports retrieving full text)
  • Create and delete spaces (create_space) and objects (create_object, delete_object)
  • Export objects as markdown (export_object)
  • Manage list views and objects within lists (get_list_views, get_list_view_objects, add_objects_to_list, remove_object_from_list)
  • Get space members (get_space_members)
  • Get types and templates (get_types, get_type_details, get_templates, get_template_details)

Prerequisites

  • Node.js 18 or higher
  • Anytype desktop application running locally
  • An Anytype account

Installation

Manual Installation

  1. Clone this repository:

    git clone https://github.com/Qwinty/anytype-mcp.git
    cd anytype-mcp
    
  2. Install dependencies:

    npm install
    
  3. Build the project (compiles TypeScript to JavaScript in build/):

    npm run build
    
  4. Obtain an App Key: Before configuring the server, you need an App Key from Anytype. See the “Getting an App Key” section below.

  5. Add the MCP server to your MCP configuration file

Getting an App Key

Before using the MCP server, you need to obtain an app key from the Anytype desktop application:

  1. Make sure Anytype desktop is running

  2. Run the helper script:

    npm run get-key
    
  3. Follow the instructions to authorize the application

  4. Note the app key for configuration

Configuration

Add the Anytype MCP server to your MCP configuration file:

  • For Claude: Edit claude_desktop_config.json
  • For other MCP clients: Edit their respective configuration files

Example configuration:

{
  "mcpServers": {
    "anytype": {
      "command": "node",
      "args": ["{path/to/anytype-mcp}/build/index.js"],
      "env": {
        "ANYTYPE_APP_KEY": "YOUR_APP_KEY_HERE"
      },
      "disabled": false
    }
  }
}

Replace path/to/anytype-mcp with the actual path to your installation and YOUR_APP_KEY_HERE with the app key you obtained.

Usage

Starting the server

The MCP server is usually started automatically by the MCP client. However, you can also start it manually for testing:

npm start

Available Tools

See Tools.md for a detailed list of available tools and their usage examples.

System Prompt

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "anytype": { "command": "node", "args": ["{path/to/anytype-mcp}/build/index.js"], "env": { "ANYTYPE_APP_KEY": "YOUR_APP_KEY_HERE" }, "disabled": false } } }