Anytype MCP Server
Lets your AI agent search and edit your Anytype notes: spaces, objects, lists, tags, types and templates.
536 stars on GitHubby Anytype (Any)License MITUpdated 21 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add anytype -e OPENAPI_MCP_HEADERS="<your value>" -- npx -y @anyproto/anytype-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
OPENAPI_MCP_HEADERS | JSON string of headers for Anytype API. Example: {"Authorization":"Bearer <YOUR_API_KEY>", "Anytype-Version":"2025-05-20"} | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Create a new space called Project Ideas with a short description
Add a Task object titled Research AI trends to the Project Ideas space
What it is
This server connects your AI agent to Anytype, an encrypted and local wiki app, through its API. It turns the Anytype API into MCP tools, so you can manage your knowledge base by talking to your agent. It can search, create objects and lists, and work with properties and tags.
What it can do
- Global and space search
- Spaces and members
- Objects and lists: create and update
- Properties and tags
- Types and templates
expected_etagcheck to avoid overwriting a changed object
When to use
- βΊWhen you want your agent to create tasks or notes in Anytype from a chat
- βΊWhen you want to find objects across your spaces by asking in plain words
- βΊWhen you want to organise items into lists or collections without clicking through the app
What you need
npx.Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
llm-wikiHelps your agent build a personal or team knowledge base in Obsidian, adding sources and keeping the links, index and notes up to date.anywriteHelps your agent interact with the Anytype local API. It controls objects, searches, and files. It's useful for managing data in an integrated way.siyuanLets your agent search, read, create, edit and delete notes in your self-hosted SiYuan knowledge base using its API.Frequently asked questions
Is it free and open source?
The readme says it is MIT licensed.
What do I need?
A running Anytype app and an API key from its settings. The key goes in the OPENAPI_MCP_HEADERS environment variable.
Where does it connect?
By default to http://127.0.0.1:31009. Set ANYTYPE_API_BASE_URL for another address, such as port 31012 for anytype-cli.
Can it use the older Anytype API?
Yes. It tries the v2 API first and falls back to v1 if v2 is not there.
Which clients work?
Claude Desktop, Cursor, Windsurf, Raycast, LM Studio, Kiro and Claude Code, among others.
Does it manage API keys?
No. Pairing and API-key management tools are left out on purpose.
If it does not work
- βΊCreate an API key in Anytype under App Settings, API Keys, and paste it into the config in place of
<YOUR_API_KEY> - βΊMake sure Anytype is running before the server starts; restart the MCP server after updating Anytype
- βΊSet
ANYTYPE_MCP_DEBUG=1to see operation names and response status on stderr
5 new skills a week. 1 minute to read.