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

Threadctx MCP

作者:threadctx-dev版本 0.5.0i★ –i在你的电脑上运行
注册名称io.github.threadctx-dev/threadctx-mcp

安装

概览

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

Shared memory MCP server for AI coding agents — local by default, team-shared via threadctx.dev.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: THREADCTX_MODE, THREADCTX_API_KEY

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "threadctx": {
      "command": "npx",
      "args": [
        "-y",
        "threadctx-mcp"
      ],
      "env": {
        "THREADCTX_MODE": "your-value",
        "THREADCTX_API_KEY": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add threadctx --env THREADCTX_MODE=your-value --env THREADCTX_API_KEY=your-value -- npx -y threadctx-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "threadctx": {
      "command": "npx",
      "args": [
        "-y",
        "threadctx-mcp"
      ],
      "env": {
        "THREADCTX_MODE": "your-value",
        "THREADCTX_API_KEY": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "threadctx": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "threadctx-mcp"
      ],
      "env": {
        "THREADCTX_MODE": "your-value",
        "THREADCTX_API_KEY": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • THREADCTX_MODE env
    'local' (default, free, no signup) or 'cloud' (shared team memory)
  • THREADCTX_API_KEY 机密 env
    API key for cloud mode, issued at threadctx.dev. Not needed in local mode.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Threadctx MCP 安全吗?

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

它需要哪些密钥或代码?

你需要填写:THREADCTX_API_KEY

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

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

它还在维护吗?

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

哪些应用可以使用它?

支持 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,224MIT3天前更新
安装

Codebase Memory

作者:DeusData

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

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

Exa

作者:exa-labs

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

在云端运行★ 5,213MIT44天前更新
安装

作者的 README

打开 README

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

threadctx-mcp

Shared memory MCP server for AI coding agents. Works identically with Claude Code, Cursor, and any MCP client — same package, same config shape, no per-client integration work. On first start it also drops a "check team memory" instruction into whichever agents' rule files your repo uses (AGENTS.md, CLAUDE.md, Copilot, Windsurf, Cline, Gemini) so the memory actually gets read, not just exposed.

This repo runs on itself: its own AGENTS.md and CLAUDE.md were set up

with npx threadctx-mcp init, the same command you'd run — check the git

history if you want to see it happen.

Modes

  • Local (default, free, no signup): memory stored as a plain JSON file at ~/.threadctx/local.json — zero native dependencies, so npx threadctx-mcp installs instantly on any machine with Node 18+ (no compiler, no node-gyp step). No network calls except to whichever LLM provider your agent already uses. Matching is keyword-based, scoped to the current repo (detected via git remote). Run npx threadctx-mcp list any time to see exactly what your agents have stored.
  • Cloud (paid Team tier+): memory shared across everyone on the repo, with real semantic search. Requires an API key from threadctx.dev (or your own self-hosted deployment — see ../cloud/README.md).

Quick start

# Local mode — nothing to configure. Also auto-adds the "check team memory"

instruction to your agents' rule files (AGENTS.md, CLAUDE.md, and any

detected tool-specific files) on first start.

npx threadctx-mcp

Set a repo up for your whole team (run once, commit the results)

npx threadctx-mcp init

Cloud mode — shared team memory via threadctx.dev

npx threadctx-mcp init --mode=cloud --api-key=tctx_xxx

Joining a repo a teammate already set up? One command:

npx threadctx-mcp join

See what your agents have written to this machine

npx threadctx-mcp list # this repo npx threadctx-mcp list --all # every repo

init writes three committable, secret-free files: .threadctx.json (just { "mode": ... }), .mcp.json (Claude Code project config), and .cursor/mcp.json (Cursor project config). Commit all three — every teammate who then opens the repo in Claude Code or Cursor is prompted to enable threadctx automatically, with nothing to install or configure. Teammates on other MCP clients run npx threadctx-mcp join, which sets up their machine the same way and prints the config block for their client.

Your API key never appears in any committed file. It is read from the THREADCTX_API_KEY environment variable at runtime (export it in your shell profile), so secrets stay out of version control by construction.

threadctx also adds a small, clearly-marked instruction to your project rules telling the agent to call memory_query before a task and memory_write after. It writes the two universal files every time — AGENTS.md (the cross-tool standard read by Copilot, Cursor, Windsurf, Zed, Codex, Aider, and ~24 others) and CLAUDE.md (Claude Code's richer native format) — plus .cursor/rules/threadctx.mdc. It then adds a tool-specific file only when that tool's footprint is detected in the repo, so it never litters your project with rule files for tools you don't use:

ToolFile writtenWritten when
Cross-tool standardAGENTS.mdalways
Claude CodeCLAUDE.mdalways
Cursor.cursor/rules/threadctx.mdcalways
GitHub Copilot.github/copilot-instructions.md.github/ exists
Windsurf.windsurf/rules/threadctx.md.windsurf/ exists
Cline.clinerules/threadctx.md.clinerules exists
Gemini CLIGEMINI.md.gemini/ exists

Shared files (AGENTS.md, CLAUDE.md, Copilot, Gemini) get a marker-fenced block spliced in, preserving your own content around it; dedicated files are owned in full. This happens automatically the first time the server starts in a project — you don't need to run `init` for it. Running init just triggers it explicitly and prints the result; either way it's idempotent (safe to re-run, never duplicates). Opt out entirely with THREADCTX_NO_AUTO_RULES=1, or per-init-call with --no-rules.

The same instruction is also sent as part of the MCP initialize handshake itself (the protocol's instructions field), so it reaches the model even before any rules file exists, and for clients that don't read project-rules files at all. The file-based rules are belt-and-suspenders on top of that, since not every MCP client is guaranteed to surface instructions prominently.

Claude Code setup

Add to your Claude Code MCP config (claude mcp add or edit ~/.claude/mcp.json directly):

{

"mcpServers": { "threadctx": { "command": "npx", "args": ["-y", "threadctx-mcp"], "env": { "THREADCTX_MODE": "cloud", "THREADCTX_API_KEY": "tctx_xxx" } } } }

Cursor setup

Add the same block to .cursor/mcp.json in your project root (or via Cursor Settings → Tools & MCP):

{

"mcpServers": { "threadctx": { "command": "npx", "args": ["-y", "threadctx-mcp"], "env": { "THREADCTX_MODE": "cloud", "THREADCTX_API_KEY": "tctx_xxx" } } } }

That's it — the same package and config work in both clients because MCP is a portable, open protocol.

Passive capture — turn git history into memory

Memory shouldn't depend on an agent *remembering* to call memory_write. threadctx capture reads the commits landed since its last run, uses your own LLM provider key to distill the genuinely reusable decisions and gotchas (skipping trivial commits), dedups them against what's already stored, and writes the survivors. It's tool-agnostic — it doesn't matter whether the work happened in Claude Code, Cursor, Copilot, or a plain editor.

# Off by default because it calls an LLM (billed to your provider). Enable it:

export THREADCTX_CAPTURE_ENABLED=1 export ANTHROPIC_API_KEY=sk-... # or OPENAI_API_KEY

npx threadctx-mcp capture --dry-run # preview what it would store npx threadctx-mcp capture # store them (incremental since last run) npx threadctx-mcp capture --since=v1.2.0 --diffs # a range, with patches

Scaffold a GitHub Action that captures every merged PR automatically:

npx threadctx-mcp capture --print-workflow > .github/workflows/threadctx-capture.yml

Capture calls your LLM provider directly — nothing is routed through threadctx's servers, so local mode keeps its "no network call beyond your own LLM provider" promise. It is off unless `THREADCTX_CAPTURE_ENABLED=1` (or a one-off --force), so it can never run up token cost as a side effect.

Environment variables

VariableRequiredDescription
THREADCTX_MODEnolocal (default) or cloud
THREADCTX_API_KEYonly in cloud modeissued via cloud/scripts/create-tenant.ts
THREADCTX_API_URLnodefaults to https://threadctx.dev/api/v1; override for self-hosting
THREADCTX_REPOnooverrides repo auto-detection from git remote
THREADCTX_DB_PATHnolocal-mode store path; defaults to ~/.threadctx/local.json
THREADCTX_NO_AUTO_RULESnoset to 1 to disable auto-injecting agent rule files on server start
THREADCTX_CAPTURE_ENABLEDfor captureset to 1 to enable the LLM-backed capture command (off by default)
THREADCTX_CAPTURE_PROVIDERnoforce anthropic or openai when both keys are present
THREADCTX_CAPTURE_MODELnooverride the extraction model (defaults: Haiku / gpt-4o-mini)
ANTHROPIC_API_KEY / OPENAI_API_KEYfor captureyour own provider key; capture calls it directly

Local development

npm install

npm run dev # runs the server via tsx, watches for changes npm run build # compiles to dist/ for publishing

How the tools work

  • memory_write(content, tags?) — the agent calls this after resolving a non-obvious bug, making an architectural decision, or learning something worth remembering.
  • memory_query(task_description, max_results?) — the agent calls this before starting risky or repeated work. Results are returned with a consistent attribution footer (· via threadctx — shared team memory (N hits)) so the same string is recognizable whether you're reading Claude Code's terminal output or Cursor's agent panel.

Tool descriptions are written to bias the model toward calling memory_query proactively, and — as of 0.3.0 — the server reinforces this two more ways with zero setup required: the MCP initialize response carries the same instruction to every connecting client, and CLAUDE.md / .cursor/rules/threadctx.mdc get it auto-injected on first start. MCP tools are still fundamentally pull-based (no mechanism can force a tool call), but these three layers together are the strongest guarantee we can build.

CLI subcommands

CommandWhat it does
npx threadctx-mcpRuns the MCP server (this is what Claude Code / Cursor launch). Auto-injects project rules on first start in a project.
npx threadctx-mcp init [--mode=cloud --api-key=…] [--no-rules]Sets a repo up for the team: writes .threadctx.json, committable Claude Code/Cursor project MCP configs, and the project-rules files.
npx threadctx-mcp joinJoins a repo a teammate already set up: project MCP configs, rules, and per-client instructions.
npx threadctx-mcp list [--all] [--full] [--json]Shows what's stored in the local on-disk memory.
npx threadctx-mcp capture [--dry-run] [--since= ] [--max=N] [--diffs] [--model=ID] [--print-workflow]Distills recent git history into memories via your own LLM key. Off unless THREADCTX_CAPTURE_ENABLED=1 (or --force).

Browse, search, edit, and prune team (cloud) memory in a human dashboard at threadctx.dev/dashboard — sign in with your team API key.

问 PopNx