MCP server with 37 tools for session memory, context health, reasoning, and truthfulness verification using tiered memory storage.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We ran the install command below but it didn't respond within our test window β this can mean a slow first-time install rather than a real problem.
npx -y context-first-mcpNo response to initialize.
This is an experimental automated check and can have false negatives β missing environment variables, a slow cold install, etc. It doesnβt necessarily mean somethingβs wrong. Last checked 1mo ago.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Context First MCP.
context_loopOne-call orchestrator.** Runs 8 stages (ingestβrecapβconflictβambiguityβentropyβabstentionβdiscoveryβsynthesis) and returns a single `directive` with `action`, `contextHealth` score, extracted facts, and suggested next tools
recap_conversationExtracts hidden intent, key decisions, and produces consolidated state summaries
detect_conflictsCompares new input against ground truth; surfaces contradictions
check_ambiguityIdentifies underspecified requirements and generates clarifying questions
verify_executionValidates whether tool outputs actually achieved the stated goal
entropy_monitorProxy-entropy scoring via lexical diversity, contradiction density, hedge frequency, and n-gram repetition (ERGO)
The MCP server that keeps your AI grounded, coherent, and honest β across every turn.
Works instantly with Claude Desktop Β· Cursor Β· VS Code Β· any MCP client Β· Vercel remote β zero API keys needed.
37 research-backed tools across 7 layers β context health, state, sandboxing, persistent memory, advanced reasoning, truthfulness verification, orchestration, structured research, and autonomous file export. One
context_loopcall replaces 6β7 individual tools and returns a unified action directive.
Long AI conversations fail in predictable ways. Context-First fixes all four:
| Failure Mode | What Goes Wrong | Context-First Solution |
|---|---|---|
| Context Drift | AI forgets earlier decisions and intent as the conversation grows | context_loop + detect_drift continuously re-anchor every turn |
| Silent Contradiction | New inputs silently overrule established facts β the AI doesn't notice | detect_conflicts compares every input against locked ground truth |
| Vague Execution | AI proceeds on underspecified requirements, producing misaligned output | check_ambiguity + abstention_check ask clarifying questions instead of guessing |
| Hallucinated Success | Tool outputs look successful but didn't actually achieve the goal | verify_execution rechecks whether the outcome matches the stated intent |
37 production-ready tools grouped into 7 layers β plus 1 orchestrator that runs them all:
One call. One directive. One score.
| Tool | Purpose |
|---|---|
context_loop | One-call orchestrator. Runs 8 stages (ingestβrecapβconflictβambiguityβentropyβabstentionβdiscoveryβsynthesis) and returns a single directive with action, contextHealth score, extracted facts, and suggested next tools |
recap_conversation | Extracts hidden intent, key decisions, and produces consolidated state summaries |
detect_conflicts | Compares new input against ground truth; surfaces contradictions |
check_ambiguity | Identifies underspecified requirements and generates clarifying questions |
verify_execution | Validates whether tool outputs actually achieved the stated goal |
entropy_monitor | Proxy-entropy scoring via lexical diversity, contradiction density, hedge frequency, and n-gram repetition (ERGO) |
abstention_check | 5-dimension confidence scoring β abstains with questions rather than hallucinating (RLAAR) |
detect_drift | Detects conversation drift from the original intent |
check_depth | Evaluates response depth against question complexity |
| Tool | Purpose |
|---|---|
get_state | Retrieve confirmed facts and task status |
set_state | Lock in ground truth β subsequent conflict checks run against these values |
clear_state | Reset specific keys or all state |
get_history_summary | Compressed conversation history with intent annotations |
| Tool | Method | Purpose |
|---|---|---|
discover_tools | MCP-Zero + ScaleMCP | Natural-language tool routing β returns only semantically relevant tools, reducing context bloat by up to 98% |
quarantine_context | Multi-Agent Quarantine | Create isolated memory silos for sub-tasks, preventing intent dilution |
merge_quarantine | Multi-Agent Quarantine | Merge silo results with noise filtering β only promoted keys return to main context |
| Tool | Purpose |
|---|---|
memory_store | Store findings, decisions, and intermediate results with metadata |
memory_recall | Retrieve relevant memories by semantic query |
memory_compact | Compress and consolidate memory entries |
memory_graph | Build and query a knowledge graph from stored memories |
memory_inspect | Inspect memory store contents and statistics |
memory_curate | Deduplicate and organize memory entries |
| Tool | Method | Purpose |
|---|---|---|
inftythink_reason | InftyThink | Infinite-depth reasoning with adaptive stopping |
coconut_reason | Coconut | Chain-of-Continuous-Thought in latent space |
extracot_compress | ExtraCoT | Compress chain-of-thought while preserving reasoning fidelity |
mindevolution_solve | MindEvolution | Evolutionary search over the solution space |
kagthinker_solve | KAG-Thinker | Knowledge-augmented generation with structured thinking |
| Tool | Purpose |
|---|---|
probe_internal_state | Probe model consistency across paraphrased prompts |
detect_truth_direction | Detect whether model reasoning is trending toward or away from truth |
ncb_check | Neighborhood consistency check across semantically equivalent inputs |
check_logical_consistency | Verify logical coherence of reasoning chains |
verify_first | Pre-verification before committing to claims |
ioe_self_correct | Intrinsic-extrinsic self-correction |
self_critique | Structured self-critique with improvement suggestions |
| Tool | Purpose |
|---|---|
research_pipeline | Structured research orchestration across init β gather β analyze β verify β finalize. Covers all 34 underlying tool-equivalents β state, sandboxing, memory, reasoning, truthfulness, context health. Writes files autonomously to disk as the pipeline runs; no LLM cooperation needed for file output. |
export_research_files | Writes every verified report chunk and/or every raw evidence batch to disk in a single call. |
Every core algorithm traces back to a published paper:
| Algorithm | Paper | arXiv | Tool |
|---|---|---|---|
| MCP-Zero | Active Tool Request | 2506.01056 | discover_tools |
| ScaleMCP | Semantic Tool Grouping | 2505.06416 | discover_tools registry |
| ERGO | Entropy-based Quality | 2510.14077 | entropy_monitor |
| RLAAR | Calibrated Abstention | 2510.18731 | abstention_check |
Implementation highlights:
| Tool | Description |
|---|---|
export_research_files | Writes research artifacts directly to disk. It can automatically expand and write every verified report chunk without asking the LLM to loop finalize manually, and it can also write every gathered raw-evidence batch even when verify has not passed. |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/xjtlumedia-context-first-mcp)<a href="https://allmcps.com/mcp/xjtlumedia-context-first-mcp"><img src="https://allmcps.com/api/badge/xjtlumedia-context-first-mcp?style=directory" alt="Context First MCP on AllMCPs" /></a>