原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Context First MCP

作者:XJTLUmedia版本 1.2.2i★ –i在你的电脑上运行
注册名称io.github.XJTLUmedia/context-first-mcp

安装

概览

作者提供的说明(英文原文)

37-tool MCP server: context health, memory, reasoning, truthfulness & research pipeline.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "context-first": {
      "command": "npx",
      "args": [
        "-y",
        "context-first-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add context-first -- npx -y context-first-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "context-first": {
      "command": "npx",
      "args": [
        "-y",
        "context-first-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "context-first": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "context-first-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 XJTLUmedia 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5654 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5654 个服务器的 10% 更新
  • 基础检查结果等于或优于此分类中其他 5654 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Context First MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.2.2)于7个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT昨天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT21天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT2个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Context-First MCP

The MCP server that keeps your AI grounded, coherent, and honest — across every turn.

npx context-first-mcp

*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_loop call replaces 6–7 individual tools and returns a unified action directive.


Why Your AI Conversations Break Down

Long AI conversations fail in predictable ways. Context-First fixes all four:

Failure ModeWhat Goes WrongContext-First Solution
Context DriftAI forgets earlier decisions and intent as the conversation growscontext_loop + detect_drift continuously re-anchor every turn
Silent ContradictionNew inputs silently overrule established facts — the AI doesn't noticedetect_conflicts compares every input against locked ground truth
Vague ExecutionAI proceeds on underspecified requirements, producing misaligned outputcheck_ambiguity + abstention_check ask clarifying questions instead of guessing
Hallucinated SuccessTool outputs *look* successful but didn't actually achieve the goalverify_execution rechecks whether the outcome matches the stated intent

What You Get

37 production-ready tools grouped into 7 layers — plus 1 orchestrator that runs them all:

context_loop  ─────────────────────────────────────────────────────────────────

├─ Layer 1 · Context Health (9 tools) recap, conflict, ambiguity, depth … ├─ Layer 2 · Sandbox (3 tools) discover_tools, quarantine, merge ├─ Layer 3 · Persistent Memory(6 tools) store, recall, compact, graph … ├─ Layer 4 · Advanced Reasoning(5 tools) InftyThink, Coconut, KAG, MindEvo … ├─ Layer 5 · Truthfulness (7 tools) NCB, IOE, verify_first, self_critique… └─ State + Research Pipeline + Export (7 tools)

One call. One directive. One score.

{

"directive": { "action": "clarify", "contextHealth": 0.62, "instruction": "Resolve with the user: (1) Is this a firm requirement? (2) Which framework?", "autoExtractedFacts": { "deploy_to": "Vercel" }, "suggestedNextTools": ["verify_execution", "quarantine_context"] } }


Quick Start

npx — zero install
npx context-first-mcp
Claude Desktop
{

"mcpServers": { "context-first": { "command": "npx", "args": ["-y", "context-first-mcp"] } } }

Cursor / VS Code
{

"mcp": { "servers": { "context-first": { "command": "npx", "args": ["-y", "context-first-mcp"] } } } }

Remote (Streamable HTTP)
{

"mcpServers": { "context-first": { "url": "https://context-first-mcp.vercel.app/api/mcp" } } }

Deploy your own Vercel instance

Tool Reference

Layer 1: Core Context Health (9 tools)
ToolPurpose
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)
abstention_check5-dimension confidence scoring — abstains with questions rather than hallucinating (RLAAR)
detect_driftDetects conversation drift from the original intent
check_depthEvaluates response depth against question complexity
Layer 1b: State Management (4 tools)
ToolPurpose
get_stateRetrieve confirmed facts and task status
set_stateLock in ground truth — subsequent conflict checks run against these values
clear_stateReset specific keys or all state
get_history_summaryCompressed conversation history with intent annotations
Layer 2: Sandbox & Discovery (3 tools)
ToolMethodPurpose
discover_toolsMCP-Zero + ScaleMCPNatural-language tool routing — returns only semantically relevant tools, reducing context bloat by up to 98%
quarantine_contextMulti-Agent QuarantineCreate isolated memory silos for sub-tasks, preventing intent dilution
merge_quarantineMulti-Agent QuarantineMerge silo results with noise filtering — only promoted keys return to main context
Layer 3: Persistent Memory (6 tools)
ToolPurpose
memory_storeStore findings, decisions, and intermediate results with metadata
memory_recallRetrieve relevant memories by semantic query
memory_compactCompress and consolidate memory entries
memory_graphBuild and query a knowledge graph from stored memories
memory_inspectInspect memory store contents and statistics
memory_curateDeduplicate and organize memory entries
Layer 4: Advanced Reasoning (5 tools)
ToolMethodPurpose
inftythink_reasonInftyThinkInfinite-depth reasoning with adaptive stopping
coconut_reasonCoconutChain-of-Continuous-Thought in latent space
extracot_compressExtraCoTCompress chain-of-thought while preserving reasoning fidelity
mindevolution_solveMindEvolutionEvolutionary search over the solution space
kagthinker_solveKAG-ThinkerKnowledge-augmented generation with structured thinking
Layer 5: Truthfulness & Verification (7 tools)
ToolPurpose
probe_internal_stateProbe model consistency across paraphrased prompts
detect_truth_directionDetect whether model reasoning is trending toward or away from truth
ncb_checkNeighborhood consistency check across semantically equivalent inputs
check_logical_consistencyVerify logical coherence of reasoning chains
verify_firstPre-verification before committing to claims
ioe_self_correctIntrinsic-extrinsic self-correction
self_critiqueStructured self-critique with improvement suggestions
Research Pipeline & Export (2 tools)
ToolPurpose
research_pipelineStructured 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_filesWrites every verified report chunk and/or every raw evidence batch to disk in a single call.

Built on Peer-Reviewed Research

Every core algorithm traces back to a published paper:

AlgorithmPaperarXivTool
MCP-ZeroActive Tool Request2506.01056discover_tools
ScaleMCPSemantic Tool Grouping2505.06416discover_tools registry
ERGOEntropy-based Quality2510.14077entropy_monitor
RLAARCalibrated Abstention2510.18731abstention_check

Implementation highlights:

  • Proxy Entropy (ERGO): 4 response-level proxy signals (lexical diversity, contradiction density, hedge-word frequency, n-gram repetition) replace inaccessible token-level logprobs. Composite score above threshold triggers adaptive context reset.
  • TF-IDF Discovery (MCP-Zero): Pure TypeScript, zero external dependencies. Indexes all tool descriptions at startup; cosine similarity routes queries to the top-k relevant tools only.
  • Inference-Time Abstention (RLAAR): 5-dimension confidence scoring replaces the RL training loop. Abstains with targeted questions when confidence < threshold — no hallucination fallback.
Export Helper (1 tool)
ToolDescription
export_research_filesWrites 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.
context_loop Pipeline
context_loop (single MCP tool call)

├── Stage 1: INGEST — Store messages to session history ├── Stage 2: RECAP — Extract intents, decisions, summaries ├── Stage 3: CONFLICT — Detect contradictions against ground truth ├── Stage 4: AMBIGUITY — Check for underspecified requirements ├── Stage 5: ENTROPY — Monitor output quality degradation (ERGO) ├── Stage 6: ABSTENTION — Multi-dimensional confidence check (RLAAR) ├── Stage 7: DISCOVERY — Suggest relevant next tools (MCP-Zero) └── Stage 8: SYNTHESIS — Combine signals → action recommendation + LLM directive

Synthesis Priority: abstain > reset > clarify > proceed

Each stage runs with independent error isolation — a failure in one stage doesn't block the others. The result includes per-stage timing, status, and detailed results for observability.

LLM Directive (NEW)

The context_loop response includes a top-level directive object designed for LLM consumption — a compact, actionable instruction that replaces the need to parse nested stage results:

{

"directive": { "action": "clarify", "instruction": "Before proceeding, resolve these issues with the user:\n1. Could you specify exactly what you mean?\n2. Is this a firm requirement or still open for discussion?", "questions": ["Could you specify exactly what you mean?", "Is this a firm requirement?"], "contextHealth": 0.62, "autoExtractedFacts": { "framework": "React", "deploy_to": "Vercel" }, "suggestedNextTools": ["verify_execution", "quarantine_context"] } }


How context_loop Works

context_loop (single MCP tool call)

├── Stage 1: INGEST — Store messages to session history ├── Stage 2: RECAP — Extract intents, decisions, summaries ├── Stage 3: CONFLICT — Detect contradictions against ground truth ├── Stage 4: AMBIGUITY — Check for underspecified requirements ├── Stage 5: ENTROPY — Monitor output quality degradation (ERGO) ├── Stage 6: ABSTENTION — Multi-dimensional co

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx