Remote memory bank management inspired by Cline Memory Bank, with per-project isolation and file structure validation.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add memory-bank --env MEMORY_BANK_ROOT='<MEMORY_BANK_ROOT>' -- npx -y @smithery/cli install @alioshr/memory-bank-mcp --client claude~/.codex/config.toml
[mcp_servers.memory-bank]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@alioshr/memory-bank-mcp", "--client", "claude"]
env = { MEMORY_BANK_ROOT = "<MEMORY_BANK_ROOT>" }
# codex mcp add memory-bank --env MEMORY_BANK_ROOT='<MEMORY_BANK_ROOT>' -- npx -y @smithery/cli install @alioshr/memory-bank-mcp --client claude~/.cursor/mcp.json
{
"mcpServers": {
"memory-bank": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@alioshr/memory-bank-mcp",
"--client",
"claude"
],
"env": {
"MEMORY_BANK_ROOT": "<MEMORY_BANK_ROOT>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"memory-bank": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@alioshr/memory-bank-mcp",
"--client",
"claude"
],
"env": {
"MEMORY_BANK_ROOT": "<MEMORY_BANK_ROOT>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"memory-bank": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@alioshr/memory-bank-mcp",
"--client",
"claude"
],
"env": {
"MEMORY_BANK_ROOT": "<MEMORY_BANK_ROOT>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"memory-bank": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@alioshr/memory-bank-mcp",
"--client",
"claude"
],
"env": {
"MEMORY_BANK_ROOT": "<MEMORY_BANK_ROOT>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"memory-bank": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@alioshr/memory-bank-mcp",
"--client",
"claude"
],
"env": {
"MEMORY_BANK_ROOT": "<MEMORY_BANK_ROOT>"
}
}
}
}需要的环境变量
MEMORY_BANK_ROOT
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。