{/* Step 1: Client Selection */}
{Object.entries(clients)
.slice(0, 7)
.map(([key, clientName]) => (
))}
{/* Step 2: One-click Install for Cursor, Project Selection for others, or MCP URL */}
{selectedClient && (
2
{selectedClient === "cursor"
? "Install Supermemory MCP"
: selectedClient === "mcp-url"
? "MCP Server Configuration"
: "Select Target Project (Optional)"}
{selectedClient && selectedClient !== "mcp-url" && (
{
setSelectedClient("mcp-url")
setMcpUrlTab("manual")
if (
!manualApiKey &&
!createMcpApiKeyMutation.isPending
) {
createMcpApiKeyMutation.mutate()
}
}}
/>
)}
{/* Tabs */}
{selectedClient === "cursor" ? (
{/* Tab Content */}
{cursorInstallTab === "oneClick" ? (
) : (
Choose a project and follow the installation steps below
)}
) : selectedClient === "mcp-url" ? (
{mcpUrlTab === "oneClick" ? (
) : (
Add this configuration to your MCP settings file with
authentication
{createMcpApiKeyMutation.isPending ? (
) : (
<>
{`{
"supermemory-mcp": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.supermemory.ai/mcp"],
"env": {},
"headers": {
"Authorization": "Bearer ${manualApiKey || "your-api-key-here"}"
}
}
}`}
The API key is included as a Bearer token in the
Authorization header
>
)}
)}
) : (
)}
)}
{/* Step 3: Command Line - Show for manual installation or non-cursor clients */}
{selectedClient &&
selectedClient !== "mcp-url" &&
(selectedClient !== "cursor" || cursorInstallTab === "manual") && (
3
{selectedClient === "cursor" &&
cursorInstallTab === "manual"
? "Manual Installation Command"
: "Installation Command"}
{selectedClient === "cursor" && cursorInstallTab === "manual"
? "Copy and run this command in your terminal for manual installation (or switch to the one-click option above)"
: "Copy and run this command in your terminal to install the MCP server"}
)}
{/* Blurred Command Placeholder - Only show when no client selected */}
{!selectedClient && (
Select a client above to see the installation command
)}
Use this URL to configure supermemory in your AI assistant
{/* TODO: Show when connection successful or not */}
{/*
What You Can Do
- • Ask your AI to save important information as memories
- • Search through your saved memories during conversations
- • Get contextual information from your knowledge base
*/}