Token导航 LogoToken导航TokenDH.com
Aifbin Recall logo
搜索检索未说明官方级别未说明来源级核验

Aifbin Recall

MCP Server

AIF-BIN Recall 是一个本地优先的AI代理记忆服务器,提供语义搜索、混合检索和MCP集成功能,适用于AI代理的记忆管理和检索。

工具数

4

提示词数

0

GitHub Stars

1

资源数

0
搜索本地优先TypeScriptClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Terronex-dev

提供方

Terronex-dev

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

AIF-BIN召回

](https://www.npmjs.com/package/aifbin-recall) ![License: MIT](https://opensource.org/licenses/MIT)

AI代理的本地第一内存服务器。

AIF-BIN召回索引集合 AIF-BIN 语义记忆文件,并通过HTTP API和MCP(模型上下文协议)为AI代理集成提供快速检索。

特性

  • 语义搜索 --使用嵌入向量按意义查询内存
  • 混合检索 --将向量相似性与关键字匹配相结合
  • MCP服务器 --与人工智能代理(Claude、OpenClaw等)的原生集成
  • HTTP API --任何客户端的RESTful端点
  • 零云 --完全本地化,无需外部服务
  • 收集管理 --将记忆组织成逻辑组

需求

  • Node.js 18+或Bun 1.0+
  • npm、yarn或pnpm

安装

使用首选的Node.js包管理器全局安装CLI:

# Using npm (recommended)
npm install -g aifbin-recall

# Using yarn
yarn global add aifbin-recall

# Using pnpm
pnpm add -g aifbin-recall

# Using Bun (Linux / macOS)
bun install -g aifbin-recall

来源

git clone https://github.com/Terronex-dev/aifbin-recall.git
cd aifbin-recall
npm install
npm run build
npm link

验证安装

aifbin-recall --version
# Output: 0.1.0

快速开始

# Index a directory of .aif-bin files
aifbin-recall index ./memories --collection my-project

# Start the server
aifbin-recall serve

# Search via CLI
aifbin-recall search "what decisions did we make about the API?"

# Or query the HTTP API
curl "http://localhost:3847/search?q=API+decisions&collection=my-project"

CLI参考

命令描述
aifbin-recall index 从目录中索引.aif bin文件
aifbin-recall serve启动HTTP服务器
aifbin-recall mcp启动AI代理的MCP服务器
aifbin-recall search 通过CLI搜索记忆
aifbin-recall collections列出所有收藏
aifbin-recall info显示数据库信息

索引选项

aifbin-recall index ./memories \
  --collection my-project \
  --recursive \
  --db ~/.aifbin-recall/custom.db

服务选项

aifbin-recall serve \
  --port 3847 \
  --host 0.0.0.0

搜索选项

aifbin-recall search "your query" \
  --collection my-project \
  --limit 10 \
  --model minilm

MCP集成

将AIF-BIN Recall添加到AI代理的MCP配置中:

{
  "mcpServers": {
    "aifbin-recall": {
      "command": "aifbin-recall",
      "args": ["mcp"]
    }
  }
}

可用的MCP工具:

工具说明
recall_search跨集合的语义搜索
recall_get按ID检索特定记忆
recall_collections列出可用收藏
recall_index向集合中添加新文件

HTTP API

端点方法描述
/searchGET/POST带可选过滤器的语义搜索
/recall/:idGET检索特定内存块
/collectionsGET列出所有集合
/collections/:namePOST创建/更新集合
/indexPOST.aif bin文件的索引目录
/healthGET服务器健康检查

搜索请求

# GET request
curl "http://localhost:3847/search?q=your+query&collection=my-project&limit=10"

# POST request with options
curl -X POST http://localhost:3847/search \
  -H "Content-Type: application/json" \
  -d '{"query": "your query", "collection": "my-project", "limit": 10}'

搜索响应

{
  "results": [
    {
      "id": "chunk-uuid",
      "text": "The matched text content...",
      "score": 0.89,
      "vectorScore": 0.92,
      "keywordScore": 0.85,
      "sourceFile": "/path/to/file.aif-bin",
      "chunkIndex": 0,
      "metadata": {}
    }
  ]
}

配置

配置文件位置: ~/.aifbin-recall/config.yaml

server:
  port: 3847
  host: localhost

index:
  path: ~/.aifbin-recall/index.db
  
search:
  default_limit: 10
  hybrid_weight: 0.7  # 0 = keywords only, 1 = vectors only

embedding:
  model: minilm  # Options: minilm, mpnet, bge-small, bge-base, e5-small

嵌入模型

AIF-BIN Recall使用本地句子转换器模型进行查询嵌入:

型号尺寸速度质量
minilm384最快良好(默认)
mpnet768中等较好
bge-small384快速良好
bge-base768较慢最好
e5-small384快速良好

模型在首次使用时会自动下载并在本地缓存。

运作原理

  1. 索引:AIF-BIN召回阅读 .aif-bin 文件(由创建 AIF-BIN Pro)并将它们嵌入的向量和文本块提取到本地SQLite数据库中。
  1. 搜索:查询使用相同的模型嵌入,然后使用余弦相似度与索引向量进行匹配。可选的BM25关键字匹配提供混合检索。
  1. 检索:结果包括原始文本、元数据、源文件和相似性得分,可用于RAG管道或直接AI消费。

AIF-BIN生态系统的一部分

产品描述
AIF-BIN核心规范和SDK(Python、TypeScript、Rust、Go、C#、Java、Swift、Kotlin)
AIF-BIN精简版用于基本.aif-bin文件操作的免费CLI
AIF-BIN Pro具有AI提取和批处理功能的专业CLI
AIF-BIN召回用于查询集合的内存服务器(您在这里)
机器人BINAI聊天机器人的持久内存

贡献

欢迎投稿!请阅读我们的 贡献指南 在提交pull请求之前。

许可证

麻省 理工© 2026 Terronex

商标

“AIF-BIN”、“AIF-BIN-Recall”、“AIF-BIN-Pro”和Terronex名称是Terronex的商标。麻省理工学院的许可证不允许使用这些商标。有关详细信息,请参阅通知文件。

目录标签

目录标签

搜索本地优先TypeScriptClaude语义搜索本地部署混合检索MCP集成AI代理

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP