ai-engineering-brain
Provides code repository analysis tools for Git repositories, including code search, grep, commit history, commit diffs, and retrieving files at specific versions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ai-engineering-brainSearch the knowledge base for API authentication patterns"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ai-engineering-brain
An internal enterprise engineering knowledge platform for Claude Code and other MCP Agents: unify internal documentation, code repositories, and long-term memory into a single MCP Gateway, and manage documents, accounts, and MCP Keys through the Admin page.
The most mature and Docker end-to-end verified path is the
kb-mcpknowledge base pipeline.code-mcpandmem-mcpare already connected to the unified MCP aggregation interface, but are still in the skeleton/continuous improvement stage.
See docs/kb-mcp-project-status.md for the full project implementation status, failure causes, and solutions.
Features
Knowledge Base: Import Markdown, TXT, DOCX; preserve heading hierarchy, tables, code blocks, and quotes; parent-child chunking; Qdrant dense+sparse hybrid retrieval, RRF, optional reranker.
Admin Management: EASTCOM admin page, document upload/retry/delete, missing file record cleanup, account login and RBAC.
Account-bound MCP Keys: After logging in, users can create, view, copy, show/hide, and revoke their own MCP Keys; full keys are encrypted at rest and never written to logs.
Unified MCP: Clients only connect to a single
/mcpendpoint on the Gateway; the Gateway aggregateskb_*,code_*, andmem_*tools.LAN Deployment: Services run on a single Docker host; other Agents access the Gateway over the LAN.
Related MCP server: MCP Gateway
Architecture
Claude Code / Other Agents
│ HTTP MCP + Bearer MCP Key
▼
Gateway :8000/mcp ← 唯一对外 MCP 接口
│
┌─────┼─────────────┐
▼ ▼ ▼
kb-mcp code-mcp mem-mcp
:8100 :8101 :8102
│ │ │
└───────┴──────┬──────┘
▼
Postgres + Qdrant
Admin :9001 ← 文档、账户、MCP Key 管理页面External clients only need to know:
MCP: http://<服务器局域网IP>:8000/mcp
Admin: http://<服务器局域网IP>:9001/The internal 8100/8101/8102 ports do not need to be configured for other Agents.
Tool Naming
Tools in the unified MCP use a service prefix:
kb_search
kb_list_documents
code_search_code
code_grep_code
code_query_git_history
code_get_commit_diff
code_get_file_at_version
mem_save_memory
mem_search_memorySome tools in code-mcp and mem-mcp are still skeleton implementations; they can be completed later without changing the client address.
Quick Start
Prerequisites
Docker Desktop (Windows + WSL2) or Docker Engine + Docker Compose v2;
Linux/macOS: Bash,
curl,openssl, Python 3;Windows: PowerShell, Docker Desktop;
If model download is needed, the host/container must be able to reach Hugging Face; if direct connection is not possible, prepare an HTTP proxy.
Linux / macOS
git clone https://github.com/arui-git/ai-engineering-brain.git
cd ai-engineering-brain
chmod +x install.sh
./install.shThe install script will interactively ask:
MCP_KEY_ENCRYPTION_KEY: press Enter to generate a random one; existing values are not overwritten; must remain unchanged during upgrades;Admin initial username: press Enter for default
admin;Admin initial password: press Enter to generate a random one; only used on first startup with an empty database;
Model download network prompt: if Hugging Face is not reachable, set
KB_HTTP_PROXY/KB_HTTPS_PROXYin.env; the reranker is large, so you can setRERANKER_ENABLED=0to use the RRF fallback.
Windows PowerShell
git clone https://github.com/arui-git/ai-engineering-brain.git
Set-Location ai-engineering-brain
.\install.ps1If the PowerShell execution policy blocks the script, run the following in the current window:
Set-ExecutionPolicy -Scope Process Bypass
.\install.ps1After Installation
The install script will output the Admin and MCP addresses. Log in to Admin:
http://<服务器IP>:9001/Go to the MCP Keys page to create an account-bound key, then on the other Agent machines run:
claude mcp add --transport http aeb \
http://<服务器IP>:8000/mcp \
--header "Authorization: Bearer <MCP_KEY>"Or use the client script:
./claude/setup-claude.sh http://<服务器IP>:8000 <MCP_KEY>Check Claude Code:
claude mcp listConfiguration
.env is not committed to Git. Some random values are written on first install; see the template:
cp .env.example .envKey configuration:
Config | Description |
| Postgres password, generated by the install script |
| Fernet key for encrypting MCP Keys; must be kept long-term |
| Initial account for first-time setup on an empty database |
| Legacy |
| Legacy Gateway Key compatibility mechanism; not recommended as a long-term solution |
| Proxy for Hugging Face model downloads |
| Whether to enable the bge reranker; falls back to RRF when disabled |
Do not commit the following:
.env
ADMIN_KEY
API_KEYS
MCP_KEY_ENCRYPTION_KEY
ADMIN_BOOTSTRAP_PASSWORD
MCP Key 明文Common Commands
View services:
docker compose psView install/model logs:
docker compose logs -f kb-mcp
docker compose logs -f gateway
docker compose logs -f adminHealth check:
curl http://127.0.0.1:8000/healthz
curl -I http://127.0.0.1:9001/Check database accounts and MCP Key tables:
docker compose exec -T postgres psql -U aeb -d aeb -c '\dt admin_*'
docker compose exec -T postgres psql -U aeb -d aeb -c '\d mcp_api_keys'Validate configuration and syntax:
docker compose config --quiet
python3 -m py_compile services/admin/app/*.py services/kb-mcp/app/*.py services/gateway/app/*.py
node --check services/admin/app/static/admin.js
bash -n install.sh claude/setup-claude.shData & Upgrades
Data is stored in Docker volumes:
pg_data 账户、MCP Key 元数据、文档状态
qdrant_data 向量索引
kb_docs 原始文档
model_cache embedding/reranker 模型
repos 代码仓库数据It is recommended to back up Postgres and important documents before upgrading. Normal upgrade:
git pull
docker compose build
docker compose up -dDo not run:
docker compose down -vThis command will delete data volumes.
LAN Access
If the Docker host's LAN IP is 192.168.1.10:
Admin: http://192.168.1.10:9001/
MCP: http://192.168.1.10:8000/mcpFirst test from another machine:
curl http://192.168.1.10:8000/healthz
curl -I http://192.168.1.10:9001/Under Windows + WSL2 mirrored networking, if WSL internal and Windows localhost are accessible but the Windows/LAN IP times out, check the WSL mirrored/Hyper-V network policy, Docker Desktop port publishing, and LAN inbound rules. The project service listening and Compose publishing should remain:
0.0.0.0:8000 -> Gateway
0.0.0.0:9001 -> AdminDo not expose the HTTP admin page directly to untrusted networks in production; use a VPN, internal firewall, or HTTPS reverse proxy, and regularly revoke/rotate MCP Keys.
Current Limitations
code-mcpis currently a code repository capability skeleton; the full Git metadata database and AST index are still to be completed;mem-mcpis currently a memory layer skeleton; mem0 auto-extraction/hooks are still to be completed;The reranker model is large and may remain unavailable on unstable networks; core retrieval will fall back to RRF;
Admin is currently suitable for intranet testing; production requires HTTPS/VPN/firewall;
Document classification (project, document type, tags) is a direction for the next phase.
Table of Contents
services/kb-mcp/ 知识库解析、摄入、检索
services/gateway/ 唯一对外 MCP、Bearer 鉴权、工具聚合
services/admin/ Admin 页面、账户和 MCP Key
services/code-mcp/ 代码能力骨架
services/mem-mcp/ 记忆能力骨架
docs/ 设计、部署、稳定性和项目状态文档
claude/ Claude Code 接入脚本与检索行为规则License
This repository does not yet declare a formal open-source license. If you plan to distribute it publicly, please add a LICENSE file before release and clarify the usage rights for third-party models, dependencies, and documentation.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceA powerful gateway for the Model Context Protocol (MCP) that unifies AI toolchains by federating multiple MCP servers, wrapping REST APIs as MCP tools, and supporting multiple transport methods with an admin dashboard.1
- Alicense-qualityCmaintenanceA universal gateway that aggregates multiple MCP servers into a single interface while providing advanced token optimization, result filtering, and automated summarization. It enables efficient management of large tool catalogs and reduces context usage by up to 95% for major AI clients.2615MIT
- Alicense-qualityAmaintenanceAn enterprise-grade MCP server that enables AI coding assistants to securely connect with external tools, APIs, databases, and cloud services through a unified interface, offering structured engineering workflows and multi-client support.MIT
- Alicense-qualityBmaintenanceAn enterprise-grade MCP gateway and security router that gives AI agents secure, observable access to internal corporate knowledge through hybrid vector+BM25 retrieval, RBAC, and prompt injection protection.MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/arui-git/ai-engineering-brain'
If you have feedback or need assistance with the MCP directory API, please join our Discord server