Khwan
PYPI · KHWAN-MCP · 2 COMPONENTS · SCANNED SEP 20
Durable AI memory: recall distilled facts in a later session or subagent, and remember new ones.
Available components
Degraded
One or more channels of this server are currently unreachable; their trust score is decaying and will reach 0 if they stay down.
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security100
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- Runs hatchling.build at install time, a recognised native-build step with no shell scripting around it. View diagnostics → Pass
- 0 of 33 dependencies flagged as unhealthy. View diagnostics → Pass
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 23 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability57
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 1911 tokens (~318/item across 6 items; 6 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management87
- Stability observed for 26 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage71
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 0% of tool parameters carry a description.Fail
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 6 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 7 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
How do I install the Khwan MCP server?
Khwan runs locally as a PyPI package, launched with uvx khwan-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
pypi · khwan-mcp
claude mcp add ai-khwan-khwan-mcp -- uvx khwan-mcp
{
"mcpServers": {
"ai-khwan-khwan-mcp": {
"command": "uvx",
"args": [
"khwan-mcp"
]
}
}
} {
"servers": {
"ai-khwan-khwan-mcp": {
"command": "uvx",
"args": [
"khwan-mcp"
]
}
}
} codex mcp add ai-khwan-khwan-mcp -- uvx khwan-mcp
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ai-khwan-khwan-mcp": {
"type": "local",
"command": [
"uvx",
"khwan-mcp"
],
"enabled": true
}
}
} openclaw mcp add ai-khwan-khwan-mcp --command uvx --arg khwan-mcp
mcp_servers:
ai-khwan-khwan-mcp:
command: "uvx"
args: ["khwan-mcp"] {
"McpServers": {
"ai-khwan-khwan-mcp": {
"Transport": "stdio",
"Command": "uvx",
"Arguments": [
"khwan-mcp"
]
}
}
} assistant mcp add ai-khwan-khwan-mcp -t stdio -c uvx -a khwan-mcp
{
"mcpServers": {
"ai-khwan-khwan-mcp": {
"command": "uvx",
"args": [
"khwan-mcp"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 19 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 80 to 83. That category is still filling its 30-day observation window: 24 days of observed history at the previous scan, 25 at this one. The score rises as the window fills, whether or not the server changes.
- 17 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 73 to 77. That category is still filling its 30-day observation window: 22 days of observed history at the previous scan, 23 at this one. The score rises as the window fills, whether or not the server changes.
- 15 Sept 26 +16
- Malware scan: unverified → pass ▲ security
- 14 Sept 26 −15
- Malware scan: pass → unverified ▼ security
- 13 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 60 to 63. That category is still filling its 30-day observation window: 18 days of observed history at the previous scan, 19 at this one. The score rises as the window fills, whether or not the server changes.
- 12 Sept 26 +15
- Malware scan: unverified → pass ▲ security
- 11 Sept 26 −14
- Malware scan: pass → unverified ▼ security
- 8 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 43 to 47. That category is still filling its 30-day observation window: 13 days of observed history at the previous scan, 14 at this one. The score rises as the window fills, whether or not the server changes.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 20 Sept 2026 · Analysed pypi/khwan-mcp@0.3.12
Provenance No attestation
The registry publishes no build provenance for this version, so there is nothing to verify.
| Result | No attestation |
|---|---|
| Ecosystem | pypi |
Background: How many MCP packages publish verified provenance →
Install scripts 1 script
| Hook | Tier | Command |
|---|---|---|
| build_backend | allowlisted | hatchling.build |
Background: Why install scripts are a supply-chain risk →
Dependencies 33 packages
| Packages resolved | 33 |
|---|---|
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
khwan_cores ~211
List the isolated cores (brains) available on this account. Each core is a fully isolated brain — its own memory, identity and learning. HOW A CORE IS SELECTED DEPENDS ON HOW YOU CONNECTED, and the two are not interchangeable: * **stdio** (this package run locally): the ``KHWAN_CORE`` environment variable, read once at startup. Changing it needs a restart. * **remote** (a hosted URL): the path — ``/mcp/{core}/{user}``. The path asks, the token answers. ``KHWAN_CORE`` does NOTHING here; setting it and expecting the brain to change is a silent no-op. On a remote connection, do not advise ``KHWAN_CORE``. To reach a different brain, point the client at a different URL — usually by adding a second MCP server entry for it, so each keeps its own credentials and no re-auth is needed to switch.
Input schema present but exposes no named parameters.
| Name | Type | Req | Description |
|---|---|---|---|
| result | array | yes | – |
No examples provided.
khwan_memory ~193
Inspect what this brain currently remembers, newest first. A DEBUGGING window on the brain, not a way to seed a session. It returns recent entries in time order and ignores what you are working on, so it answers "is anything in here / did that write land" — not "what is relevant to this task". For the latter use ``khwan_recall``, which ranks by meaning and returns a bounded set. No model is called. Reach for it when a recall came back empty and you want to know whether the brain is empty or merely has nothing close, when confirming a ``khwan_remember`` persisted, or when the user asks what Khwan knows. Args: limit: max entries to return, newest first (default 20). Returns: The brain's recent memory entries, in the order they were written.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
khwan_prepare ~191
Pull the memory-enriched context for a turn BEFORE you answer. Khwan builds context from memory + the brain's constitution + a coherence gate. No model is called. Ground your reply in the returned ``context`` and respect ``allowed``/``reason``. Keep the returned ``turn_token`` and pass it to ``khwan_record`` after you answer. Args: input: The user's message / the turn you are about to answer. Returns: context: ready-to-use messages (memory + constitution) to ground your reply. coherence: optional float — how coherent this turn is with the brain (may be None). allowed: whether Khwan's coherence gate permits answering. reason: why, when not allowed (else None). turn_token: opaque token — pass it verbatim to khwan_record.
| Name | Type | Req | Description |
|---|---|---|---|
| input | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
khwan_recall ~451
SEED a session/subagent with a COMPACT, bounded set of relevant memories. The token-smart entry point for a caching host (Claude Code, Claude Desktop): call it ONCE at the start of a session or subagent — or when you need a fact that has scrolled out of context — NOT on every turn. It returns only the relevant facts (not Khwan's full prepared prompt), so you seed a fresh, bounded context instead of replaying a transcript. No model is called. Two limits are worth knowing, because neither is this tool's to set: - **Three facts is the ceiling.** The server ranks a wider candidate pool and keeps its top three, so `limit` can only narrow that further, never widen it. Asking for more returns three. - **A relevance floor applies, so an EMPTY `facts` is an answer.** It means the brain has nothing close to this question — read it as "not known here", not as a failure. Do not retry with a reworded query hoping for more, and do not fill the gap with whichever fact happened to be nearest. Lessons — what synthesis distilled from many turns — come back alongside the raw exchanges and LEAD the seed text: a rule earned over months outranks any single turn that happens to sit nearby in the index. Args: query: the task or topic to recall memory for. Phrase it as the work you are about to do, not as a keyword — it is matched on meaning. limit: cap on facts returned, 1-3. The server's own ceiling is 3, so this can only lower it. Leave it alone unless you want fewer than three. Returns: lessons: rules synthesis distilled from many past turns. facts: [{you_said, khwan_knows}] — the relevant remembered exchanges. count: how many facts were returned. seed_text: a ready-to-drop-in memory block for a subagent's brief ("" if none).
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| query | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
khwan_record ~91
Hand your answer back to Khwan AFTER you reply, so it persists + learns. Args: turn_token: the exact token returned by the matching ``khwan_prepare``. answer: the answer you gave the user for that turn. Returns: Khwan's record acknowledgement (persisted state / next-turn hints).
| Name | Type | Req | Description |
|---|---|---|---|
| answer | string | yes | – |
| turn_token | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
khwan_remember ~246
Persist a durable fact/preference so FUTURE sessions can recall it. A convenience over the prepare→record loop for the common "just remember this" case: it stores ``fact`` in the brain (no model call) so it outlives this session's context window and is available to the next ``khwan_recall``. **Reach for this the moment you are corrected.** A user rejecting your work, or telling you how they want it done, is the most durable thing a session produces and the easiest to lose — you fix the thing, the session ends, and the next one makes the same mistake. If the user is telling you something for the second time, the first time should have been stored here. Write the standing RULE, not the utterance. "Deploys go to staging first, never straight to production" survives into a session that never saw the conversation; "no, not like that" does not. Args: fact: the durable rule/preference to store, phrased to stand alone. Returns: stored: whether the fact was persisted; reason when not.
| Name | Type | Req | Description |
|---|---|---|---|
| fact | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
What is the Khwan MCP server?
Khwan is an MCP server listed in the public MCP registry as ai.khwan/khwan-mcp. Durable AI memory: recall distilled facts in a later session or subagent, and remember new ones. This page covers its PyPI package (khwan-mcp).
Is the Khwan MCP server safe to use?
Khwan scores 77 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 20 September 2026. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the Khwan MCP server expose?
Khwan exposes 6 tools: khwan_prepare, khwan_record, khwan_recall, khwan_remember, khwan_memory, khwan_cores. Their descriptions and schemas cost roughly 1,383 tokens of context every time the server is loaded.
Is the Khwan MCP server still maintained?
Khwan is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the Khwan MCP server under?
Khwan declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.