Anytype MCP Server

Anytype MCP Server

Enables AI assistants to interact with Anytype knowledge base via natural language, with Docker-based HTTP transport for always-on background operation.

Category
Visit Server

README

ohneben Anytype MCP

CI License: MIT

Talk to your Anytype knowledge base in plain language from AI assistants like Claude, Cursor, and any other MCP client.

This is a self-hosted fork of the official anyproto/anytype-mcp that adds a Docker container and a Streamable-HTTP transport, so the server can run quietly in the background and be reached by any MCP client over HTTP. (The original speaks stdio only.)

Why this one?

The official Anytype MCP server is great, but it runs as a stdio subprocess that each client has to launch on demand. This project keeps 100% of its capabilities and adds a production-style deployment: one always-on server, in Docker, that any number of MCP clients can reach over HTTP.

Capability This project Official anyproto/anytype-mcp Other community servers*
Full Anytype API coverage (dynamic OpenAPI → MCP tools)
stdio transport
Streamable-HTTP transport (via mcp-remote)
Always-on background service
One server → many clients at once
Docker + docker-compose
Health-check endpoint + auto-restart
Optional bearer-token auth on the endpoint
🟢 / 🟡 / 🔴 read-only / write / destructive tool hints
Automated test suite (Vitest)
License MIT MIT varies

<sub>*Community servers such as Qwinty/anytype-mcp (JS), wethegreenpeople/anytype-mcp (Python) and anytype-mcp-plus — most are stdio-only and launched via npx. "➖" = not documented / varies. Snapshot from July 2026; check each project for its latest.</sub>

In short: if you just want to try Anytype from your AI client, the official server is perfect. If you want it running in the background, always ready, and shared across every MCP client on your machine, use this one.

What you can do

Once it's connected, ask your assistant things like:

  • "Search my Anytype for notes about the Q3 launch."
  • "Create a task 'Write the report', due in 3 days."
  • "Make a new space called 'Travel' and add a packing checklist."

Tools are generated automatically from your running Anytype app and grouped into 🟢 read-only, 🟡 write, and 🔴 delete.

How it works

Claude / Cursor / …  ──MCP──►  this server  ──HTTP──►  Anytype desktop app (local API)

The server only talks to the local API of the Anytype desktop app on your own machine. Your data stays on your computer.

Requirements

  • The Anytype desktop app, installed and running (it serves a local API at 127.0.0.1:31009).
  • Docker (Docker Desktop on macOS/Windows) for the setup below.

Quick start (Docker)

1. Add your API key. Copy the example config and paste in a key:

cp .env.example .env
# open .env and set ANYTYPE_API_KEY=...   (see "Get an API key" below)

2. Start the server:

docker compose up -d --build

3. Confirm it's running:

curl -s http://localhost:8769/healthz     # → {"status":"ok"}

4. Connect your MCP client. Add this under mcpServers in your client config (e.g. Claude Desktop or Claude Code), then fully quit and reopen the app:

"anytype": {
  "command": "npx",
  "args": ["-y", "mcp-remote", "http://localhost:8769/mcp", "--allow-http"]
}

That's it — ask your assistant to search or create something in Anytype.

Get an API key

In the Anytype desktop app: Settings → API Keys → Create new. Copy the key into .env as ANYTYPE_API_KEY=. Your key stays in .env, which git ignores, so it is never committed.

Configuration

Everything is set in .env (copied from .env.example):

Variable Default What it does
ANYTYPE_API_KEY Your Anytype API key. Required.
ANYTYPE_VERSION 2025-11-08 Anytype API version header.
ANYTYPE_API_BASE_URL http://host.docker.internal:31009 Where the Anytype app's API is reachable from the container.
PORT 8769 Host port for the MCP endpoint.
MCP_SHARED_TOKEN (empty) Optional bearer token to protect the endpoint. Empty = open, for localhost only.

After changing .env, reload with docker compose up -d --force-recreate.

For logs, restart, key rotation, and verification commands, see DOCKER.md.

Run from source (stdio, no Docker)

Prefer the classic stdio mode? Build it locally:

npm install
npm run build

Then register it with your client using a stdio command and your key in OPENAPI_MCP_HEADERS — see the upstream README for the exact stdio configuration.

Security

  • Your API key lives only in .env, which is git-ignored. Never commit real keys.
  • The HTTP endpoint is unauthenticated by default (fine on localhost). To expose it beyond your machine, set MCP_SHARED_TOKEN and send it as a Bearer header or ?token=….

Credits & license

Built on the official Anytype MCP server by Any Association. Licensed under the MIT License.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured