
Anytype (self-hosted HTTP)
io.github.ohneben由 GitHub 帳號 ohneben 發布v1.0.6更新於 Oct 24, 2026
Self-hosted Anytype MCP server: the full Anytype API as an always-on Docker + HTTP endpoint.
概覽
自託管的 Anytype MCP 伺服器,透過 Docker 與 HTTP 暴露本機 Anytype 桌面 API,讓助理搜尋和編輯你的知識庫。
- 可以做什麼
- 搜尋並讀取 Anytype 空間中的物件、筆記和任務,包括透過 get-object 取得完整 Markdown 內文。建立和更新物件、任務與空間,並加入清單等內容。刪除物件,工具依唯讀、寫入和破壞性操作分組提示。一次呼叫即可取得所有空間、類型與屬性定義的概覽。預設回傳精簡後的 API 回應以節省上下文。
- 適用情境
- 當你希望在同一台機器上為多個 MCP 用戶端提供常駐的 Anytype 連線,而不是每個用戶端各自啟動 stdio 子程序時使用。適合讓助理在本機 Anytype 知識庫中搜尋、建立或整理筆記和任務。
- 執行需求
- 需安裝並執行 Anytype 桌面應用程式,其本機 API 可連線(預設 127.0.0.1:31009),並需要 Docker。需在桌面應用程式中建立 Anytype API 金鑰並設為 ANYTYPE_API_KEY。選用設定包括 ANYTYPE_API_BASE_URL、ANYTYPE_API_HOST_HEADER、ANYTYPE_VERSION、ANYTYPE_MCP_SLIM_RESPONSES、PORT 和 MCP_SHARED_TOKEN。僅支援 stdio 的用戶端需要 mcp-remote 橋接。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Anytype (self-hosted HTTP),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ohneben Anytype MCP
[CI] [MCP Registry] [License: MIT] [Anytype-MCP MCP server]
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.
*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.
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.
The server is tuned to keep your assistant fast and frugal with tool calls:
API-get-overview— a synthesized tool that returns all spaces with their types (or, given aspace_id, that space's types and property definitions) in a single call, instead of a list-spaces → list-types → list-properties cascade.- Slim responses — API payloads are compacted before they reach the
assistant: empty property values,
objectdiscriminators, and nulls are dropped, and the type embedded in each search/list result is reduced to its identifiers. This typically shrinks list/search responses by well over half, which means less context burned per call and fewer follow-up calls. SetANYTYPE_MCP_SLIM_RESPONSES=falseto get raw API payloads instead. - Routing hints — tool descriptions tell the assistant which tool is
cheapest for a job (e.g. search instead of paginating lists, and that only
get-objectreturns the full markdown body).
How it works
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:
2. Start the server:
3. Confirm it's running:
4. Connect your MCP client. Add an anytype entry under mcpServers, then
fully quit and reopen the app. Pick the form that matches your client:
Claude Code (or any client that speaks Streamable-HTTP natively) — connect directly, no helper process:
Claude Desktop (its config is stdio-only) needs the mcp-remote bridge.
Install it once, then launch it via node rather than npx:
Why not
npx -y mcp-remote …?npxre-resolves the package through the npm cache on every launch. When a client cold-starts several MCP servers at once they contend on that cache, and some launchers can wedge inside npx for minutes — which the client reports as a connection timeout. Installingmcp-remoteonce and launching it withnoderemoves that step. Use absolute paths (GUI apps don't inherit your shellPATH, andmcp-remote's own#!/usr/bin/env nodeshebang can't findnodeotherwise). The paths above are Apple-Silicon Homebrew defaults; adjust withwhich nodeandnpm root -gif yours differ.
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):
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:
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_TOKENand send it as aBearerheader or?token=….
MCP Registry
This server publishes to the official
MCP Registry under the name
io.github.ohneben/anytype-mcp. To look up the current listing:
Its listing is described by server.json and is republished
automatically on every v*.*.* tag by
.github/workflows/publish-mcp.yml,
which waits for the matching GHCR image and authenticates with GitHub OIDC (no
secret needed). The registry proves the image is ours via the
io.modelcontextprotocol.server.name label in the Dockerfile,
so the GHCR package must stay Public.
Releasing
The git tag is the version. Pushing v1.2.3 is the whole release: the tag
is stamped into package.json before the image is built and into server.json
before the listing is published, so the version the server reports to MCP
clients, the image tag, and the registry entry cannot disagree. Nothing needs to
be bumped by hand first, and the versions committed here are only the defaults
used by local builds.
Credits & license
Built on the official Anytype MCP server by Any Association. Licensed under the MIT License.
來源:README.md,提交 7e1c132
工具
0版本歷史
1- v1.0.6最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分