LiticaLitica
Docs/Configuration

MCP Server

Configuration

Connect your MCP client to the hosted Litica server with one config block.

Before you start

  • You have a Litica API key. If not, create an account.
  • Node.js is installed on your machine (required for npx).

Claude Desktop connects through mcp-remote, a small bridge package that speaks HTTP for it. You do not need to install it separately, npx handles it automatically. Claude Code and Cursor speak HTTP natively, so they point straight at the server with a url and headers block, no bridge required.

Claude Desktop

Open your Claude Desktop config file and add the litica-memory entry undermcpServers. Replace lk_your-api-key with your actual key.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "litica-memory": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.litica.org/mcp/",
        "--header",
        "X-API-Key:lk_your-api-key"
      ]
    }
  }
}

Save the file and restart Claude Desktop. The memory tools will be available immediately.

Claude Code

Add a .mcp.json file to your project root, or add to your global Claude Code config at~/.claude/mcp.json.

.mcp.json
{
  "mcpServers": {
    "litica-memory": {
      "url": "https://mcp.litica.org/mcp/",
      "headers": { "X-API-Key": "lk_your-api-key" }
    }
  }
}

Cursor

Create or edit .cursor/mcp.json in your project root.

.cursor/mcp.json
{
  "mcpServers": {
    "litica-memory": {
      "url": "https://mcp.litica.org/mcp/",
      "headers": { "X-API-Key": "lk_your-api-key" }
    }
  }
}

Verify the connection

After restarting your client, ask your agent what memory tools it has access to. A working connection will show all four Litica tools — add_memory, search_memory, add_memories_batch, and add_documents — in the tools list.

You can also test it directly: ask Claude to remember something, then start a new conversation and ask it to recall. If Litica is connected, it will retrieve the memory across sessions.

Security note

Your API key is passed in plain text in the config file. Do not commit config files containing your key to source control.