About Kimi Code Memory MCP Server
Kimi Code Memory MCP Server is an MCP server published by Zehee in the Science category: local stdio MCP server providing cross-session memory for Kimi Code CLI. Conduid read 24 tools from its source: bootstrap_workspace, delete, delete_search_view, delete_theme, get_current_workspace, list and 18 more. It is published to npm as kimi-code-memory-mcp-server and starts with npx.
The repository has 5 stars and 1 forks, and its last commit was on 23 Nov 2026. Conduid has no tagged release on record for it. Its topics include memory, kimi, kimi-code, cli, kimi-memory and cross-session.
Install
claude mcp add kimi-code-memory-mcp-server -- npx -y kimi-code-memory-mcp-servernpx -y kimi-code-memory-mcp-servergit clone https://github.com/Zehee/kimi-code-memory-mcp-serverTools (24)
bootstrap_workspaceSession bootstrap: loads workspace context, essence, notes refs, and a memory index tree with recent changes marked [new].| Parameter | Type | Description |
|---|---|---|
| detailed_rounds | number | Number of most recent rounds to return in full detail. |
| force | boolean | If true, return recent context even when the current session already has turns. |
| summary_rounds | number | Number of preceding rounds to return as summaries. |
deleteDelete a memory entry by key and folder.| Parameter | Type | Description |
|---|---|---|
| folder | string | Subfolder (default: memory) |
| key * | string | Memory key |
delete_search_viewDelete a saved search view. Set deleteRefinedTurns to true to also remove the refined rows referenced only by this view. This invalidates the current cache rather than creating a tombstone: the background indexer will rebuild missing rows from the wire on a later pass. Rows still referenced by another search view or by a theme are kept and reported as skippedSharedRefinedTurns.| Parameter | Type | Description |
|---|---|---|
| deleteRefinedTurns | boolean | If true, also delete all refined turns referenced by this view. |
| key * | string | Search view key without extension: "search-<12 hex>" (legacy) or "search-v2-<32 hex>". |
delete_themeDelete a theme association file. This does not delete the refined turns or memories referenced by the theme.| Parameter | Type | Description |
|---|---|---|
| theme * | string | Theme identifier to delete |
get_current_workspaceReturn the current cwd, workspace id and store path.listList memory entries in the workspace, sorted by most recently updated.| Parameter | Type | Description |
|---|---|---|
| folder | string | Filter to a specific subfolder |
| limit | number | Maximum number of entries to return (default: all) |
| tag | string | Filter to entries containing this tag |
list_search_viewsList saved search views. Each view records the clusters discovered by a previous search_context call. Use these views as candidate sets before creating or extending a theme.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of recent views to return |
list_tagsList all tags used in the current workspace.list_themesList all theme identifiers stored in the current workspace.load_more_contextLoad older conversation rounds from the active wire.jsonl, summarized, before a given turn id.| Parameter | Type | Description |
|---|---|---|
| before_turn_id * | number | Exclusive turn id; return rounds older than this. |
| limit | number | Maximum number of older rounds to return. |
load_turn_contextLoad the full detailed content of specific conversation turns by sessionId and turnId.| Parameter | Type | Description |
|---|---|---|
| references * | array | Array of { sessionId, turnId } references identifying the conversation rounds to load |
moveMove a memory entry to another folder, optionally renaming it.| Parameter | Type | Description |
|---|---|---|
| folder | string | Source subfolder (default: memory) |
| key * | string | Memory key |
| newKey | string | Optional new key to rename the memory |
| toFolder * | string | Destination subfolder |
open_memory_dashboardOpens the memory dashboard in the default browser. Starts the dashboard server if it is not already running.organize_memoriesTwo-stage workspace memory organizer. Empty call returns existing essence + pending memory files + rules. Call with content to store the organized essence.md.| Parameter | Type | Description |
|---|---|---|
| content | string | Organized essence Markdown body. Key facts should cite sources inline using `> 来源:memory/<folder>/key`. |
| prepareToken | string | Token returned by the prepare stage. Store rejects with a conflict when the essence or memory files changed since prepare. |
| sources | array | Optional list of memory/ keys incorporated into the essence, returned in the tool result for tracking. |
recallRead a memory entry by key and folder.| Parameter | Type | Description |
|---|---|---|
| folder | string | Subfolder (default: memory) |
| key * | string | Memory key |
refine_session_turnsRead a session wire.jsonl and generate Refined Turn Summaries. Output is written to refined/<sessionId>.jsonl.| Parameter | Type | Description |
|---|---|---|
| limit | number | Optional limit: refine only the most recent N turns |
| sessionId | string | Session identifier (default: current session) |
| session_id | string | Alias for sessionId |
| turnIds | array | Optional list of turnIds to refine |
rememberWrite or overwrite a memory entry as a Markdown file with YAML frontmatter.| Parameter | Type | Description |
|---|---|---|
| content | string | Markdown body content. For decisions include rationale, impact, and related files. For rules include scope and consequence. For knowledge include scenario and related files/interfaces. For references include URL and relevance. Example decision: "# Use SQLite\n\n## Rationale\n- Single-file deployment\n- No extra service\n\n## Impact\nAll cache reads/writes go through src/cache.js.\n\n## Related files\nsrc/cache.js, docs/cache.md" |
| expectedRevision | number | Optional optimistic concurrency check. The write is rejected when the stored revision differs. |
| folder | string | Subfolder under the workspace (default: memory) |
| key * | string | Unique identifier used as filename base |
| sensitivity | string | Visibility hint stored in frontmatter. |
| sourceRefs | array | Provenance references recorded in frontmatter, e.g. "session-turn:<sessionId>:<turnId>" or a memory path. Omit to keep, empty array to clear. |
| supersedes | array | Memory keys/ids this entry replaces. Omit to keep, empty array to clear. |
| tags | array | Tags stored in YAML frontmatter. Omit to keep the current tags, pass an empty array to clear them. |
| themes | array | Optional theme names to associate with this memory |
restore_memoryRestore a previously deleted memory from the trash back to its original folder and key. The stable id and revision are preserved and theme references are reactivated.| Parameter | Type | Description |
|---|---|---|
| folder | string | Subfolder it was deleted from (default: memory) |
| key * | string | Memory key to restore |
rollback_essenceRestore a previous essence version from essence/history/. Without arguments restores the newest archive; pass revision to pick one. The current version is archived first, so a rollback is itself rollbackable.| Parameter | Type | Description |
|---|---|---|
| revision | number | Specific essence revision to restore (defaults to the newest archive). |
searchCase-insensitive keyword search across memory titles and contents.| Parameter | Type | Description |
|---|---|---|
| folder | string | Limit search to a subfolder |
| query * | string | Keyword to search |
search_contextSearch conversation rounds across all workspace session wires by keywords and optional date range. Default detail: 'normal' keeps output within ~6000 chars. Use detail: 'compact' for a quick overview (no match text, no cluster members). Use detail: 'full' when you need full match text and all cluster members.| Parameter | Type | Description |
|---|---|---|
| cluster_gap_seconds | number | 相邻 turn 被归为同一「簇」的最大时间间隔(秒)。一个簇代表一段连续的讨论或决策。默认 90 秒;协作节奏慢可适当调大,话题切换快则调小。 |
| cursor | string | Resume from the nextCursor returned by a previous partial search. Cursor pages do not report a global totalMatches. |
| date_from | string | Optional start date in YYYY-MM-DD format |
| date_to | string | Optional end date in YYYY-MM-DD format |
| detail | string | Output detail level. 'normal' (default) returns truncated text and cluster members within the output budget. 'compact' returns only references/counts. 'full' disables the budget and returns longer text. |
| limit | number | Maximum number of matching rounds to return |
| max_cluster_size | number | 单个 cluster 最多包含的 turn 数,防止连续讨论过长时上下文爆炸。默认 15。 |
| max_output_chars | number | Maximum output length in characters for normal mode. Default 6000. Ignored in compact/full. |
| query * | string | Keywords to search for in conversation rounds |
| save_view | boolean | Persist this search as a search view. Default true. Set false for read-only guard checks so the search does not create state. |
sync_workspace_indexReconciles index.json with the filesystem. Empty call scans and reports mismatches. Call with folderComments to set folder descriptions.| Parameter | Type | Description |
|---|---|---|
| folderComments | object | Optional map of folder paths to comments. |
tag_theme仔细分析 turn 内容与 theme 确定相关后,将 turn 挂载到 theme。禁止仅凭关键词匹配挂载;必须确认内容 genuinely belongs to the theme 才可关联。如果 theme 不存在会自动创建。| Parameter | Type | Description |
|---|---|---|
| memoryFolder | string | Optional memory folder (default: memory) |
| memoryKey | string | Optional memory key to attach |
| memoryTitle | string | Optional display title for the memory reference |
| sessionId | string | Optional session id of a conversation turn to attach |
| theme * | string | Theme identifier. A theme is a semantic group, not a keyword tag. |
| turnId | number | Optional turn id within the session |
trace_themeTrace the evolution of a theme across sessions and memories. Returns associated turns and memories sorted by time.| Parameter | Type | Description |
|---|---|---|
| includeTurnContent | boolean | If true, load full turn content from wire.jsonl (default: false) |
| theme * | string | Theme identifier |
Security checks
6 checks have not been run yet.