io.github.anyproto/anytype-mcp MCP Server
io.github.anyproto/anytype-mcp
Manage your encrypted, local Anytype knowledge base through AI conversation via natural language.
What is the io.github.anyproto/anytype-mcp MCP server?
The Anytype MCP server is the official Model Context Protocol server that connects AI assistants like Claude, Cursor, and Windsurf to your Anytype workspace, an encrypted, local-first, and collaborative wiki/knowledge base. It converts Anytype's OpenAPI specification into MCP tools, letting AI agents search, read, and manage spaces, objects, properties, and templates through natural language.
Anytype MCP Server bridges AI assistants and Anytype's local knowledge base API by exposing Anytype's OpenAPI capabilities as MCP tools. It requires an API key generated from Anytype's app settings and runs via npx, connecting by default to a local Anytype API instance. Once configured, AI clients can create, search, and organize spaces, objects, lists, properties, and templates within Anytype using plain-language requests.
How to install io.github.anyproto/anytype-mcp
Copy-paste configuration for popular MCP clients.
OPENAPI_MCP_HEADERSrequiredsecretJSON string of headers for Anytype API. Example: {"Authorization":"Bearer <YOUR_API_KEY>", "Anytype-Version":"2025-05-20"}
{
"mcpServers": {
"anytype-mcp": {
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<YOUR_OPENAPI_MCP_HEADERS>"
}
}
}
}{
"mcpServers": {
"anytype-mcp": {
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<YOUR_OPENAPI_MCP_HEADERS>"
}
}
}
}{
"mcpServers": {
"anytype-mcp": {
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<YOUR_OPENAPI_MCP_HEADERS>"
}
}
}
}{
"servers": {
"anytype-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<YOUR_OPENAPI_MCP_HEADERS>"
}
}
}
}claude mcp add anytype-mcp --env OPENAPI_MCP_HEADERS=<YOUR_OPENAPI_MCP_HEADERS> -- npx -y @anyproto/anytype-mcpTools & capabilities
Tools this server exposes to the agent.
Global & Space Search— Search across all spaces or within a specific space in Anytype.Spaces & Members— Create and manage Anytype spaces and their members.Objects & Lists— Create, update, and organize objects and lists/collections within a space.Properties & Tags— Manage object properties and tags.Types & Templates— Work with object types and templates for structuring content.
Use cases
- Create new spaces and set descriptions via conversational commands
- Add and manage objects (e.g., tasks, notes) with properties like due dates and assignees
- Build collections/lists and add existing objects to them
- Search globally across spaces or within a specific space for objects
- Manage members, types, and templates within an Anytype workspace
io.github.anyproto/anytype-mcp MCP server FAQ
It exposes Anytype's API as MCP tools so AI assistants can search, create, and manage spaces, objects, properties, types, and templates in your Anytype knowledge base through natural language.
Yes, it's an open-source npm package (@anyproto/anytype-mcp) licensed under MIT, free to install and run.
Add an MCP server config pointing to `npx -y @anyproto/anytype-mcp` with an `OPENAPI_MCP_HEADERS` env variable containing your Anytype API key and version header; Cursor also has a one-click install deep link available in the README.
You need an API key generated from Anytype's App Settings > API Keys section (or via `npx -y @anyproto/anytype-mcp get-key`), passed as a Bearer token in the OPENAPI_MCP_HEADERS environment variable.
Yes, by default it connects to http://127.0.0.1:31009, but you can set ANYTYPE_API_BASE_URL to point to anytype-cli (port 31012) or another custom base URL.
Yes, the README provides a `claude mcp add` command to register the server with your API key and version headers directly from the CLI.
README (reference)
Source of truth, from the repository.
Anytype MCP Server
<a href="https://npmjs.org/package/@anyproto/anytype-mcp"><img src="https://img.shields.io/npm/v/@anyproto/anytype-mcp.svg" alt="NPM version" height="20" /></a> <a href="https://cursor.com/en-US/install-mcp?name=anytype&config=eyJlbnYiOnsiT1BFTkFQSV9NQ1BfSEVBREVSUyI6IntcIkF1dGhvcml6YXRpb25cIjpcIkJlYXJlciA8WU9VUl9BUElfS0VZPlwiLCBcIkFueXR5cGUtVmVyc2lvblwiOlwiMjAyNS0xMS0wOFwifSJ9LCJjb21tYW5kIjoibnB4IC15IEBhbnlwcm90by9hbnl0eXBlLW1jcCJ9"><img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Add anytype MCP server to Cursor" height="20" /></a> <a href="https://lmstudio.ai/install-mcp?name=anytype&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBhbnlwcm90by9hbnl0eXBlLW1jcCJdLCJlbnYiOnsiT1BFTkFQSV9NQ1BfSEVBREVSUyI6IntcIkF1dGhvcml6YXRpb25cIjpcIkJlYXJlciA8WU9VUl9BUElfS0VZPlwiLCBcIkFueXR5cGUtVmVyc2lvblwiOlwiMjAyNS0xMS0wOFwifSJ9fQ%3D%3D"><img src="https://files.lmstudio.ai/deeplink/mcp-install-light.svg" alt="Add MCP Server anytype to LM Studio" height="20" /></a> <a href="https://kiro.dev/launch/mcp/add?name=anytype&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40anyproto%2Fanytype-mcp%22%5D%2C%22env%22%3A%7B%22OPENAPI_MCP_HEADERS%22%3A%22%7B%5C%22Authorization%5C%22%3A%5C%22Bearer%20%3CYOUR_API_KEY%3E%5C%22%2C%20%5C%22Anytype-Version%5C%22%3A%5C%222025-11-08%5C%22%7D%22%7D%7D"><img src="https://kiro.dev/images/add-to-kiro.svg" alt="Add to Kiro" height="20" /></a>
The Anytype MCP Server is a Model Context Protocol (MCP) server enabling AI assistants to seamlessly interact with Anytype's API through natural language.
It bridges the gap between AI and Anytype's powerful features by converting Anytype's OpenAPI specification into MCP tools, allowing you to manage your knowledge base through conversation.
Features
- Global & Space Search
- Spaces & Members
- Objects & Lists
- Properties & Tags
- Types & Templates
Quick Start
1. Get Your API Key
- Open Anytype
- Go to App Settings
- Navigate to API Keys section
- Click on
Create newbutton
You can also get your API key using the command line:
npx -y @anyproto/anytype-mcp get-key
</details>
2. Configure Your MCP Client
Claude Desktop, Cursor, Windsurf, Raycast, etc.
Add the following configuration to your MCP client settings after replacing <YOUR_API_KEY> with your actual API key:
{
"mcpServers": {
"anytype": {
"command": "npx",
"args": ["-y", "@anyproto/anytype-mcp"],
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-11-08\"}"
}
}
}
}
Tip: After creating an API key in Anytype, you can copy that ready-to-use configuration snippet with your API key already filled in from the API Keys section.
Claude Code (CLI)
Run this command to add the Anytype MCP server after replacing <YOUR_API_KEY> with your actual API key:
claude mcp add anytype -e OPENAPI_MCP_HEADERS='{"Authorization":"Bearer <YOUR_API_KEY>", "Anytype-Version":"2025-11-08"}' -s user -- npx -y @anyproto/anytype-mcp
<details>
<summary>Alternative: Global Installation</summary>
If you prefer to install the package globally:
- Install the package:
npm install -g @anyproto/anytype-mcp
- Update your MCP client configuration to use the global installation:
{
"mcpServers": {
"anytype": {
"command": "anytype-mcp",
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-11-08\"}"
}
}
}
}
</details>
Custom API Base URL
By default, the server connects to http://127.0.0.1:31009. For anytype-cli (port 31012) or other custom base URLs, set ANYTYPE_API_BASE_URL:
MCP Client (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"anytype": {
"command": "npx",
"args": ["-y", "@anyproto/anytype-mcp"],
"env": {
"ANYTYPE_API_BASE_URL": "http://localhost:31012",
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-11-08\"}"
}
}
}
}
Claude Code (CLI):
claude mcp add anytype \
-e ANYTYPE_API_BASE_URL='http://localhost:31012' \
-e OPENAPI_MCP_HEADERS='{"Authorization":"Bearer <YOUR_API_KEY>", "Anytype-Version":"2025-11-08"}' \
-s user -- npx -y @anyproto/anytype-mcp
</details>
Example Interactions
Here are some examples of how you can interact with your Anytype:
- "Create a new space called 'Project Ideas' with description 'A space for storing project ideas'"
- "Add a new object of type 'Task' with title 'Research AI trends' to the 'Project Ideas' space"
- "Create a second one with title 'Dive deep into LLMs' with due date in 3 days and assign it to me"
- "Now create a collection with the title "Tasks for this week" and add the two tasks to that list. Set due date of the first one to 10 days from now"
Development
Installation from Source
- Clone the repository:
git clone https://github.com/anyproto/anytype-mcp.git
cd anytype-mcp
- Install dependencies:
npm install -D
- Build the project:
npm run build
- Link the package globally (optional):
npm link
Contribution
Thank you for your desire to develop Anytype together!
❤️ This project and everyone involved in it is governed by the Code of Conduct.
🧑💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.
🫢 For security findings, please email security@anytype.io and refer to our security guide for more information.
🤝 Follow us on Github and join the Contributors Community.
Made by Any — a Swiss association 🇨🇭
Licensed under MIT.
Related MCP servers
Scrapling MCP Server
Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.
Chrome DevTools MCP
Give your AI coding agent full control of a live Chrome browser for automation, debugging, and performance analysis.
com.puter/mcp-server
Let AI agents manage your Puter files, websites, and serverless workers over MCP.
Browser automation for AI agents via MCP, powering ByteDance's Agent TARS hybrid GUI/DOM browser control.
Run arbitrary shell commands from an MCP-connected AI agent.
Filesystem access MCP server from ByteDance's UI-TARS/Agent TARS ecosystem.