AIKD

AIKD

aikd•bygelutjari

A local memory and code search layer for AI coding agents that offers a stdio MCP server with built-in tools.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Runs a stdio MCP server via 'aikd serve' that AI agents connect to for codebase memory.
  • •Exposes seven built-in MCP tools including scan, query, embed, stats, remember, recall, and status.
  • •Provides hybrid BM25 plus vector semantic search over an indexed codebase, stored locally in SQLite.

BEST FOR

  • •Giving coding agents like Claude Code, Cursor, or Cline persistent memory of a codebase.
  • •Running fully local, cloud-free code search so data stays on the machine.

ABOUT AIKD

AIKD is cataloged as an MCP server attributed to gelutjari. A local memory and code search layer for AI coding agents that offers a stdio MCP server with built-in tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for AIKD are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does AIKD require a cloud service?

No. It is described as 100% local with zero cloud dependency, storing data in a local SQLite database.

上游原版 README

在 GitHub 查看同一版本原文

README.md · a9e2495618fe · 采集于 2026-11-13 12:39:32 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

🧠 AIKD

The Ultra-Fast Local Memory Layer for AI Coding Agents

Crates.io GitHub Release Build Status License: MIT Rust Downloads

Give Claude, Cursor, and Cline instant memory of your entire codebase. Written in Rust. Zero cloud dependency. Search 10,000 chunks in 0.21ms.

Install • Quick Start • Demo • Docs


🤔 Why AIKD?

The Problem: AI coding agents are powerful but forgetful. Every new conversation starts from zero — no memory of your codebase, your patterns, your architecture.

Pain PointWithout AIKDWith AIKD
😵 Context AmnesiaAgent asks "what does this file do?" every sessionInstant recall of entire codebase
🐌 Slow SearchPython-based RAG takes 500ms+ per queryRust-powered BM25+Vector in 0.21ms
☁️ Cloud DependencyYour code sent to external servers100% local, zero data leaves your machine
🔧 Complex SetupInstall Python, pip, CUDA, models...Single binary, one command install

How AIKD Compares

FeaturegrepLlamaIndexai-devkitAIKD
SpeedFastSlowMedium⚡ 0.21ms
Semantic Search❌✅✅✅ Hybrid
Local Only✅❌❌✅ 100%
MCP Native❌❌❌✅ Built-in
Memory UsageLowHigh (Python)High📊 27% RAM
Setup Time0s~10min~5min⏱️ 30s

✨ Key Features

🔍 Search Engine

  • Hybrid Search: BM25 (Tantivy) + Vector (ONNX all-MiniLM-L6-v2, 384d)
  • Reciprocal Rank Fusion: Combines keyword + semantic results intelligently
  • Incremental Indexing: Blake3 hashing for zero-redundancy scans
  • Resource Adaptive: Auto-detects CPU/GPU and adjusts batch sizes

🤖 AI Integration

  • MCP Protocol: Native support for Model Context Protocol
  • 7 Built-in Tools: scan, query, embed, stats, remember, recall, status
  • Auto-Registration: Works with Claude Code, Cursor, Cline, Continue, Windsurf, MiMoCode
  • Session Memory: Persistent conversation context across sessions

🛠️ Developer Experience

  • Single Binary: No Python, no Node, no dependencies
  • File Watcher: Auto-reindex on file changes
  • REST API: HTTP endpoint on port 9090 for custom integrations
  • CLI First: Full control from terminal

🎬 See It In Action

AIKD Demo

$ aikd init
✅ AIKD initialized for project

$ aikd scan
📊 Indexed 847 files, 12,453 chunks in 1.2s

$ aikd query "authentication flow"
1. src/auth/login.rs (Lines 45-89, Score: 0.923)
   Implements JWT-based authentication with refresh tokens...

2. src/middleware/auth.rs (Lines 12-34, Score: 0.871)
   Validates Bearer tokens on protected routes...

3. docs/architecture/auth.md (Lines 1-25, Score: 0.845)
   Authentication flow diagram and security considerations...

📦 Installation

Linux / macOS:

curl -sSf https://raw.githubusercontent.com/gelutjari/aikd/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/gelutjari/aikd/main/install.ps1 | iex

Alternatives

📦 From crates.io (if you have Rust)
cargo install aikd
🍺 Homebrew (macOS/Linux)
brew install gelutjari/tap/aikd
🔧 Build from Source
git clone https://github.com/gelutjari/aikd.git
cd aikd
cargo build --release
cp target/release/aikd ~/.local/bin/
🐳 Docker
docker run -v $(pwd):/workspace -p 9090:9090 ghcr.io/gelutjari/aikd:latest

⚡ Quick Start (3 minutes)

Step 1: Initialize

cd your-project
aikd init
What does aikd init do?

Creates ~/.aikd/config.yaml with smart defaults based on your project type (Rust, Node, Python, Go). It detects .git, Cargo.toml, package.json, etc. and sets appropriate file filters.

Step 2: Scan Your Codebase

aikd scan
What happens during scan?
  1. Walks directory tree (skipping node_modules, .git, target, etc.)
  2. Chunks files by semantic boundaries (functions, headings)
  3. Generates BM25 index (Tantivy) and vector embeddings (ONNX)
  4. Stores everything in local SQLite database
# Keyword search (fast)
aikd query "error handling"

# Semantic search (smart)
aikd query "how does login work" --hybrid

# Get JSON output for scripting
aikd query "database connection" --json

Step 4: Connect to Your AI Agent

Claude Code / Cursor / Cline

AIKD auto-registers via MCP. Just restart your AI agent after running aikd scan.

The MCP config is at ~/.aikd/mcp.json:

{
  "mcpServers": {
    "aikd": {
      "command": "aikd",
      "args": ["serve"]
    }
  }
}
REST API
# Start the daemon
aikd daemon

# Query via HTTP
curl "http://localhost:9090/api/query?q=authentication&limit=5"

🎛️ Usage Modes

                    ┌─────────────────┐
                    │   How to use    │
                    │     AIKD?       │
                    └────────┬────────┘
                             │
            ┌────────────────┼────────────────┐
            ▼                ▼                ▼
     ┌──────────┐     ┌──────────┐     ┌──────────┐
     │   CLI    │     │   MCP    │     │ REST API │
     │  Mode    │     │  Server  │     │  Daemon  │
     └──────────┘     └──────────┘     └──────────┘
     Best for:        Best for:        Best for:
     • Quick search   • AI agents      • Web apps
     • Scripts        • Claude Code    • Custom UIs
     • CI/CD          • Cursor         • Team shared

CLI Mode (default):

aikd query "rust error handling" --limit 5
aikd stats
aikd status

MCP Server (for AI agents):

aikd serve  # Starts stdio MCP server

REST Daemon (background service):

aikd daemon              # Start in background
aikd daemon foreground   # Start in foreground
aikd daemon-stop         # Stop daemon

📊 Benchmark Results

AIKD Benchmarks

Hardware: AMD EPYC 7B13, 7.8GB RAM, NVMe SSD

OperationTimeThroughput
Index 1,000 files144ms6,934 files/s
BM25 Search0.21ms4,762 queries/s
Hybrid Search0.35ms2,857 queries/s
Concurrent (500)28ms17,669 queries/s
Embedding (batch)12ms/batch~800 chunks/s

Resource Usage:

CPU: ████████░░░░░░░░░░░░ 22.9%
RAM: █████░░░░░░░░░░░░░░░ 27.4%

💡 Real-world context: A human eye blink takes ~300ms. In that time, AIKD can complete 857 hybrid searches across your entire codebase.


⚙️ Configuration

Default config (~/.aikd/config.yaml):

version: 2.0.0
scan:
  include_paths: ["."]
  exclude_paths: ["node_modules", ".git", "target"]
  include_extensions: ["rs", "ts", "py", "md", "json"]
  follow_symlinks: false
chunk:
  max_tokens: 1000
  min_tokens: 100
embedding:
  enabled: true
  model: all-MiniLM-L6-v2
  batch_size: auto
server:
  rest_port: 9090
  auth_token: null
  cors_origins: ["*"]
🐌 Slow Machine (4GB RAM, 2 cores)
embedding:
  enabled: true
  batch_size: 8
  device: cpu
resource:
  mode: Low
💪 Beefy Machine (32GB RAM, 16 cores, GPU)
embedding:
  enabled: true
  batch_size: 64
  device: gpu
resource:
  mode: Max
📝 Docs-Only Project
scan:
  include_extensions: ["md", "txt", "rst"]
  exclude_paths: [".git"]
filter:
  max_file_size: 524288  # 512KB
👥 Team Sharing
server:
  rest_port: 9090
  auth_token: "your-secret-token"
  cors_origins:
    - "https://your-team-app.com"

🏗️ Architecture

AIKD Architecture

┌─────────────────────────────────────────────────────────────┐
│                        AIKD v2.0.0                          │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  ┌─────────┐  ┌─────────┐  ┌─────────┐  ┌─────────────┐  │
│  │  CLI    │  │  MCP    │  │  REST   │  │ File Watcher│  │
│  │ (clap)  │  │ (rmcp)  │  │ (axum)  │  │  (notify)   │  │
│  └────┬────┘  └────┬────┘  └────┬────┘  └──────┬──────┘  │
│       │            │            │               │          │
│       └────────────┴────────────┴───────────────┘          │
│                            │                                │
│  ┌─────────────────────────┴──────────────────────────┐    │
│  │                   Core Engine                       │    │
│  ├─────────────┬─────────────┬─────────────────────────┤    │
│  │  Scanner    │   Chunker   │      Session Manager    │    │
│  │ (walkdir)   │(pulldown-   │    (conversation DB)    │    │
│  │             │  cmark)     │                         │    │
│  └──────┬──────┴──────┬──────┴─────────────────────────┘    │
│         │             │                                      │
│  ┌──────┴──────┐ ┌────┴─────┐ ┌──────────────────────┐     │
│  │  Indexer    │ │ Embedder │ │     Storage           │     │
│  │  (Tantivy)  │ │ (ONNX)   │ │   (SQLite + WAL)     │     │
│  │  BM25 +     │ │ 384d     │ │   + r2d2 pool        │     │
│  │  HNSW ANN   │ │ MiniLM   │ │   + blake3 hashing   │     │
│  └─────────────┘ └──────────┘ └──────────────────────┘     │
│                                                             │
└─────────────────────────────────────────────────────────────┘

See docs/ARCHITECTURE.md for detailed breakdown.


🆘 Troubleshooting

Diagnostic Commands:

aikd status --json     # System info
aikd stats             # Index statistics
aikd daemon-pid        # Check if daemon running
"No results found"
  1. Run aikd scan first
  2. Check aikd stats to verify files indexed
  3. Try broader search terms
  4. Check include_extensions in config
"Model not downloaded"
aikd model download

This downloads ~90MB ONNX model to ~/.local/share/aikd/model/.

"Port 9090 already in use"
# Change port in config
# ~/.aikd/config.yaml
server:
  rest_port: 9091

Or stop existing process: aikd daemon-stop

High memory usage

Set resource mode to Low:

resource:
  mode: Low
  max_memory_mb: 512
MCP not connecting to Claude/Cursor
  1. Check ~/.aikd/mcp.json exists
  2. Restart your AI agent
  3. Verify aikd serve works: echo '{"jsonrpc":"2.0","method":"initialize","id":1}' | aikd serve
Windows: "vcruntime140.dll not found"

Install Visual C++ Redistributable.


🤝 Community

Get Help:

Contributors:

ContributionWho
🏗️ Architecture & Core@gelutjari
🔒 Security AuditAI-assisted (MiMo)
⚡ Performance OptimizationCommunity
📖 DocumentationCommunity

See CONTRIBUTING.md for how to contribute.


📄 License

MIT License — see LICENSE for details.


⭐ Star this repo if AIKD helps your AI agents remember!

Star History Chart

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for AIKD from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/aikd)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools