Skip to main content

Anytype (self-hosted HTTP)

io.github.ohneben/anytype-mcp

v1.0.6Updated Sep 5, 2026local · Docker

Self-hosted Anytype MCP server: the full Anytype API as an always-on Docker + HTTP endpoint.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add anytype-mcp -e 'ANYTYPE_API_KEY=<your-anytype-api-key>' -e PORT=8769 -e ANYTYPE_API_BASE_URL=http://host.docker.internal:31009 -e ANYTYPE_VERSION=2025-11-08 -e ANYTYPE_MCP_SLIM_RESPONSES=true -- docker run -i --rm -e ANYTYPE_API_KEY -e PORT -e ANYTYPE_API_BASE_URL -e ANYTYPE_VERSION -e ANYTYPE_MCP_SLIM_RESPONSES ghcr.io/ohneben/anytype-mcp:1.0.6

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

9 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • ANYTYPE_API_KEY
    Env var· required· secret
    Anytype API key, created in the desktop app under Settings -> API Keys.
  • -p
    Argument· required
    Publish the MCP endpoint on the host.
  • --add-host
    Argument· required
    Let the container reach the Anytype desktop app on the host. Required on Linux, harmless on macOS and Windows.
  • MCP_SHARED_TOKEN
    Env var· optional· secret
    Optional bearer token required on the /mcp endpoint. Empty means open, for localhost only.
  • PORT
    Env var· optional
    Port the MCP endpoint listens on, inside the container and on the host.Default: 8769
  • ANYTYPE_API_BASE_URL
    Env var· optional
    Where the Anytype desktop API is reachable from inside the container.Default: http://host.docker.internal:31009
Show 3 more
  • ANYTYPE_VERSION
    Env var· optional
    Anytype API version header sent with every request.Default: 2025-11-08
  • ANYTYPE_API_HOST_HEADER
    Env var· optional
    Override the Host header sent to the Anytype API. Auto-derived when unset; Anytype rejects non-loopback hosts with 403.
  • ANYTYPE_MCP_SLIM_RESPONSES
    Env var· optional
    Compact API responses before returning them to the client. Set to false for raw payloads.Default: true

Listed in the official MCP Registry since Sep 5, 2026. Mirrored daily; last checked Nov 26, 2026.