Anytype MCP logo

Anytype MCP

Connects MCP-compatible assistants to Anytype for searching and managing spaces, objects, lists, properties, tags, types, and templates.

Install Anytype MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "anytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@anyproto/anytype-mcp"
      ],
      "env": {
        "OPENAPI_MCP_HEADERS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @anyproto/anytype-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1d ago.

Overview

anytype-mcp exposes Anytype's API to AI assistants through Model Context Protocol tools generated from the API's OpenAPI specification. It connects to Anytype's local API by default, uses an API key supplied through request headers, and can target a custom API base URL. Reach for it when an assistant needs to search or update an Anytype knowledge base, including spaces, objects, lists, properties, tags, types, and templates.

Use cases

  • Search an Anytype knowledge base from an AI assistant
  • Create spaces and task objects through natural language
  • Organize objects into lists and collections
  • Update Anytype objects with etag protection
  • Connect an assistant to a custom Anytype API endpoint

Key features

  • OpenAPI-generated MCP tools
  • Global and space search
  • Spaces, members, objects, and lists
  • Properties, tags, types, and templates
  • Configurable Anytype API base URL
  • Idempotency and etag request handling

Tools11

What Anytype MCP lets your agent do. Expand a tool for its parameters.

Self-reported~38 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

26/30 checks healthy over the last 93d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @anyproto/anytype-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars541Stargazers on the source repository.
npm downloads33kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed11Callable tools this server registers over MCP.
Directory activity13 viewsConfig copies, upvotes, and views on AllMCPs.

How Anytype MCP works

What anytype-mcp does

anytype-mcp lets MCP-compatible AI clients interact with Anytype through natural-language requests. It translates Anytype's OpenAPI description into MCP tools, covering global and space search, spaces and members, objects and lists, properties and tags, and types and templates. This supports workflows such as creating a space, adding task objects, assigning them, setting due dates, and collecting them in a list.

The server is intended for Anytype installations that expose the local API. It provides a conversational interface while retaining the API's request and response behavior, including errors, warnings, identifiers, and concurrency metadata.

How it works

At startup, the server discovers an OpenAPI document from the configured Anytype API. Standard startup checks the v2 document first and falls back to the older v1 document when the newer endpoint is unavailable. A specific OpenAPI URL can also be passed to select v1, v2, or another supplied document directly. Explicit URLs and local files are used as given rather than going through fallback discovery.

Discovery happens once for each MCP process. The parsed specification and HTTP client are reused for subsequent calls, so the process must be restarted after an Anytype update if newly available API operations should appear. MCP tool names are derived from the API operation identifiers, while the server preserves literal API values such as enum members and examples.

Setup and configuration

Install or run the package with npx:

Terminal
npx -y @anyproto/anytype-mcp

Create an API key in Anytype under App Settings and API Keys. Pass it through OPENAPI_MCP_HEADERS as JSON containing an Authorization bearer value and an Anytype-Version value:

config.json
{
  "env": {
    "OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-11-08\"}"
  }
}

The default API endpoint is http://127.0.0.1:31009. Set ANYTYPE_API_BASE_URL when using anytype-cli on port 31012 or another API location. The package can also be installed globally with npm and invoked as anytype-mcp.

Tools and capabilities

  • Search across Anytype or within a space.
  • Work with spaces and their members.
  • Create and manage objects and lists.
  • Use properties and tags.
  • Work with types and templates.
  • Inspect API schemas and operation details through generated schema tools.
  • Create, update, and delete v1 objects, with compact receipts for successful mutations.
  • Use etags to guard updates against changes made after a previous read.
  • Use idempotency keys for safe retries of the same write request.

Limitations and notes

The server selects and parses one OpenAPI document per process. Startup fails for authentication problems, connection failures, API errors, or malformed OpenAPI JSON rather than silently choosing another specification.

For writes, expected_etag maps to If-Match; supply an etag from an earlier read when preventing accidental overwrites matters. request_key maps to Idempotency-Key on endpoints that support it. New writes receive generated idempotency keys when appropriate, but calls are not automatically retried. A globally configured idempotency key is rejected.

Some successful v1 mutations return a compact receipt instead of the complete object content. Read the object separately when its markdown, snippets, properties, icon, or full type information is needed. API failures are returned as MCP errors with available HTTP status, codes, messages, issues, and hints.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Anytype MCP

anytype-mcp is an MCP server that connects AI assistants to Anytype's API through OpenAPI-generated tools. It supports searching and managing spaces, members, objects, lists, properties, tags, types, and templates, with request handling for authorization, etags, idempotency keys, and API metadata.

Run `npx -y @anyproto/anytype-mcp` from the MCP client's server configuration. Add `OPENAPI_MCP_HEADERS` with an Anytype bearer API key and API version. You can alternatively install the npm package globally and invoke the `anytype-mcp` command.

Set `OPENAPI_MCP_HEADERS` to JSON containing `Authorization: Bearer <YOUR_API_KEY>` and an `Anytype-Version` value. Create the key in Anytype under App Settings, then place the variable in the MCP client's environment configuration.

Yes, set `ANYTYPE_API_BASE_URL` to the desired endpoint. The default is `http://127.0.0.1:31009`; the README gives `http://localhost:31012` as an example for `anytype-cli`.

Yes, Cursor is shown as a supported MCP client. Configure it to launch the package with `npx` and provide `OPENAPI_MCP_HEADERS` containing the Anytype API key and version.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAnytype MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/anytype-mcp?style=directory)](https://allmcps.com/mcp/anytype-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/anytype-mcp"><img src="https://allmcps.com/api/badge/anytype-mcp?style=directory" alt="Anytype MCP on AllMCPs" /></a>