Lets agents search an Anytype knowledge base and manage spaces, objects, lists, properties and tags through natural language.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
OPENAPI_MCP_HEADERS
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。