Skip to content
Grok

memory for Grok

io.github.sharedmemoryai/memory

Persistent memory for AI agents. Remember, recall, and explore a shared knowledge graph.

client:Grok transport:stdio runtime:npm

Install memory in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "memory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sharedmemory/mcp-server"
      ],
      "env": {
        "SHAREDMEMORY_API_KEY": "<SHAREDMEMORY_API_KEY>",
        "SHAREDMEMORY_API_URL": "<SHAREDMEMORY_API_URL>",
        "SHAREDMEMORY_VOLUME_ID": "<SHAREDMEMORY_VOLUME_ID>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

memory in other clients