@equationalapplications/mcp-server

中文文档
8.4.0发布于 2026/11/13MITTypeScriptESM + CJS构建来源已验证近 30 天下载 3040

MCP server that gives coding agents (Claude Code, Cursor, Windsurf, Claude Desktop) a SynapseTree memory: search, remember, supersede, ingest, log events, and traverse the knowledge graph.

原始使用文档
文档目录11 节
  1. What it is
  2. Install
  3. Get a key
  4. Set a namespace
  5. Connect your client
  6. Tools
  7. Environment variables
  8. What it never does
  9. Verify
  10. Release checklist (maintainers)
  11. Monorepo Ecosystem

@equationalapplications/mcp-server

SynapseTree memory for coding agents: an MCP server that lets Claude Code, Cursor, Windsurf, Claude Desktop, or any MCP client search, remember, supersede, ingest, log events, and walk the knowledge graph in your SynapseTree database.

npm version TypeScript License: MIT

📖 Docs · GitHub · ScopeLab · WikiDemo · Changelog · Issues

What it is

A small Node program your MCP client launches on your own machine over stdio. It exposes eight SynapseTree memory operations as tools and forwards each call to https://api.synapsetree.dev with your API key. It stores nothing but that key, a base URL, and a default namespace. It never runs in anyone's cloud, and it never sees your conversation with the model — only tool calls.

Install

npm install -g @equationalapplications/mcp-server

Node 20 or newer. One command is installed: synapsetree-mcp.

To run from source instead:

git clone https://github.com/equationalapplications/expo-llm-wiki && cd expo-llm-wiki
pnpm install && pnpm --filter @equationalapplications/mcp-server build
cd packages/mcp-server && pnpm link --global   # puts synapsetree-mcp on PATH

Get a key

From the dashboard. Sign in at https://synapsetree.dev/dashboard, open API keys, issue a key next to your database, then:

synapsetree-mcp auth --key stree_…

The --key form puts the secret in your shell history and process list. To keep it out of both, read it silently and export it for the session:

read -rs SYNAPSETREE_API_KEY && export SYNAPSETREE_API_KEY

synapsetree-mcp status picks it up and auth --revoke still works.

By email, from the terminal (the auth.md flow):

synapsetree-mcp auth --email [email protected]

A six-digit code is printed. SynapseTree emails you an approval link within about a minute; the page shows the same code. Approve only if the codes match. The link expires after 15 minutes. The first poll after approval receives the only copy of the key and stores it.

The key is stored in credentials.json under your config directory with mode 0600 and is never printed again; status shows the last four characters.

Set a namespace

Every memory tool needs a namespace. Set a default once per machine, or pass namespace on each call:

synapsetree-mcp config set namespace repo:myproject

Convention: repo:<directory name>. The server never invents a namespace.

Connect your client

Claude Code:

claude mcp add synapsetree -- synapsetree-mcp

Cursor (.cursor/mcp.json), Windsurf (~/.codeium/windsurf/mcp_config.json), Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "synapsetree": { "command": "synapsetree-mcp" } } }

Tools

ToolWhat it does
memory_searchHybrid search over facts; also returns pending tasks and recent events. Keyword-only until the account owner registers an embeddings provider (diagnostics.keyword_only).
memory_rememberStore one fact (title, body, tags, confidence, type). Works with no provider.
memory_supersedeReplace a fact with a corrected one; history is kept. Never deletes.
memory_ingestStore a whole document and let SynapseTree extract facts. Needs an extraction provider registered in the dashboard (BYOK).
memory_log_eventRecord an observation, decision, action, or outcome.
graph_traverseWalk the knowledge graph from a fact or node, up to three hops.
namespaces_listList namespaces, optionally by prefix.
whoamiAccount, database, scope, plan, subscription status.

Environment variables

VariableEffect
SYNAPSETREE_API_KEYUse this key instead of the stored one.
SYNAPSETREE_BASE_URLAPI base URL (default https://api.synapsetree.dev).
SYNAPSETREE_NAMESPACEDefault namespace, overriding config.json.
SYNAPSETREE_CONFIG_DIRWhere credentials.json and config.json live.

Default config directory: macOS ~/Library/Application Support/synapsetree, Linux $XDG_CONFIG_HOME/synapsetree or ~/.config/synapsetree, Windows %APPDATA%\synapsetree. On Windows the 0600/0700 file modes are best-effort.

What it never does

  • Export, delete, or run maintenance on your memory. Those are owner actions in the dashboard, and this server does not expose them even if your key could.
  • Print your key, or the claim token used during email registration.
  • Run anywhere but your machine. Memories go only to SynapseTree; SynapseTree calls an inference provider only if the account owner registered one.

Verify

synapsetree-mcp status
npx @modelcontextprotocol/inspector synapsetree-mcp

Release checklist (maintainers)

Before publishing a version, run the whole sequence against the SynapseTree test stage with a dashboard key and an isolated config directory, so no step can touch your real credentials:

unset SYNAPSETREE_API_KEY                            # an inherited key would take
                                                     # precedence over the isolated
                                                     # credentials file below
export SYNAPSETREE_BASE_URL=https://test-stage…      # the test stage, for EVERY step below
export SYNAPSETREE_CONFIG_DIR=$(mktemp -d)           # isolated credentials
export SYNAPSETREE_LIVE_TESTS=1                      # opts the live chain into `pnpm test`
cd "$(git rev-parse --show-toplevel)"                 # back to the repo root: all paths below are repo-root paths
CLI="$(pwd)/packages/mcp-server/dist/cli.js"    # the CLI built from this checkout, not a global install
pnpm build
  1. node "$CLI" auth --key … then node "$CLI" status.
  2. SYNAPSETREE_API_KEY=… pnpm --filter @equationalapplications/mcp-server test — runs the live chain (whoami → remember → search → supersede → search → log event → list). The suite is excluded unless SYNAPSETREE_LIVE_TESTS=1 is set.
  3. npx @modelcontextprotocol/inspector node "$CLI" serve and run one memory_search.
  4. node "$CLI" auth --email … once, approve the email, then node "$CLI" auth --revoke.

The vendored contract in contract/ is generated in the SynapseTree repository and must not be hand-edited; the unit tests fail if it drifts from what the tools send or if it ever contains an owner-only operation.

Monorepo Ecosystem

PackagePurpose
@equationalapplications/core-llm-wikiPersistent episodic memory
@equationalapplications/expo-llm-wikiPersistent episodic memory for Expo/React Native
@equationalapplications/react-llm-wikiPersistent episodic memory for Web
@equationalapplications/prisma-outboxSync SQLite outbox events to Prisma
@equationalapplications/core-llm-toolsGemini tool schemas and capability injector
@equationalapplications/core-okfZero-dependency Open Knowledge Format (OKF) v0.1 + v0.2 primitives — parse and produce interoperable knowledge bundles.
@equationalapplications/schema-org-llm-wikiCurated schema.org warm-agent ontology manifest
@equationalapplications/schema-software-orgSoftware-organization executive ontology manifest — 17 node types, 40 edges, warm-agent superset, data-only
@equationalapplications/mcp-serverMCP server exposing SynapseTree memory tools to coding agents

Made with ❤️ by Equational Applications LLC. https://equationalapplications.com/

版本与发布记录

@equationalapplications/mcp-server 共发布 17 个版本,首次发布于 2026/11/03;过去 12 个月发布了 17 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
8.4.0latest2026/11/131 天前
8.3.02026/11/131 天前
8.2.02026/11/122 天前
8.1.02026/11/122 天前
8.0.52026/11/112 天前
8.0.42026/11/112 天前

关于 @equationalapplications/mcp-server 的常见问题

@equationalapplications/mcp-server 是什么?

MCP server that gives coding agents (Claude Code, Cursor, Windsurf, Claude Desktop) a SynapseTree memory: search, remember, supersede, ingest, log events, and traverse the knowledge graph.

如何安装 @equationalapplications/mcp-server?

在项目目录运行 npm install @equationalapplications/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 synapsetree-mcp,可以用 npx synapsetree-mcp 直接运行。

@equationalapplications/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@equationalapplications/mcp-server 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@equationalapplications/mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@equationalapplications/mcp-server 可以商用吗?

@equationalapplications/mcp-server 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@equationalapplications/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@equationalapplications/mcp-server 在 2026/10/14 – 2026/11/12 这 30 天内被下载 3,040 次,日均约 101 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@equationalapplications/mcp-server 还在维护吗?

最新版本 8.4.0 发布于 2026/11/13(1 天前);至今共发布 17 个版本,其中过去 12 个月发布了 17 个;首次发布于 2026/11/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。