# Khwan

> Khwan is an open-source MCP server. Durable AI memory: recall distilled facts in a later session or subagent, and remember new ones. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://khwan.ai
- **Repository:** https://github.com/khwanlabs/khwan-mcp
- **MCP Registry name:** ai.khwan/khwan-mcp
- **Listing updated:** 2026-11-13

## About

Durable AI memory: recall distilled facts in a later session or subagent, and remember new ones.

## Install

### Claude Code (Terminal)

```sh
claude mcp add khwan-mcp --env KHWAN_API_KEY='<KHWAN_API_KEY>' -- uvx khwan-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "khwan-mcp": {
      "command": "uvx",
      "args": [
        "khwan-mcp"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "khwan-mcp": {
      "command": "uvx",
      "args": [
        "khwan-mcp"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "khwan-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "khwan-mcp"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "khwan-mcp": {
      "command": "uvx",
      "args": [
        "khwan-mcp"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "khwan-mcp": {
      "command": "uvx",
      "args": [
        "khwan-mcp"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Khwan free?

Yes. Khwan is open source, so you can use and self-host it for free.

### How do I add Khwan to Claude Code?

Run this command in your terminal: claude mcp add khwan-mcp --env KHWAN_API_KEY='<KHWAN_API_KEY>' -- uvx khwan-mcp

### What are the best alternatives to Khwan?

The closest alternatives to Khwan are Brainfeather, YourMemory, GrantAi Memory, Memory and Kirok Memory.

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Brainfeather](https://ai-powered.com/mcp/brainfeather): Brainfeather is an MCP server.
- [YourMemory](https://ai-powered.com/mcp/yourmemory): YourMemory is an open-source MCP server.
- [GrantAi Memory](https://ai-powered.com/mcp/grantai-memory): GrantAi Memory is an open-source MCP server for knowledge and memory.
- [Memory](https://ai-powered.com/mcp/memory-6): Memory is an open-source MCP server for knowledge and memory.
- [Kirok Memory](https://ai-powered.com/mcp/kirok-memory): Kirok Memory is an open-source MCP server for knowledge and memory.
- [Central Intelligence](https://ai-powered.com/mcp/central-intelligence): Central Intelligence is an open-source MCP server.
- [Archetypal Ai](https://ai-powered.com/mcp/archetypal-ai): Archetypal Ai is an open-source MCP server.
- [Alexein AI](https://ai-powered.com/mcp/alexein-ai): Alexein AI is an MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/khwan
