This guide covers integrating a self-hosted Anytype instance (running on a VPS) with Claude Desktop via the Model Context Protocol (MCP).
- Anytype Desktop (v0.46.0 or later) installed locally.
- Node.js installed locally (to run
npx). - Claude Desktop app installed.
- Access to your VPS
client-config.yml.
Anytype's API currently runs through the desktop client. You must point your local app to your self-hosted node.
- Log Out of Anytype on your computer.
- On the onboarding screen, click the Gear Icon (top right).
- Set the Network field to Self-hosted.
- Upload your VPS
client-config.ymlfile and click Save. - Log back into your identity.
- In Anytype, go to App Settings > API Keys.
- Click Create new.
- Copy the Bearer Token immediately; it will not be shown again.
- Open Claude Desktop.
- Go to Settings > Developer > Edit Config. This opens
claude_desktop_config.json. - Add the following configuration (replace
<YOUR_API_KEY>with your token):
{
"mcpServers": {
"anytype": {
"command": "npx",
"args": ["-y", "@anyproto/anytype-mcp"],
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\"}"
}
}
}
}- Restart Claude Desktop completely (Quit and Re-open).
- Look for the Plug Icon in the bottom right of the chat bar to confirm the server is active.
- Test a command: Ask Claude, "What are the names of my Anytype spaces?" or "Create a new note in Anytype called 'Claude Test'."