Lets agents search an Anytype knowledge base and manage spaces, objects, lists, properties and tags through natural language.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add anytype --env OPENAPI_MCP_HEADERS='<OPENAPI_MCP_HEADERS>' -- npx -y @anyproto/anytype-mcp~/.codex/config.toml
[mcp_servers.anytype]
command = "npx"
args = ["-y", "@anyproto/anytype-mcp"]
env = { OPENAPI_MCP_HEADERS = "<OPENAPI_MCP_HEADERS>" }
# codex mcp add anytype --env OPENAPI_MCP_HEADERS='<OPENAPI_MCP_HEADERS>' -- npx -y @anyproto/anytype-mcp~/.cursor/mcp.json
{
"mcpServers": {
"anytype": {
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<OPENAPI_MCP_HEADERS>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"anytype": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<OPENAPI_MCP_HEADERS>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"anytype": {
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<OPENAPI_MCP_HEADERS>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"anytype": {
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<OPENAPI_MCP_HEADERS>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"anytype": {
"command": "npx",
"args": [
"-y",
"@anyproto/anytype-mcp"
],
"env": {
"OPENAPI_MCP_HEADERS": "<OPENAPI_MCP_HEADERS>"
}
}
}
}Environment variables
OPENAPI_MCP_HEADERS
Replace the placeholders with your own credentials and keep them out of version control.