Connect Claude Desktop to AI Memory via MCP
MCP requires Node.js and npm to be installed on your system.
⚠️ Don't have Node.js? Install it first:
Verify installation:
node --versionShould show: v18.0.0 or higher
npm --versionShould show: 9.0.0 or higher
✅ Good news: npx comes with npm automatically! You don't need to install mcp-remote separately - npx will handle it.
Before connecting to the MCP server, you need an AI Memory account:
💡 Tip: Use the same email when authenticating via MCP client
Config file location:
%APPDATA%\Claude\claude_desktop_config.jsonConfig file location:
~/Library/Application Support/Claude/claude_desktop_config.jsonConfig file location:
~/.config/Claude/claude_desktop_config.jsonAdd this configuration (copy and paste):
{
"mcpServers": {
"ai-memory": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.persistmemory.com/mcp"
]
}
}
}Config file location:
%APPDATA%\Windsurf\mcp_settings.jsonConfig file location:
~/Library/Application Support/Windsurf/mcp_settings.jsonConfig file location:
~/.config/Windsurf/mcp_settings.jsonAdd this configuration (copy and paste):
{
"mcpServers": {
"ai-memory": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.persistmemory.com/mcp"
]
}
}
}Config file location:
%APPDATA%\Cursor\User\globalStorage\mcp-settings.jsonConfig file location:
~/Library/Application Support/Cursor/User/globalStorage/mcp-settings.jsonConfig file location:
~/.config/Cursor/User/globalStorage/mcp-settings.jsonAdd this configuration (copy and paste):
{
"mcpServers": {
"ai-memory": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.persistmemory.com/mcp"
]
}
}
}Config file location:
%APPDATA%\Code\User\globalStorage\mcp-settings.jsonConfig file location:
~/Library/Application Support/Code/User/globalStorage/mcp-settings.jsonConfig file location:
~/.config/Code/User/globalStorage/mcp-settings.jsonAdd this configuration (copy and paste):
{
"inputs": [],
"servers": {
"ai-memory": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.persistmemory.com/mcp"
]
}
}
}📝 Note: VS Code format uses "inputs" and "servers" keys (slightly different from Claude Desktop)
For any other MCP client, try the standard format first. Check your client's documentation for specifics.
{
"mcpServers": {
"ai-memory": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.persistmemory.com/mcp"
]
}
}
}ℹ️ Notice: The config above doesn't have a session ID yet. You'll add that in the next step!