Skip to main content

遗忘引擎 MCP 客户端 — 将 Claude Desktop 连接到 knownot.cc 长期记忆服务

Project description

遗忘引擎 MCP 客户端

将 Claude Desktop 连接到 knownot.cc 遗忘引擎长期记忆服务。

Claude Desktop ──stdio──→ MCP Proxy ──gRPC──→ knownot.cc:5005x

安装

pip install forgetting-engine-mcp

获取 Kin ID

安装并配置好 MCP 后,在对话中调用:

使用 forgetting_engine_generate_kin 工具
→ 返回 {"kin_id": "84729105361"}

复制输出的 kin_id 留存,后续 ingest/retrieve 时作为 kin_id 传入。

配置

Claude Desktop

编辑 claude_desktop_config.json

{
  "mcpServers": {
    "forgetting-engine": {
      "command": "mcp-forgetting-engine",
      "env": {
        "FE_ENDPOINT": "knownot.cc:50051",
        "FE_API_KEY": "fe_ak_your_key_here"
      }
    }
  }
}

Claude Code

编辑 ~/.claude.json

{
  "mcpServers": {
    "forgetting-engine": {
      "command": "mcp-forgetting-engine",
      "env": {
        "FE_ENDPOINT": "knownot.cc:50051",
        "FE_API_KEY": "fe_ak_your_key_here"
      }
    }
  }
}

选择实例

实例 FE_ENDPOINT 说明
通用版 knownot.cc:50051 allergy, preference, constraint, danger
护肤增强版 knownot.cc:50052 通用 + skincare_*
法律增强版 knownot.cc:50053 通用 + legal_*
编程增强版 knownot.cc:50054 通用 + coding_*

环境变量

变量 必填 默认值 说明
FE_ENDPOINT knownot.cc:50051 遗忘引擎服务端地址
FE_API_KEY - API Key(从 knownot.cc 门户创建)

可用工具

工具 说明
forgetting_engine_generate_kin 生成新的 11 位 kin_id
forgetting_engine_ingest 摄入对话消息到长期记忆
forgetting_engine_retrieve 检索记忆上下文
forgetting_engine_ingest_features 回传/更新用户特征信息

支持的 MCP 宿主

工具 配置文件 格式 状态
Claude Code ~/.claude.json JSON 已验证
Claude Desktop claude_desktop_config.json JSON 已验证
Cursor ~/.cursor/mcp.json JSON 已验证
Codex (OpenAI) ~/.codex/config.toml TOML 待验证
Hermes ~/.hermes/config.yaml YAML 待验证
OpenCode .opencode.json JSON/JSONC 待验证
OpenClaw 不支持 MCP 客户端

Cursor 配置

编辑 ~/.cursor/mcp.json(全局)或 .cursor/mcp.json(项目):

{
  "mcpServers": {
    "forgetting-engine": {
      "command": "mcp-forgetting-engine",
      "env": {
        "FE_ENDPOINT": "knownot.cc:50051",
        "FE_API_KEY": "fe_ak_your_key_here"
      }
    }
  }
}

Codex 配置

编辑 ~/.codex/config.toml

[mcp_servers.forgetting-engine]
type = "stdio"
command = "mcp-forgetting-engine"
args = []

[mcp_servers.forgetting-engine.env]
FE_ENDPOINT = "knownot.cc:50051"
FE_API_KEY = "fe_ak_your_key_here"

Hermes 配置

编辑 ~/.hermes/config.yaml

mcp_servers:
  forgetting-engine:
    command: mcp-forgetting-engine
    env:
      FE_ENDPOINT: knownot.cc:50051
      FE_API_KEY: fe_ak_your_key_here

OpenCode 配置

编辑项目根目录的 .opencode.json~/.opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "forgetting-engine": {
      "type": "local",
      "command": ["mcp-forgetting-engine"],
      "enabled": true,
      "environment": {
        "FE_ENDPOINT": "knownot.cc:50051",
        "FE_API_KEY": "fe_ak_your_key_here"
      }
    }
  }
}

获取 API Key

访问 knownot.cc 登录后在 "API Keys" 页面创建 Key。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forgetting_engine_mcp-0.5.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forgetting_engine_mcp-0.5.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file forgetting_engine_mcp-0.5.1.tar.gz.

File metadata

  • Download URL: forgetting_engine_mcp-0.5.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for forgetting_engine_mcp-0.5.1.tar.gz
Algorithm Hash digest
SHA256 d5f90d4037e37d4c6807a18170bc2e7cb9220a31e39e7ef82698d114cf0fe3e3
MD5 0ec5fcc9c1654201faa8f7ed532664ff
BLAKE2b-256 541b3420c29d69713d0f29548afc00871ca5892e4f3661fc88ecbf79efe849cf

See more details on using hashes here.

File details

Details for the file forgetting_engine_mcp-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for forgetting_engine_mcp-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 266236a5f980360dfdc59a378b9f5dd5900d93b4cf7e95b11928b8f0a4dc5b97
MD5 5b2fe617fe43fc6102b09fc4a6d73e7c
BLAKE2b-256 ee6dac9125e1f259bd0b9f8b0365494844d90648f67154622fbcae20ee109ba6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page