AIF-BIN Recall
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AIF-BIN Recall
Local-first memory server for AI agents.
AIF-BIN Recall indexes collections of AIF-BIN semantic memory files and provides fast retrieval via HTTP API and MCP (Model Context Protocol) for AI agent integration.
Features
Semantic Search — Query memories by meaning using embedded vectors
Hybrid Retrieval — Combine vector similarity with keyword matching
MCP Server — Native integration with AI agents (Claude, OpenClaw, etc.)
HTTP API — RESTful endpoints for any client
Zero Cloud — Fully local, no external services required
Collection Management — Organize memories into logical groups
Related MCP server: loci-mcp
Requirements
Node.js 18+ or Bun 1.0+
npm, yarn, or pnpm
Installation
Install the CLI globally using your preferred Node.js package manager:
# 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-recallFrom Source
git clone https://github.com/Terronex-dev/aifbin-recall.git
cd aifbin-recall
npm install
npm run build
npm linkVerify Installation
aifbin-recall --version
# Output: 0.1.0Quick Start
# 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 Reference
Command | Description |
| Index .aif-bin files from a directory |
| Start the HTTP server |
| Start the MCP server for AI agents |
| Search memories via CLI |
| List all collections |
| Show database information |
Index Options
aifbin-recall index ./memories \
--collection my-project \
--recursive \
--db ~/.aifbin-recall/custom.dbServe Options
aifbin-recall serve \
--port 3847 \
--host 0.0.0.0Search Options
aifbin-recall search "your query" \
--collection my-project \
--limit 10 \
--model minilmMCP Integration
Add AIF-BIN Recall to your AI agent's MCP config:
{
"mcpServers": {
"aifbin-recall": {
"command": "aifbin-recall",
"args": ["mcp"]
}
}
}Available MCP tools:
Tool | Description |
| Semantic search across collections |
| Retrieve specific memories by ID |
| List available collections |
| Add new files to a collection |
HTTP API
Endpoint | Method | Description |
| GET/POST | Semantic search with optional filters |
| GET | Retrieve specific memory chunk |
| GET | List all collections |
| POST | Create/update collection |
| POST | Index directory of .aif-bin files |
| GET | Server health check |
Search Request
# 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}'Search Response
{
"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": {}
}
]
}Configuration
Configuration file location: ~/.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-smallEmbedding Models
AIF-BIN Recall uses local sentence-transformer models for query embedding:
Model | Dimensions | Speed | Quality |
| 384 | Fastest | Good (default) |
| 768 | Medium | Better |
| 384 | Fast | Good |
| 768 | Slower | Best |
| 384 | Fast | Good |
Models are downloaded automatically on first use and cached locally.
How It Works
Indexing: AIF-BIN Recall reads
.aif-binfiles (created by AIF-BIN Pro) and extracts their embedded vectors and text chunks into a local SQLite database.Search: Queries are embedded using the same model, then matched against indexed vectors using cosine similarity. Optional BM25 keyword matching provides hybrid retrieval.
Retrieval: Results include the original text, metadata, source file, and similarity scores — ready for RAG pipelines or direct AI consumption.
Part of the AIF-BIN Ecosystem
Product | Description |
Core specification and SDKs (Python, TypeScript, Rust, Go, C#, Java, Swift, Kotlin) | |
Free CLI for basic .aif-bin file operations | |
Professional CLI with AI extraction and batch processing | |
Memory server for querying collections (you are here) | |
Persistent memory for AI chatbots |
Contributing
Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.
License
MIT © 2026 Terronex
Trademarks
"AIF-BIN", "AIF-BIN Recall", "AIF-BIN Pro", and the Terronex name are trademarks of Terronex. The MIT license does not grant permission to use these trademarks. See NOTICE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to search local repositories through hybrid keyword and embedding retrieval, read matched chunks, and list indexed repos via MCP, without API keys or cloud services.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI hosts and agents to query a local hybrid index of scattered notes and documents, retrieve section-level citations, and access resources and prompts through MCP.-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents and MCP hosts to search a locally indexed second brain built from scattered notes, docs, PDFs, and chat exports, returning hybrid vector-plus-keyword results with section-level citations rather than whole files.-
- FlicenseNot gradedqualityAmaintenanceEnables AI agents and MCP hosts to search and ask questions across a local hybrid-retrieval index of scattered notes, documents, PDFs, and chat logs, returning section-level citations and agent-usable tools, resources, and prompts.-