能力标签
AiDex
🔌
MCP工具

AiDex

基于 TypeScript · 让 AI 助手直接操作你的系统与工具
⭐ 34 Stars 🍴 9 Forks 💻 TypeScript 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
mcpai-codingcode-indexingcode-search
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,AiDex 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

AiDex 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 AiDex,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。AiDex 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 AiDex 评为 AI 评分 7.5 分,属于同类工具中的优质选择。

📋 工具概览

AiDex 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 34
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
MCP工具
Forks
9

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

AiDex 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/CSCSoftware/AiDex

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "aidex": {
      "command": "npx",
      "args": ["-y", "aidex"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 AiDex 执行以下任务...
Claude: [自动调用 AiDex MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "aidex": {
      "command": "npx",
      "args": ["-y", "aidex"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 87/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

AiDex

npm version MIT License Node.js 18+ MCP Server GitHub Discussions

The persistent brain for AI coding agents.

AiDex is an MCP server that gives AI coding assistants a memory, semantic search, and live telemetry — local-first, model-agnostic. Works with any MCP-compatible AI assistant: Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI, VS Code Copilot, and more.

What's Inside — 33 Tools in One Server

CategoryToolsWhat it does
**Semantic Search** 🆕search, settingsHybrid / semantic / exact retrieval over code, docs & workspace. Settings tab to configure embeddings + LLM layer
**Index & Identifier Search**init, query, update, remove, statusIndex your project, search identifiers by name (exact/contains/starts_with), time-based filtering
**Signatures**signature, signaturesGet classes + methods of any file without reading it — single file or glob pattern
**Project Overview**summary, tree, describe, filesEntry points, language breakdown, file tree with stats, file listing by type
**Cross-Project**link, unlink, links, scanLink dependencies, discover indexed projects
**Global Search**global_init, global_query, global_signatures, global_status, global_refreshSearch identifiers across ALL your projects — "Have I ever written X?"
**Guidelines**global_guidelinePersistent AI instructions & coding conventions — shared across all projects
**Sessions**session, noteTrack sessions, detect external changes, leave notes for next session (with searchable history)
**Task Backlog**task, tasksBuilt-in task management with priorities, tags, auto-logged history, and **scheduled/recurring tasks**
**Log Hub**logUniversal log receiver — any program sends logs via HTTP, queryable by the AI, live in Viewer
**Screenshots**screenshot, windowsCross-platform screen capture with LLM optimization — scale + color reduction saves up to 95% tokens
**Viewer**viewerInteractive browser UI with file tree, signatures, tasks, logs, search, and live reload

12 languages — C#, TypeScript, JavaScript, Rust, Python, C, C++, Java, Go, PHP, Ruby, HCL/Terraform

<details> <summary><strong>Quick Examples</strong> — see it in action</summary>

```

Features

  • Tree-sitter Parsing: Real code parsing, not regex — indexes identifiers, ignores keywords and noise
  • ~50 Tokens per Search: vs 2000+ with grep — your AI keeps its context for actual work
  • Persistent Index: Survives between sessions — no re-scanning, no re-reading
  • Incremental Updates: Re-index single files after changes, not the whole project
  • Time-based Filtering: Find what changed in the last hour, day, or week
  • Auto-Cleanup: Excluded files (e.g., build outputs) are automatically removed from index
  • Zero Dependencies: SQLite with WAL mode — single file, fast, portable

Features

  • Ring Buffer: Fixed-size in-memory FIFO (default 10,000 entries) — oldest entries overwritten
  • Zero-cost: No server, no buffer, no resources until init is called
  • Persistence: Optional SQLite storage with 7-day auto-cleanup (persist: true)
  • Consume pattern: query with consume: true removes returned entries — ideal for polling
  • Viewer integration: Logs tab with WebSocket live-stream, level/source/text filters, auto-scroll
  • Fire & forget: Just POST and go — if the server isn't running, the POST silently fails

Features

  • 5 capture modes: Fullscreen, active window, specific window (by title), interactive region selection, coordinate-based rectangle
  • Cross-platform: Windows (PowerShell + System.Drawing), macOS (sips + ImageMagick), Linux (ImageMagick)
  • Multi-monitor: Select which monitor to capture
  • Delay: Wait N seconds before capturing (e.g., to open a menu first)
  • Size reporting: Shows original → optimized size and percentage saved
  • Auto-path: Default saves to temp directory with fixed filename
  • No index required: Works standalone, no .aidex/ needed

Prerequisites

  • Node.js ≥ 18 (check with node --version)
  • macOS: brew install node or nvm install 18 && nvm use 18
  • Linux: use your package manager or nvm
  • Windows: nodejs.org
  • If you use nvm, the repo ships a .nvmrcnvm use picks the right version automatically.

Session-Start Rule (REQUIRED — every session, no exceptions)

  1. Call aidex_session({ path: "<project>" }) — detects external changes, auto-reindexes
  2. If .aidex/ does NOT exist → run aidex_init automatically (don't ask)
  3. If a session note exists → show it to the user before continuing
  4. Before ending a session: always leave a note about what to do next

A single widget — id is the fixed slot, type is required on first send

curl -X POST http://localhost:3335/panel -H "Content-Type: application/json" \ -d '{"id":"mic","type":"plot","value":0.73,"group":"Audio","label":"Mic Level","unit":"dB"}'

Setup

// Enable embeddings on a project (one-time, ~30s for AiDex itself, cached afterwards)
aidex_init({ path: ".", embeddings: true })

// Search
aidex_search({ query: "how do we batch requests to the LLM", path: "." })
aidex_search({ query: "retry with backoff", scope: "all" })  // across every embedded project

Or use the Settings tab in the Viewer (aidex_settings({ path: ".", open: true })) — toggles for embeddings, LLM provider, model, and the privacy switch.

1. Install

npm install -g aidex-mcp

That's it. Setup runs automatically after install — it detects your installed AI clients (Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI, VS Code Copilot) and registers AiDex as an MCP server. It also adds usage instructions to your AI's config (~/.claude/CLAUDE.md, ~/.gemini/GEMINI.md).

To re-run setup manually: aidex setup | To unregister: aidex unsetup | To skip auto-setup: AIDEX_NO_SETUP=1 npm install -g aidex-mcp

Setup

aidex_global_init({ path: "Q:/develop" })                              # Scan & register
aidex_global_init({ path: "Q:/develop", exclude: ["llama.cpp"] })      # Skip external repos
aidex_global_init({ path: "Q:/develop", index_unindexed: true })       # Auto-index all found projects
aidex_global_init({ path: "Q:/develop", index_unindexed: true, show_progress: true })  # With browser progress UI

This scans your project directory, registers all AiDex-indexed projects in a global database (~/.aidex/global.db), and reports any unindexed projects it finds by detecting project markers (.csproj, package.json, Cargo.toml, etc.).

With index_unindexed: true, it also auto-indexes all discovered projects with ≤500 code files. Larger projects are listed separately for user decision. Add show_progress: true to open a live progress UI in your browser (http://localhost:3334).

Quick Start

AI Guidelines

Store persistent coding conventions, review checklists, and AI instructions in a single place — shared across all projects.

aidex_global_guideline({ action: "set", key: "review", value: "Always check: error handling, null safety, no hardcoded strings" })
aidex_global_guideline({ action: "set", key: "style", value: "Use PascalCase for classes, camelCase for methods, 4-space indent" })
aidex_global_guideline({ action: "get", key: "review" })               # Retrieve a guideline
aidex_global_guideline({ action: "list" })                             # Show all guidelines
aidex_global_guideline({ action: "list", filter: "code" })             # Filter by name
aidex_global_guideline({ action: "delete", key: "old-rule" })          # Remove a guideline

Use cases: - Code review checklist: Tell your AI exactly what to look for every time - Coding conventions: Store team style rules once, reference them in any project - Release checklist: Step-by-step process for shipping - Project-agnostic instructions: No more pasting the same context into every session

Guidelines are stored in ~/.aidex/global.db — available across all your projects without aidex_init. Ask your AI: "Load the review guideline and apply it to this file."

Quick start

  1. AI starts the Log Hub: aidex_log({ action: "init" })
  2. AI opens the Viewer: aidex_viewer({ path: "." }) — Logs tab shows live stream
  3. Add one line to your program:
// C#
await new HttpClient().PostAsJsonAsync("http://localhost:3335/log",
    new { level = "info", source = "MyApp", message = "Player spawned", data = new { x = 10, y = 20 } });

```python

Usage

aidex_screenshot()                                             # Full screen (full quality)
aidex_screenshot({ mode: "active_window" })                    # Active window
aidex_screenshot({ mode: "window", window_title: "VS Code" }) # Specific window
aidex_screenshot({ scale: 0.5, colors: 2 })                   # B&W, half size (best for text)
aidex_screenshot({ scale: 0.5, colors: 16 })                  # 16 colors (UI readable)
aidex_screenshot({ colors: 256 })                              # 256 colors (good quality)
aidex_screenshot({ mode: "region" })                           # Interactive selection
aidex_screenshot({ mode: "rect", x: 100, y: 200, width: 800, height: 600 })  # Coordinates
aidex_windows({ filter: "chrome" })                            # Find window titles

CLI Usage

aidex scan Q:/develop       # Find all indexed projects
aidex init ./myproject      # Index a project from command line
aidex-mcp works as an alias for aidex.

Screenshots

aidex_screenshot()                                             # Full screen
aidex_screenshot({ mode: "active_window" })                    # Active window
aidex_screenshot({ mode: "window", window_title: "VS Code" }) # Specific window
aidex_screenshot({ scale: 0.5, colors: 2 })                   # B&W, half size (ideal for LLM)
aidex_screenshot({ colors: 16 })                               # 16 colors (UI readable)
aidex_windows({ filter: "chrome" })                            # Find window titles
No index needed. Returns file path → use Read to view immediately.

LLM optimization strategy: Always start with aggressive settings, then retry if unreadable: 1. First try: scale: 0.5, colors: 2 (B&W, half size — smallest possible) 2. If unreadable: retry with colors: 16 (adds shading for UI elements) 3. If still unclear: scale: 0.75 or omit colors for full quality 4. Remember what works for each window/app during the session — don't retry every time. ```

Try it — the built-in demo

A ready-to-run showcase animates all widget types (audio waveform, GPU gauges drifting through their zones, a signal generator cycling sine → sawtooth → triangle → square, latency spikes):

```bash

2. Run the demo (from the AiDex repo root):

node scripts/demo-dashboard.mjs # endless loop, Ctrl+C to stop (clears on exit) ```

Or use the ▷ Demo button on the Debug tab — it copies the run command to your clipboard; paste it into a terminal. (The browser can't spawn a process itself.) scripts/demo-dashboard.ps1 is a one-command launcher that checks the Log Hub first.

Running it twice starts two instances that fight over the same widgets (visible flicker) — stop the old one (Ctrl+C) before starting another.

Screenshots — LLM-Optimized

Take screenshots and reduce them up to 95% for LLM context. A typical screenshot goes from ~100 KB to ~5 KB — that's thousands of tokens saved per image.

Optional LLM layer

When an Anthropic / OpenAI / OpenRouter / Ollama / HuggingFace API key is configured, AiDex can:

  • Translate non-English queries → "wie speichere ich Logs lokal" finds the right code
  • Expand vague queries into 2-4 concrete subqueries (RRF-merged)
  • Rerank top-N retrieval candidates

Privacy switch llm_send_code defaults to off — only your literal query and metadata (paths, names, anchors) are sent. Code bodies stay local. Per-project, easy to verify in Settings.

Local-first: works fully offline with pure embeddings. The LLM layer is opt-in, never required.

HTTP API

EndpointMethodBodyDescription
/logPOST{ level, source, message, data? }Single log entry
/logsPOST[{ ... }, ...]Batch (multiple at once)
/healthGETStatus + buffer usage

Fields: level (debug/info/warn/error), source (app name), message (text, required), data (optional JSON), timestamp (optional, ms)

Three modes — pick the right tool for the question

ModeWhat it doesWhen to use
exactIdentifier match (same as aidex_query)You know the name. PlayerHealth → 3 hits
semanticVector KNN over embedded code+docs+workspaceYou know the *concept*. "how do we cache the model" → finds getQueryEmbedder
hybrid (default)RRF fusion of bothMixed queries. Robust by default

Question → Right Tool

QuestionTool
"Where is X defined?"aidex_query term="X"
"Find anything containing X"aidex_query term="X" mode="contains"
"All functions starting with X"aidex_query term="X" mode="starts_with"
"What methods does file Y have?"aidex_signature file="Y"
"Explore all files in src/"aidex_signatures pattern="src/**"
"Project overview"aidex_summary + aidex_tree
"What changed recently?"aidex_query term="X" modified_since="2h"
"What files changed today?"aidex_files path="." modified_since="8h"
"Have I ever written X?"aidex_global_query term="X" mode="contains"
"Which project has class Y?"aidex_global_signatures term="Y" kind="class"
"All indexed projects?"aidex_global_status
🇨🇳 中文文档镜像 AI 翻译 2026-06-06
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

AiDex 是一个全能的开发工具,集成了 33 个功能于一身,包括语义搜索、索引和标识符搜索等。它可以帮助开发者快速找到代码中的信息,提高开发效率。

⚡ 功能介绍

AiDex 提供了多种功能,包括语义搜索、索引和标识符搜索等。语义搜索可以帮助开发者找到与查询相关的代码片段,索引和标识符搜索可以帮助开发者快速找到特定的代码信息。

📋 环境依赖

AiDex 需要 Node.js 18 或更高版本来运行。它还需要 macOS、Linux 或 Windows 等操作系统来安装和运行。

🛠 安装步骤(Docker/pip/源码)

安装 AiDex 可以使用 npm 安装 `aidex-mcp` 包。安装完成后,AiDex 会自动设置并注册为 MCP 服务器。

🚀 使用教程

使用 AiDex 可以通过调用 `aidex_session` 函数来启动一个新的会话。会话中可以使用 `aidex_search` 函数来执行语义搜索,`aidex_query` 函数来执行索引和标识符搜索等功能。

⚙️ 配置说明(含 MCP / env)

AiDex 可以通过配置文件来设置各种参数,包括 LLM 层、MCP 服务器等。配置文件可以通过 `aidex_settings` 函数来设置。

🔌 API 说明

AiDex 提供了 HTTP API 接口,包括 `/log`、`/logs`、`/health` 等接口。这些接口可以帮助开发者获取 AiDex 的日志信息、批量日志信息和 AiDex 的状态信息等。

❓ FAQ 摘要

AiDex 提供了多种使用模式,包括精确模式、语义模式等。精确模式可以帮助开发者快速找到特定的代码信息,语义模式可以帮助开发者找到与查询相关的代码片段。

🎯 aiskill88 AI 点评 A 级 2026-06-06

AiDex是一个有潜力的开源MCP工具

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
AiDex 中文教程AiDex 安装报错怎么办AiDex MCP 配置AiDex Agent 工作流AiDex 与同类工具对比AiDex 最佳实践AiDex 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

AiDex 是一款TypeScript开发的AI辅助工具。开源MCP工具:MCP Server for persistent code indexing. Gives AI assistants (Claude, Gemini, Co。⭐34 · TypeScript 主要应用场景包括:AI助手代码搜索和索引。
💡 AI Skill Hub 点评

AI Skill Hub 点评:AiDex 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 AiDex
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 AiDex
原始描述 开源MCP工具:MCP Server for persistent code indexing. Gives AI assistants (Claude, Gemini, Co。⭐34 · TypeScript
Topics mcpai-codingcode-indexingcode-search
GitHub https://github.com/CSCSoftware/AiDex
License MIT
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/CSCSoftware/AiDex 🌐 官方网站  https://www.npmjs.com/package/aidex-mcp

收录时间:2026-06-06 · 更新时间:2026-06-06 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。