CueMap MCP Server
OfficialCueMap MCP Server gives AI coding assistants explainable, repository-aware agent memory: it scopes and watches a repo, ingests content, recalls evidence, and manages projects, memories, aliases, and lexicon data.
Preview and confirm repository ingestion scope, then start and monitor the incremental watcher (
cuemap_init_preview,cuemap_init,cuemap_status).Store natural-language memories and classify text with the local intent model (
cuemap_add,cuemap_intent_classify).Recall codebase context via hybrid/semantic/lexical search with tunable depth, expansion, fusion, coverage, and preview modes (
cuemap_recall).Read, reinforce, or permanently delete individual memories (
cuemap_memory_get,cuemap_memory_reinforce,cuemap_memory_delete).Inspect, export, and read project stats or CueBridge artifacts (
cuemap_projects,cuemap_stats,cuemap_project_export,cuemap_project_artifacts).Manage project lifecycle in RAM (
cuemap_project_load,cuemap_project_save,cuemap_project_unload).Package and install local
.cuemapfiles (cuemap_project_pack,cuemap_project_package_load).Transfer and sync project packages through S3 using the host AWS CLI (
cuemap_project_push,cuemap_project_pull,cuemap_project_sync).Explicitly ingest URLs (with crawl controls), raw content, or local files (
cuemap_ingest_url,cuemap_ingest_content,cuemap_ingest_file).Administer cue aliases and Lexicon relationships (
cuemap_alias_list/add/merge,cuemap_lexicon_inspect/graph/wire/delete).Run zero-config with an embedded Rust engine, customizable via port, config path, remote URL, project, and log path; destructive actions require explicit
confirmed: true.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CueMap MCP Server What do you remember about this repository?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
The Model Context Protocol (MCP) server for CueMap, allowing AI coding assistants (like Claude Desktop, Cursor, Windsurf, and Antigravity) to instantly recall codebase context using the CueMap engine.
For agent-facing operating guidance—including repository consent, supported content types, recall modes, accuracy-oriented knob selection, and troubleshooting—see SKILL.md.
Zero-Config Deployment
The CueMap MCP Server is designed to work completely out-of-the-box. When started, it automatically manages a high-performance Rust instance of the CueMap Server in the background. The v0.7.3 engine bundles qint8 MiniLM-L3 by default and q4 MiniLM-L3 for the edge profile; no model download occurs at runtime.
You do not need to install or run the CueMap CLI manually. The correct pre-compiled binary for your operating system is automatically downloaded via optional NPM dependencies. Embedded startup supports Linux x64/ARM64, macOS x64/ARM64, and Windows x64.
Related MCP server: Heimdall MCP Server
Installation
# Global installation makes the `cuemap-mcp` command available
npm install -g cuemap-mcp(Note: Ensure your package manager is configured to download optionalDependencies so the local Rust binary is included).
Agent Plugin
CueMap also ships a separate cuemap-agent-plugin package for Agent Plugins-compatible clients. It bundles the portable plugin.json manifest, stdio mcp.json configuration, and a repository-memory skill. The plugin launches this MCP server at the matching release version and must be installed or downloaded separately from cuemap-mcp.
Configuration (Environment Variables)
By default, the embedded engine runs on port 8735. You can customize the server behavior by passing the following environment variables in your MCP configuration:
CUEMAP_PORT: Override the port the embedded engine binds to (default:8735).CUEMAP_CONFIG_PATH: Absolute path to a customserver_config.tomlto configure advanced Engine tuning, background jobs, and RAG search parameters.CUEMAP_URL: If you prefer to bypass the embedded engine and connect to a remotely hosted or separately running CueMap server, specify its URL here (e.g.http://localhost:8735).CUEMAP_PROJECT: Override the default project. Without this setting, CueMap derives a stable repository-scoped project from the current Git remote or working directory.CUEMAP_LOG_PATH: Override the embedded engine log path. It defaults to~/.cuemap/server.log, which is the file read bycuemap logs.
Server lifecycle
The MCP server calls EmbeddedCueMap.start() as soon as Codex launches the plugin process, before any CueMap tool is invoked. It attaches to a compatible engine already listening at CUEMAP_URL or the configured port; otherwise it starts and owns a local engine automatically. cuemap_init does not start the server—it previews or applies a confirmed repository scope after the engine is ready. An engine owned by the MCP process is stopped gracefully when that process exits.
Using with AI Agents
To use this MCP server with your AI assistant, add it to your assistant's MCP configuration file.
Example Configuration (Claude Desktop)
{
"mcpServers": {
"cuemap": {
"command": "npx",
"args": [
"-y",
"cuemap-mcp"
],
"env": {
"CUEMAP_PORT": "8735"
}
}
}
}Available Tools
cuemap_init_preview: Performs a read-only repository metadata scan and returns supported top-level folders/root files, counts, the stable repository project ID, and any existing saved scope. Present this preview to the user before ingestion.path(string): Absolute path to the repository root.projectName(string, optional): Project ID override. Defaults to the stable repository-scoped ID.includedPaths(string[], optional): Repository-relative files or folders to preview. Empty means all supported files allowed by ignore rules.ignoredPatterns(string[], optional): Additional gitignore-style exclusions.ignoredExtensions(string[], optional): Additional excluded extensions.
cuemap_init: Applies a user-confirmed repository ingestion scope, starts the initial scan, and keeps watching that scope for new, changed, deleted, newly ignored, or newly unignored supported files. It only reports verified completion after observing ingestion activity, reaching a terminal job phase, and completing intent annotation; an initialidlestatus with0/0writes is not considered complete.path(string): Absolute path to the repository root.projectName(string, optional): Project ID override. Defaults to the stable repository-scoped ID.includedPaths(string[], optional): User-approved repository-relative files or folders. Empty means all supported files allowed by ignore rules.ignoredPatterns(string[], optional): Additional gitignore-style exclusions.ignoredExtensions(string[], optional): Additional excluded extensions.confirmed(boolean): Must be true only after explicit user confirmation of the previewed scope.
cuemap_status: Returns project-scoped background ingestion progress plus derived monitoring fields. Poll it aftercuemap_inituntilverified_completeistrue.project(string, optional): Project ID override. Defaults to the stable repository-scoped ID.active: Whether the current phase is non-terminal or writes/intent annotations remain pending.observed_activity: Whether this MCP process has observed an active phase or positive write/intent counts for the project.pending_writes: Remaining writes based on the latest totals.pending_intents: Remaining memory intent annotations based on the latest totals.verified_complete: True only after activity has been observed, the project reachesdoneoridle, no work failed or remains pending, andintent_readyis not false.
Project inspection and memory lifecycle
cuemap_projects: List projects and their summary metadata, including whether each project is currently loaded in RAM.cuemap_project_load: Explicitly warm a persisted project before a latency-sensitive operation. Ordinary project requests demand-load it when needed.cuemap_project_save: Persist a current snapshot without unloading it.cuemap_project_unload: Persist and unload a project to reduce memory usage. Active work can produce a retryable busy response.cuemap_project_pack/cuemap_project_package_load: Write or load a ready-to-query local.cuemappackage.cuemap_project_push/cuemap_project_pull: Transfer a package through S3 using the engine host's configured AWS CLI.cuemap_project_sync: Fast-forward immutable S3 history and refuse divergence.cuemap_stats: Read repository-project statistics, or global engine statistics withglobal: true.cuemap_memory_get: Read one memory as decoded text and provenance by numericmemory_idand owningproject. Requires an engine supportingGET /memories/:id?decoded=true; older engines return an upgrade error through this tool.cuemap_memory_reinforce: Reinforce one memory, optionally on explicitcues.cuemap_memory_delete: Permanently delete one memory. Requiresconfirmed: trueafter explicit user confirmation.cuemap_project_export: Export a cursor-paginated project page with configurable content, cue, and metadata inclusion.cuemap_project_artifacts: Inspect CueBridge artifact metadata without reloading it.
Explicit ingestion
cuemap_ingest_url: Ingest one URL or recursively crawl it withdepthandsame_domain_onlycontrols.cuemap_ingest_content: Ingest supplied text with filename, source-key, metadata, structural-cue, segmentation, and optional one-vector-per-produced-chunkembeddings.cuemap_ingest_file: Ingest one user-approved local file path.
These tools are for explicit ingestion requests. Repository initialization continues to use the preview, confirmation, and watcher workflow above.
Alias and Lexicon administration
cuemap_alias_list,cuemap_alias_add,cuemap_alias_merge: Inspect and manage manual cue aliases. Merging requiresconfirmed: true.cuemap_lexicon_inspect,cuemap_lexicon_graph,cuemap_lexicon_wire,cuemap_lexicon_delete: Inspect and administer Lexicon relationships. Deletion requiresconfirmed: true.cuemap_add: Stores one natural-language memory. The project is created automatically if it does not exist.content(string): Memory content to store.project(string, optional): Project ID that will own the memory. Defaults to the current repository-scoped project.cues(string[], optional): Explicit cues/tags to associate with the memory.metadata(object, optional): JSON metadata to store with the memory.source_key(string, optional): Stable source key for deterministic upsert/deduplication.event_time(number, optional): Original event timestamp as Unix seconds. Defaults to ingestion time.embedding(number[], optional): Precomputed memory embedding.disable_temporal_chunking(boolean, optional): Disable temporal chunking for this memory.async_ingest(boolean, optional): Process ingestion in the background and return immediately.
cuemap_intent_classify: Classifies text with the engine's local intent model. Acceptstarget: "query"or"memory"and returns relative intent scores, recall/memory eligibility, confidence weight, and model/taxonomy versions. Scores are ranking signals, not calibrated probabilities.cuemap_recall: Recalls context about a codebase from your CueMap integrated brain. Uses natural language and semantic search to find relevant information.query(string): The natural language query to search for.limit(number, optional): Maximum results to return (default: 10).response_mode(full|preview, optional): Defaultfull. Usepreviewfor broad discovery; each hit returns a leading excerpt instead of full content, retaining IDs and metadata.preview_chars(integer, optional): Preview length cap, 100–2000 UTF-16 code units (default: 200). Ignored in full mode. Metadata and diagnostics are not capped.projects(string[], optional): List of project IDs to scope the search to. Multiple enables cross-project queries.cues(string[], optional): Specific cue tags to filter the search.query_time(string, optional): Timestamp or natural-language time anchor for v0.7 temporal query intent.depth(number, optional): Depth of multi-hop recall expander (default: 1).expansion_depth(number or"conversation_round", optional): Neighbor context expansion (default:"conversation_round"). Values above 1 include nearby parent chunks or source-ordered context, using a radius ofexpansion_depth - 1when linkage exists."conversation_round"prepends the message each result replies to (for an assistant reply, the user message that prompted it) when memories carry session, turn and role metadata, for example after ingesting withsegmenter: "conversation". The top result also gets the message that replies to it (for a user message, the assistant's answer). Memories without conversation metadata are returned as they are; pass1for matched memories only. A message that would also appear lower in the results is moved up instead of repeated, so fewer thanlimitresults can come back.auto_reinforce(boolean, optional): Automatically reinforce retrieved memories (default: false).min_intersection(number, optional): Minimum required cue intersection count (default: 0).explain(boolean, optional): Include scoring explanation data in results (default: false).trace_timing(boolean, optional): Include v0.7 timing diagnostics.disable_salience_bias(boolean, optional): Disable salience scoring bias.disable_alias_expansion(boolean, optional): Disable lexicon synonym injection during querying (default: true).parent_fusion(off|auto|force, optional): Chunk-parent fusion mode.ordered_reconstruction(off|auto|force, optional): Ordered session reconstruction mode.evidence_coverage(off|auto|force, optional): Multi-evidence coverage mode.disable_cuebridge_artifacts(boolean, optional): Disable CueBridge artifact expansion.cuebridge_gap_limit(number, optional): Maximum CueBridge gap expansions.semantic_mode(lexical,semantic, orhybrid, optional): Choose cue-only recall, vector candidate discovery, or local semantic reranking of lexical candidates. The engine default ishybrid.
query_embedding(number[], optional): Supply a precomputed query vector when the calling application owns the embedding provider.
Recall response and follow-up inspection
Recall returns engine JSON in both MCP structuredContent and a matching JSON
text block. This replaces the earlier prose-only format. Each identified
memory carries project_id and memory_id; metadata, source locations, and
requested diagnostics are preserved as supplied by the engine. Explicit
project queries may return project blocks containing their own results or
error, including empty groups. Ordinary unscoped queries return memory
records directly in results.
Use a hit's project and ID with cuemap_memory_get when the stored record is
needed. That tool returns readable content without vectors or compressed
storage bytes; it does not expand neighboring chunks or read live files.
Prefer opening the cited source when recall already returned the relevant
text. Follow-up recalls should address a new evidence gap. See SKILL.md
for the coding investigation workflow and bounded recall controls.
For broad discovery, pass response_mode: "preview". A hit's content is
replaced by preview, content_truncated, and content_length (UTF-16 code
units). This is a leading excerpt, not a generated summary or query-selected
snippet. Full content is omitted from both MCP output forms; fetch promising
memories by their project/ID or read the live source. Full mode remains the
default. The engine shapes previews before sending its response. This does not change
ranking or retrieval work, and does not limit metadata or diagnostics.
License
The MCP server package is MIT-licensed. Its optional native engine dependencies are separate packages: v0.7.3 and later engine packages are Apache-2.0, while pre-v0.7.3 engine packages remain under BSL-1.1. See LICENSE for the MCP server license.
Available Tools
31 toolscuemap_addC
Store a natural-language memory in CueMap. Uses the repository-scoped default project unless one is supplied, creates it when needed, and applies deterministic cue extraction plus any cues and metadata.
Inputs: content (required), cues, project, metadata, +5 more.
cuemap_alias_addB
Add a manual weighted mapping from one cue to another.
Inputs: to (required), from (required), weight, project.
cuemap_alias_listA
List manual cue aliases associated with one cue.
Inputs: cue (required), project.
cuemap_alias_mergeB
Merge multiple cues into one canonical cue. Set confirmed=true only after explicit user confirmation.
Inputs: to (required), cues (required), confirmed (required), project.
cuemap_ingest_contentB
Explicitly ingest supplied raw content into CueMap. Use only when the user asks to persist that content.
Inputs: content (required), project, filename, metadata, +8 more.
cuemap_ingest_fileA
Explicitly ingest one local file into CueMap. Use only for a file the user has placed in scope and asked to ingest.
Inputs: path (required), project.
cuemap_ingest_urlA
Explicitly ingest content from a URL, optionally crawling same-domain links. Use only when the user asks to ingest that URL.
Inputs: url (required), depth, project, same_domain_only.
cuemap_initA
Apply a user-confirmed repository ingestion scope and start CueMap's incremental filesystem watcher. Always call cuemap_init_preview first for a new repository and obtain explicit user confirmation before setting confirmed=true.
Inputs: path (required), confirmed (required), projectName, includedPaths, +2 more.
cuemap_init_previewA
Preview supported repository files without ingesting content. Call this before first-time repository initialization, present the grouped paths to the user, and ask them to confirm or adjust the selection before calling cuemap_init.
Inputs: path (required), projectName, includedPaths, ignoredPatterns, +1 more.
cuemap_intent_classifyB
Classify text with CueMap's local intent model and return recall/memory eligibility signals. Scores are ranking signals, not calibrated probabilities.
Inputs: text (required), target, project.
cuemap_lexicon_deleteA
Permanently delete one Lexicon entry. Set confirmed=true only after explicit user confirmation.
Inputs: entry_id (required), confirmed (required), project.
cuemap_lexicon_graphB
Read the current Lexicon graph for a project.
Inputs: project.
cuemap_lexicon_inspectB
Inspect one cue and its Lexicon relationships.
Inputs: cue (required), project.
cuemap_lexicon_wireC
Manually wire a token to a canonical Lexicon cue.
Inputs: token (required), canonical (required), project.
cuemap_memory_deleteA
Permanently delete one CueMap memory. Set confirmed=true only after explicit user confirmation.
Inputs: confirmed (required), memory_id (required), project.
cuemap_memory_getA
Get one stored memory as readable text with source metadata. Pass the memory_id and owning project_id from recall as memory_id and project. Does not expand neighbors or read live source files.
Inputs: memory_id (required), project.
cuemap_memory_reinforceC
Reinforce one CueMap memory, optionally along specific cue pathways.
Inputs: memory_id (required), cues, project.
cuemap_project_artifactsA
Inspect CueBridge artifact metadata for a CueMap project without reloading or mutating it.
Inputs: project.
cuemap_project_exportC
Export a cursor-paginated page of memories from a CueMap project.
Inputs: limit, cursor, project, include_cues, +2 more.
cuemap_project_loadA
Load a persisted CueMap project into RAM before a latency-sensitive operation. Normal project requests load automatically, so use this for explicit warm-up.
Inputs: project.
cuemap_project_packA
Write a ready-to-query .cuemap package for one project to a local file. The package contains sensitive project content; use only after the user explicitly approves the exact output path.
Inputs: output_path (required), project, confirmed, overwrite.
cuemap_project_package_loadA
Install and warm a local .cuemap package. Use only after the user explicitly approves the exact package path; existing projects are never overwritten.
Inputs: package_path (required), confirmed.
cuemap_project_pullA
Download, install, and warm a .cuemap package with the engine host's configured AWS CLI. Use only after explicit approval of the exact S3 source; existing projects are never overwritten.
Inputs: source (required), confirmed.
cuemap_project_pushA
Pack and upload a CueMap project with the engine host's configured AWS CLI. Use only after explicit approval of the exact S3 destination; an existing object at that URI may be replaced.
Inputs: destination (required), project, confirmed.
cuemap_projectsA
List CueMap projects, summary metadata, and whether each project is currently loaded in RAM.
Inputs: no named parameters.
cuemap_project_saveA
Persist the current state of a CueMap project without unloading it. Package operations save automatically; use this only when an explicit durable checkpoint is useful.
Inputs: project.
cuemap_project_syncA
Fast-forward a project through immutable history at an S3 sync root. Pushes local-only changes, pulls remote-only changes, and refuses divergent histories or stale concurrent writes. Use only after explicit approval of the project and exact S3 root.
Inputs: remote (required), project, confirmed.
cuemap_project_unloadA
Persist and unload a CueMap project from RAM to reduce memory use. Use only when the user explicitly asks to unload or free inactive project memory; active projects return a retryable busy error.
Inputs: project.
cuemap_recallA
Recall evidence for a focused question; follow up with narrower queries as needed. Returns engine JSON with project_id and memory_id handles, source metadata, and requested diagnostics in text and structuredContent. Use handles with cuemap_memory_get when the stored record is needed. Hybrid locally reranks lexical candidates. Start with a small limit and depth 1; enable reconstruction only when surrounding evidence is needed.
Inputs: query (required), cues, depth, limit, +26 more.
cuemap_statsB
Read CueMap statistics for the repository-scoped project or globally across the engine.
Inputs: global, project.
cuemap_statusA
Check CueMap background ingestion progress for a project. After cuemap_init, poll this tool until verified_complete is true. An initial idle status with 0/0 writes is not proof that ingestion completed.
Inputs: project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Most tools are clearly separated by resource type (project, memory, alias, lexicon, ingest) and action (init, add, get, delete, list, etc.). Some potential confusion exists between cuemap_project_artifacts and cuemap_project_export, and between cuemap_project_pack/package_load/push/pull/sync, but descriptions clarify their distinct purposes.
Tool names consistently use the cuemap_ prefix with a resource domain (project, memory, alias, lexicon, ingest) followed by an action verb. Minor inconsistency: cuemap_project_package_load breaks the verb_noun pattern compared to cuemap_project_load, and cuemap_init_preview/cuemap_init are not resource-scoped like the others.
31 tools is on the heavy side for a single MCP server, though the domain is broad (project lifecycle, memory operations, aliases, lexicon graph, ingestion, recall). The count is justified by the feature set but exceeds the typical well-scoped range.
The tool surface covers project lifecycle (init, load, unload, save, pack, push, pull, sync), memory CRUD (add, get, delete, reinforce), alias management, lexicon management, ingestion, and recall. Minor gaps: no explicit memory update tool and no project deletion tool, but the core workflows are well covered.
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
One shared project memory for your AI coding tools: recall, save and brief decisions anywhere.
Persistent engineering memory designed to follow developers across coding agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides AI assistants with persistent memory of your project architecture, development history, and technical decisions, allowing them to give context-aware coding help without needing repeated explanations.1661 npm2MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI coding assistants with persistent, context-rich memory of a codebase, including documentation and git history, enabling recall across sessions.105Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to retrieve and manage code context with hybrid search, project memory, and observability via MCP tools.30MIT
- AlicenseBqualityBmaintenanceEnables AI coding agents to build and query local repository memory, returning ranked files, context packs, relationship maps, semantic recall, and feedback-tuned search without uploading code.960 PyPI1MIT