MCP Server Studio

Khwan MCP server

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

Registry name: ai.khwan/khwan-mcp

Publisher
khwan.ai
Runs
Local or hosted
Package
PyPI
Version
0.3.12
Category
AI & agents
Updated
2026-08-27

Source code on GitHub

Set up Khwan (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "khwan-mcp": {
      "command": "uvx",
      "args": [
        "khwan-mcp==0.3.12"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>",
        "KHWAN_CORE": "<KHWAN_CORE>",
        "KHWAN_USER": "<KHWAN_USER>",
        "KHWAN_BASE_URL": "<KHWAN_BASE_URL>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add khwan-mcp -e KHWAN_API_KEY='<KHWAN_API_KEY>' -e KHWAN_CORE='<KHWAN_CORE>' -e KHWAN_USER='<KHWAN_USER>' -e KHWAN_BASE_URL='<KHWAN_BASE_URL>' -- uvx khwan-mcp==0.3.12

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "khwan-mcp": {
      "command": "uvx",
      "args": [
        "khwan-mcp==0.3.12"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>",
        "KHWAN_CORE": "<KHWAN_CORE>",
        "KHWAN_USER": "<KHWAN_USER>",
        "KHWAN_BASE_URL": "<KHWAN_BASE_URL>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "khwan-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "khwan-mcp==0.3.12"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>",
        "KHWAN_CORE": "<KHWAN_CORE>",
        "KHWAN_USER": "<KHWAN_USER>",
        "KHWAN_BASE_URL": "<KHWAN_BASE_URL>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "khwan-mcp": {
      "command": "uvx",
      "args": [
        "khwan-mcp==0.3.12"
      ],
      "env": {
        "KHWAN_API_KEY": "<KHWAN_API_KEY>",
        "KHWAN_CORE": "<KHWAN_CORE>",
        "KHWAN_USER": "<KHWAN_USER>",
        "KHWAN_BASE_URL": "<KHWAN_BASE_URL>"
      }
    }
  }
}

Set up Khwan (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "khwan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.khwan.ai/mcp/{core}/{user}"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http khwan-mcp 'https://mcp.khwan.ai/mcp/{core}/{user}'

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "khwan-mcp": {
      "url": "https://mcp.khwan.ai/mcp/{core}/{user}"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "khwan-mcp": {
      "type": "http",
      "url": "https://mcp.khwan.ai/mcp/{core}/{user}"
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "khwan-mcp": {
      "serverUrl": "https://mcp.khwan.ai/mcp/{core}/{user}"
    }
  }
}

Settings

NameRequiredWhat it is
KHWAN_API_KEYYesYour Khwan key from https://app.khwan.ai (kwk_live_...). It authenticates you to Khwan; it is not your model provider's key.
KHWAN_CORENoSelect a named core (brain). Paid plans only — the free plan has just `default`, and an unknown slug answers 404. Leave unset to use the default.
KHWAN_USERNoA separate brain inside the core, created on first write — 3 on the free plan, unlimited on paid. Sets the X-Khwan-User header.
KHWAN_BASE_URLNoOverride the API base URL, e.g. http://127.0.0.1:8010 for a self-hosted engine.

More ai & agents MCP servers