About Iai MCP
Iai MCP is an MCP server published by CodeAbra in the RAG category: the best-benchmarked open-source memory system for AI coding assistants. Conduid read 22 tools from its source: batch_execute, claim_check, code_index, code_search, command_insight, curiosity_pending and 16 more. No package is published for it, so it installs from a source checkout.
The repository has 926 stars and 113 forks, and its last commit was on 1 Dec 2026. The latest release is v3.3.0 (22 Oct 2026): The Claude Code plugin now ships an icon. It follows v3.2.3 (14 Sep 2026), and the 5 most recent releases go back to v3.2.0 (8 Sep 2026). It passes all 1 static checks Conduid ran on the repository. Its topics include embeddings, local-first, memory and vector-search.
Install
git clone https://github.com/CodeAbra/iai-mcpTools (22)
batch_executeRun commands under the executor daemon's batch concurrency semantics. Returns one result per command, in input order, each bounded like execute's output. A failing command returns as a result with a non-zero state, not a tool error.| Parameter | Type | Description |
|---|---|---|
| commands * | array | Commands to run as a batch, in the order results are returned. |
| concurrency | integer | 1 = one shared timeout budget run in sequence; 2-8 = each command gets its own timeout, run in parallel. |
| timeout_ms | integer | Total shared budget at concurrency=1, per-command timeout at concurrency 2-8. |
claim_checkCheck a claim (e.g. 'X is not done') against memory. Returns hits + anti_hits + a freshness verdict in one call.| Parameter | Type | Description |
|---|---|---|
| budget_tokens | integer | Soft token budget for the underlying recall (default 1500). |
| cue * | string | The claim to check, e.g. 'the dashboard is not built yet'. |
| session_id | string | Current session id; gets written into provenance. Omit to use '-'. |
code_indexWalk a directory and index its files, or resolve+index one third-party dependency package into its own store. Supply path OR ecosystem+package+project_dir, never both. Mutates the on-disk index.| Parameter | Type | Description |
|---|---|---|
| ecosystem | string | Dependency mode only, required with package and project_dir: dependency ecosystem, e.g. python. |
| package | string | Dependency mode only, required: dependency package name. |
| path | string | Directory to walk and index. |
| project_dir | string | Dependency mode only, required: project directory whose own environment resolves the package. |
code_searchSearch the code index (BM25 over indexed files). Returns ranked hits with a bounded snippet per hit. Read-only.| Parameter | Type | Description |
|---|---|---|
| def_path | string | importers lane: scope resolved hits to importers/callers whose target is this file; unresolved rows stay reported at the symbol level. references lane, required: the file `query` is defined in. |
| ecosystem | string | store='dependency' only, required: dependency ecosystem, e.g. python. |
| from_path | string | goto-def lane only, required: the file `query` is referenced from. |
| k | integer | Max ranked hits (default 10, clamped server-side to 200). |
| lane | string | Which search lane to query: whole-file BM25 (default), symbol (exact identifier), xref (cross-file reference injection), vector (semantic, embed-worker-backed), fused (RRF over the base lanes, gated semantic addition), literal (exact byte-substring scan, no case-folding/regex/tokenizer -- the only lane that can prove a literal's absence, not just report unknown), importers (reverse query: every file importing/calling `query`, use with def_path to scope by target), goto-def (Python AST-backed go-to-definition for `query`, referenced from from_path; requires from_path), or references (Python AST-backed find-references: every call site of `query` defined in def_path, each tagged resolved or unresolved; requires def_path). |
| package | string | store='dependency' only, required: dependency package name. |
| query * | string | Search text: identifiers, phrases, or a question. |
| store | string | Which store to query: 'code' (default, the source-code index), 'output' (previously captured command output, when a run was indexed with auto_index), or 'dependency' (one indexed third-party package; requires ecosystem and package, lane must be 'whole'). |
command_insightActionable report over accumulated run history: names failing commands and the most recent failure, not just a count. Read-only.curiosity_pendingList pending curiosity questions queued by the sleep daemon. Read-only. Filter by session_id.| Parameter | Type | Description |
|---|---|---|
| session_id | string | Only return questions from this session. Omit to return questions from every session in the queue. |
episodes_recentReturns the N most-recent user-turn records, time-desc. Optional session_id filter. GLOBAL across all projects.| Parameter | Type | Description |
|---|---|---|
| n | integer | How many turns to return (default 10, max 1000). |
| session_id | string | Filter to a specific session UUID. |
events_queryQuery user-visible events (kind whitelist). Read-only. Optional since (ISO-8601), severity, limit.| Parameter | Type | Description |
|---|---|---|
| kind * | string | Event kind. Must be in the whitelist (s4_contradiction, trajectory_metric, ...). |
| limit | integer | Maximum events returned (default 100, capped at 1000 by the daemon regardless of the value supplied). |
| severity | string | Optional severity filter. Omit to return all severities. |
| since | string | ISO-8601 timestamp; only events at or after this are returned. Omit to return events from the start of the log. |
executeRun a command via the executor daemon. Returns captured output and a run handle. Use for shell commands. Only printed output reaches this response; the rest stays retrievable in the run's own artifact files on disk. Set auto_index to make it searchable via code_search.| Parameter | Type | Description |
|---|---|---|
| args | array | Arguments to the program, each a discrete argv element. |
| author | string | log mode: author filter (git's --author syntax). |
| auto_index | boolean | Opt-in: index this run's captured output for later retrieval via code_search(store='output'). Never default-on. Output shaped like a credential is refused, not indexed. Not applied when the run also backgrounds -- index_error is set instead. |
| command | string | Program to run. |
| end_line | integer | blame mode: 1-based inclusive end line of an optional line range. |
| file | string | blame mode: file to blame. |
| mode | string | Optional git-query mode: dispatches to a bounded git-log/git-blame/git-diff subcommand sharing that subcommand's own bound-by-construction validation, injection guard, and secret-gate scrub, instead of running command/args/auto_index. A scope parameter is required per mode: since/until/path or a revision for log, file for blame, rev_a/rev_b/path for diff. |
| path | string | log/diff modes: limit to this path. |
| repo | string | any git-query mode: path to the git repository (default: the executor daemon's working directory, which may not match your shell -- pass repo for a reliable target). |
| rev_a | string | diff mode: a revision range, or the first of two revisions. |
| rev_b | string | diff mode: the second of two revisions. |
| rev_range | string | log mode: a revision or revision range. |
| since | string | log mode: lower date bound (git's --since syntax). |
| start_line | integer | blame mode: 1-based inclusive start line of an optional line range. |
| timeout | number | Seconds before the executor times out the run. |
| until | string | log mode: upper date bound (git's --until syntax). |
memory_captureCapture a verbatim turn (auto-dedups near-duplicates). Use for corrections, not for minting standing-order directives.| Parameter | Type | Description |
|---|---|---|
| agent_complete_id | string | Optional id of a previously spawned background agent to mark complete on this call. |
| agent_expected_artifact | string | Optional artifact the spawned background agent is expected to produce. Required alongside agent_id and agent_role to register a spawn; omitted otherwise. |
| agent_id | string | Optional id of a background agent this capture is spawning or completing. Combine with agent_role and agent_expected_artifact to register a pending agent; combine with agent_complete_id on a later call to mark it done. |
| agent_model | string | Optional model label for the spawned background agent, recorded on the registry entry when agent_id/agent_role/agent_expected_artifact register a spawn. |
| agent_role | string | Optional role of the spawned background agent (for example 'research' or 'implement'). Required alongside agent_id and agent_expected_artifact to register a spawn; omitted otherwise. |
| cue | string | Short natural-language cue used for embedding + dedup lookup. If empty, `text` itself is embedded. |
| epistemic_status | string | Caller-declared epistemic status. Omit for 'unknown' (default, no behavior change). A value outside the enum is coerced to 'unknown' server-side, never rejected. |
| focus | string | Optional current point of attention for the live session task. Folded verbatim onto this session's own working-tier entry after the capture completes, alongside next_action. |
| goal | string | Optional refreshed goal for the live session task, when it has moved on from the goal the task opened with. Folded verbatim onto this session's own working-tier entry after the capture completes. Empty or whitespace-only is a no-op, never a clear. |
| next_action | string | Optional immediate next step for the current live session task. Folded verbatim onto this session's own working-tier entry after the capture completes; surfaces at the next session start and on every subsequent turn until updated again. |
| role | string | Who produced this turn — tags the record for filtering. |
| salience_level | string | Caller-declared salience level for a decision, correction, or load-bearing preference marked in-turn. Additive rank-fusion boost only -- never a merge/drop lock. Omit for 'unflagged' (default, no behavior change). A value outside the enum is coerced to 'unflagged' server-side, never rejected. |
| session_id | string | Current session id for provenance. |
| text * | string | Verbatim text to capture (user utterance, Claude decision, or observation). Min 12 chars, max 8000 (longer is truncated). |
| tier | string | Memory tier. Default 'episodic' (verbatim user utterances). Use 'semantic' for induced summaries, 'procedural' for learned behaviour notes. |
memory_consolidateTrigger sleep-cycle consolidation: schema induction, FSRS decay, Hebbian pruning. Mutates store; idempotent in one sleep window.| Parameter | Type | Description |
|---|---|---|
| session_id | string | Optional session id used for provenance tagging on the consolidate event. Defaults to '-' when omitted. |
memory_contradictMark a record contradicted; new fact stored as a NEW record (old NEVER deleted). Mutates store.| Parameter | Type | Description |
|---|---|---|
| cue_embedding | array | Optional pre-computed embedding vector for the contradicting fact (EMBED_DIM=384 floats; bge-small-en-v1.5). When omitted, the daemon embeds new_fact server-side. |
| epistemic_status | string | Caller-declared epistemic status of the corrected fact. Omit for 'unknown' (default, no behavior change). A value outside the enum is coerced to 'unknown' server-side, never rejected. |
| id * | string | UUID of the record being contradicted. |
| new_fact * | string | The updated verbatim fact. Stored as a new record; the old record is preserved (episodic write-once) and linked via a `contradicts` edge. |
memory_recallRecall verbatim memories by cue — decisions, preferences, prior discussion, rationale. Call before a repository search. Returns hits + anti_hits.| Parameter | Type | Description |
|---|---|---|
| budget_tokens | integer | Soft token budget for the response (default 1500). Hits are appended until the next would exceed this budget; at least one hit is always returned. |
| cue * | string | Natural-language query to match against stored memories. Embedded server-side via bge-small-en-v1.5 (384d) unless `cue_embedding` is supplied. |
| cue_embedding | array | Optional pre-computed embedding vector for the cue (EMBED_DIM=384 floats; bge-small-en-v1.5). When omitted, the daemon embeds the cue server-side. Used by memory_contradict and tests that need byte-stable embeddings. |
| language | string | Optional ISO-639-1 language hint for the sleep-suggestion path (8 supported: en/ru/ja/ar/de/fr/es/zh). Defaults to 'en' when omitted. Hot-path retrieval is language-agnostic; this key only affects the sleep-suggestion regex pre-screen. |
| session_id | string | Current session id; gets written into every recalled record's provenance. Omit to use '-'. |
memory_recall_structuralStructural recall via TEM role->filler bindings (BSC hypervectors). Read-only. Prefer over memory_recall for role-filler queries.| Parameter | Type | Description |
|---|---|---|
| budget_tokens | integer | Soft token budget for the response (default 2000). Hits are appended until the next would exceed this budget. |
| max_records | integer | Hard cap on records scanned after fetch (default 5000, max 50000). Prevents accidental full-corpus scans from `{}`. |
| structure_query | object | Optional role->filler map, e.g. {"agent": "agent_name"}. Each value is hashed to a filler hypervector. When omitted or empty, query HV is zero-filled and every row with structure_hv is scored (expensive at large N). |
memory_reinforceBoost Hebbian edges among co-retrieved record ids. Mutates edge weights. Use when two records co-answered.| Parameter | Type | Description |
|---|---|---|
| ids * | array | Record UUIDs that were co-retrieved in the current context. Edges between every pair are incremented; identical pair sets are idempotent within one session. |
| session_id | string | Session identifier for correlating this reinforcement with the session's retrieval history. Optional; omit for old clients. |
memory_searchUse for code/doc search; returns hints to verify — never replaces a repository search.| Parameter | Type | Description |
|---|---|---|
| k | integer | Max hits (default 8, max 24). |
| query * | string | Search text: identifiers, phrases, or a question. |
memory_temporal_recallTime-travel recall: as_of bounds records, changed_since filters events. Read-only.| Parameter | Type | Description |
|---|---|---|
| as_of | string | ISO-8601 timestamp. Bounds the records side: records.created_at <= as_of. |
| changed_since | string | ISO-8601 timestamp. Bounds the events side: events.ts > changed_since (strict). |
| cue | string | Optional natural-language cue. If omitted, the records side returns recency-ordered rows bounded by as_of. |
| limit | integer | Maximum items per side (default 10). |
profile_get_setRead or write a profile knob (10 sealed: 9 AUTIST + wake_depth). operation get|set; returns knob value.| Parameter | Type | Description |
|---|---|---|
| knob | string | Knob name. Omit on 'get' to retrieve all live + deferred knobs. Required on 'set'. |
| operation * | string | Whether to read or write a knob. 'get' with no `knob` returns all live + deferred knob values; 'set' requires both `knob` and `value`. |
| value | any | New value when operation='set'. Any JSON-serialisable type matching the knob's declared type in the sealed registry. |
schema_listList induced schemas (Tier-0 + Tier-1) from sleep consolidation. Read-only. Filter by domain and confidence_min.| Parameter | Type | Description |
|---|---|---|
| confidence_min | number | Minimum parsed confidence (0.0-1.0). Default 0.0 returns all schemas; raise to 0.5+ to filter out low-evidence candidates. |
| domain | string | Only return schemas tagged with this domain (e.g. 'coding'). Omit to return schemas across all domains. |
session_searchQuery one session's captured events by session id. Read-only; use for reviewing session history.| Parameter | Type | Description |
|---|---|---|
| category | string | Exact category filter. |
| session_id * | string | Session id to query. |
| session_ids | array | Optional explicit list of additional session ids to include, returning the union of their events. session_id remains required and is always the first id queried. |
| since | string | RFC3339 lower bound (inclusive) on event timestamp. |
| substring | string | Case-insensitive substring filter on event data. |
| until | string | RFC3339 upper bound (inclusive) on event timestamp. |
statsAggregate code-index, session, and executor counts from the on-disk stores. Read-only. Use for a subsystem health snapshot.topologySnapshot of memory-graph topology: N, C, L, sigma, community_count, regime. Read-only diagnostic; sigma never toggles retrieval.Security checks
- ✓README presentThe repository's README runs to about 2.0K words.
5 checks have not been run yet.
Releases
README
The repository's README runs to about 2.0K words. The original in the repository is authoritative.
Read full README