### Start Anytype MCP Server Manually Node.js Source: https://github.com/qwinty/anytype-mcp/blob/main/README.md Executes the start script defined in package.json, which typically runs the built JavaScript code of the MCP server. This command is primarily used for manual testing and troubleshooting; the server is usually started automatically by an MCP client. Requires the project to be built and Node.js with npm installed. ```node npm start ``` -------------------------------- ### Install Anytype MCP Dependencies Node.js Source: https://github.com/qwinty/anytype-mcp/blob/main/README.md Installs all required Node.js packages listed in the project's package.json file. This command must be run from within the cloned repository directory. It requires Node.js and npm to be installed and configured on the system. ```node npm install ``` -------------------------------- ### Clone Anytype MCP Repository CLI Source: https://github.com/qwinty/anytype-mcp/blob/main/README.md Commands to clone the Anytype MCP server source code from GitHub and change the current directory to the newly created repository folder. This is the first step in the manual installation process. Requires the Git command-line tool to be installed and accessible in the system's PATH. ```cli git clone https://github.com/Qwinty/anytype-mcp.git cd anytype-mcp ``` -------------------------------- ### Configure Anytype MCP Server JSON Source: https://github.com/qwinty/anytype-mcp/blob/main/README.md Provides an example JSON structure for adding the Anytype MCP server to an MCP client's configuration file (like claude_desktop_config.json). It defines how the client should launch the server, specifies environment variables including the crucial ANYTYPE_APP_KEY, and indicates if the server is enabled. Users must replace placeholders with their actual path and obtained app key. ```json { "mcpServers": { "anytype": { "command": "node", "args": ["{path/to/anytype-mcp}/build/index.js"], "env": { "ANYTYPE_APP_KEY": "YOUR_APP_KEY_HERE" }, "disabled": false } } } ``` -------------------------------- ### Build Anytype MCP Project Node.js Source: https://github.com/qwinty/anytype-mcp/blob/main/README.md Executes the build script defined in package.json, typically compiling TypeScript source files into JavaScript located in the build/ directory. This step prepares the server code for execution. It must be run after installing dependencies and requires Node.js with npm. ```node npm run build ``` -------------------------------- ### Run Anytype App Key Helper Node.js Source: https://github.com/qwinty/anytype-mcp/blob/main/README.md Executes a helper script that interacts with the running Anytype desktop application to generate and authorize an app key for the MCP server. This key is necessary for the server to authenticate with the Anytype API. Requires Anytype desktop to be running locally and Node.js with npm installed. ```node npm run get-key ``` -------------------------------- ### Retrieving Spaces with get_spaces in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool retrieves all available Anytype spaces for the current user, returning a list of spaces with their IDs, names, and metadata. It requires no parameters and is used to get an overview of all spaces or find a specific space ID. ```JSON { "name": "get_spaces", "arguments": {} } ``` -------------------------------- ### Creating an Object with create_object in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool creates a new object within a specified Anytype space, allowing users to add various types of content (pages, notes, tasks, etc.) to their spaces. It allows specifying the object's name, type, description, icon, and content, and optionally using a template to create pre-structured objects. ```JSON { "name": "create_object", "arguments": { "space_id": "your-space-id", "name": "My New Page", "type_key": "ot-page", // e.g., 'ot-page', 'ot-task' "description": "Optional description", // Optional "icon": { // Optional "format": "emoji", // "emoji", "file", or "icon" "emoji": "📄" // if format is "emoji" // "file": "https://url.to/icon.png", // if format is "file" // "name": "icon-name", // if format is "icon" // "color": "#FF0000" // Optional color }, "body": "## Hello World\n\nThis is the content.", // Optional: Markdown content "template_id": "your-template-id", // Optional "source": "https://example.com" // Optional: for bookmarks } } ``` -------------------------------- ### Creating a Space with create_space in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool creates a new Anytype space with the specified name, allowing users to set up a fresh workspace for organizing objects and collaborating with others. It is used to establish a new organizational container for Anytype content. ```JSON { "name": "create_space", "arguments": { "name": "My New Space" } } ``` -------------------------------- ### Retrieving Objects with get_objects in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool searches for and retrieves objects within a specified Anytype space. It allows listing all objects or filtering them using a search query, with results paginated for performance. The optional `include_text` parameter allows retrieving the full formatted text content of objects. ```JSON { "name": "get_objects", "arguments": { "space_id": "your-space-id", "offset": 0, // Optional "limit": 100, // Optional (1-1000, default 100) "full_response": false, // Optional: Get full unfiltered API response "include_text": false // Optional: Include full text content from blocks } } ``` -------------------------------- ### Retrieving Templates for Specific Object Type Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Retrieves all available templates for a specific object type in an Anytype space. Templates provide pre-configured structures and content for creating new objects. This tool returns a list of templates with their IDs, names, and metadata. Results are paginated for types with many templates. ```json { "name": "get_templates", "arguments": { "space_id": "your-space-id", "type_id": "your-type-id", "offset": 0, "limit": 100 } } ``` -------------------------------- ### Retrieving Details of Specific Template Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Retrieves detailed information about a specific template in an Anytype space. This tool provides comprehensive details about the template's structure, content, and configuration. Use this tool when you need to examine a template's properties before using it to create new objects, or to understand how a particular template is structured. ```json { "name": "get_template_details", "arguments": { "space_id": "your-space-id", "type_id": "your-type-id", "template_id": "your-template-id" } } ``` -------------------------------- ### Executing Global Search in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Executes a search across all spaces the user has access to, with options for filtering by type and sorting. Searches match against object `name` and `snippet`. ```json { "name": "global_search", "arguments": { "query": "search term", "types": ["ot-page", "ot-task"], // Optional "sort_property": "last_modified_date", // Optional "sort_direction": "desc", // Optional "offset": 0, "limit": 100, "include_text": false // Optional: Include full text content. Use with caution. } } ``` -------------------------------- ### Retrieving Object Types in Anytype Space Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Retrieves all object types available in a specified Anytype space. This tool provides information about the different types of objects that can be created in the space, including their IDs, names, and metadata. Results are paginated for spaces with many types. ```json { "name": "get_types", "arguments": { "space_id": "your-space-id", "offset": 0, "limit": 100 } } ``` -------------------------------- ### Exporting an Object with export_object in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool exports an Anytype object in Markdown format, allowing users to extract content for use in other applications or for backup purposes. Markdown format is human-readable and suitable for documentation. ```JSON { "name": "export_object", "arguments": { "space_id": "your-space-id", "object_id": "your-object-id", "format": "markdown" // Only markdown is supported } } ``` -------------------------------- ### Retrieving Space Members with get_space_members in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool retrieves a list of all members who have access to a specified Anytype space, including their ID, name, and access level. Results are paginated for spaces with many members, and it is used to understand who has access to a space or manage collaboration permissions. ```JSON { "name": "get_space_members", "arguments": { "space_id": "your-space-id", "offset": 0, "limit": 100 } } ``` -------------------------------- ### Retrieving Object Content with get_object_content in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool retrieves detailed content and metadata for a specific object in an Anytype space, including its properties, relations, and content. It is used to examine a specific object's details after discovering its ID. The optional `include_text` parameter allows retrieving the full formatted text content of the object. ```JSON { "name": "get_object_content", "arguments": { "space_id": "your-space-id", "object_id": "your-object-id", "include_text": false // Optional: Include full text content from blocks } } ``` -------------------------------- ### Retrieving Details of Specific Object Type Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Retrieves detailed information about a specific object type in an Anytype space. This tool provides comprehensive details about the type's structure, including its relations, views, and configuration options. Use this tool when you need to understand the structure of a particular object type or to examine its available relations and properties. ```json { "name": "get_type_details", "arguments": { "space_id": "your-space-id", "type_id": "your-type-id" } } ``` -------------------------------- ### Executing Space Search in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Executes a search within a specific space, with options for filtering by type and sorting. Searches match against object `name` and `snippet`. ```json { "name": "search_space", "arguments": { "space_id": "your-space-id", "query": "search term", // Optional "types": ["ot-page", "ot-task"], // Optional "sort_property": "last_modified_date", // Optional "sort_direction": "desc", // Optional "offset": 0, "limit": 100, "full_response": false, // Optional: Get full unfiltered API response "include_text": false // Optional: Include full text content. Use with caution. } } ``` -------------------------------- ### Retrieving List Views in Anytype Space Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Retrieves views configured for a specific list (Set or Collection) in a space. Views define how objects in the list are filtered and sorted. ```json { "name": "get_list_views", "arguments": { "space_id": "your-space-id", "list_id": "your-list-object-id", "offset": 0, "limit": 100 } } ``` -------------------------------- ### Adding Objects to List in Anytype Space Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Adds one or more objects to a specific list (Collection only) in a space. ```json { "name": "add_objects_to_list", "arguments": { "space_id": "your-space-id", "list_id": "your-list-object-id", "object_ids": ["object-id-1", "object-id-2"] } } ``` -------------------------------- ### Retrieving Objects from List View Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Retrieves objects from a specific list view, applying the view's configured filters and sorting. ```json { "name": "get_list_view_objects", "arguments": { "space_id": "your-space-id", "list_id": "your-list-object-id", "view_id": "your-view-id", "offset": 0, "limit": 100 } } ``` -------------------------------- ### Deleting an Object with delete_object in Anytype Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md This tool archives (marks as deleted) an object from a specified Anytype space, including all its content. It should be used with caution as archived objects might not be easily recoverable. Always verify the object ID before deletion. ```JSON { "name": "delete_object", "arguments": { "space_id": "your-space-id", "object_id": "your-object-id" } } ``` -------------------------------- ### Removing Object from List in Anytype Space Source: https://github.com/qwinty/anytype-mcp/blob/main/docs/Tools.md Removes an object from a specific list (Collection only) in a space. ```json { "name": "remove_object_from_list", "arguments": { "space_id": "your-space-id", "list_id": "your-list-object-id", "object_id": "object-id-to-remove" } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.