codebase-memory-mcp: เครื่องมือวิเคราะห์โค้ดเซิร์ฟเวอร์codebase-memory-mcp: Code Intelligence MCP Server
codebase-memory-mcp เป็นเซิร์ฟเวอร์ MCP สำหรับการวิเคราะห์โค้ดแบบประสิทธิภาพสูง ทำดัชนีให้ฐานโค้ดเป็น knowledge graph
codebase-memory-mcp is a high-performance MCP server for code analysis, indexing codebases into a persistent knowledge graph.
ไว้ทำอะไร
เครื่องมือนี้ออกแบบมาเพื่อช่วยนักพัฒนาในการทำดัชนีและสืบค้นโค้ดอย่างรวดเร็ว สามารถใช้กับโค้ดเบสหลายภาษา และให้คำตอบได้อย่างรวดเร็วในระดับ sub-millisecond
ทำงานอย่างไร
codebase-memory-mcp ใช้การวิเคราะห์ Abstract Syntax Tree (AST) ผ่าน tree-sitter ซึ่งรองรับภาษา 162 ภาษา และใช้ SQLite ในการจัดการข้อมูล ดัชนีนี้ถูกวางไว้ในรูปลักษณ์ของ knowledge graph และสามารถตอบคำถามเกี่ยวกับโครงสร้างของโค้ดในเวลาน้อยกว่า 1ms นอกจากนี้มีการรองรับการใช้งานร่วมกับหลาย agent เช่น Claude Code, Codex โดยไม่จำเป็นต้องมีบริการที่โฮสต์
โครงสร้างโค้ด
- .github — การจัดการและตั้งค่า GitHub
- docs — เอกสารเกี่ยวกับการติดตั้งและการใช้งาน
- scripts — สคริปสำหรับการตรวจสอบและทดสอบระบบ
- graph-ui — โฟลเดอร์สำหรับส่วนประสานกราฟ
- internal/cbm — สำหรับโค้ดภายในของ codebase-memory
เริ่มใช้งาน
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
เหมาะกับงานแบบไหน
- การทำดัชนีและสืบค้นโค้ดในโครงการขนาดใหญ่เช่น Kernel Linux
- การวิเคราะห์โครงสร้างของโค้ดหลายภาษา
ข้อควรรู้
- มีความเสี่ยงจากการเกิด false positive กับโปรแกรมป้องกันไวรัสบางตัว
- สำหรับนักพัฒนาที่ต้องการตรวจสอบความปลอดภัยสามารถดูและแก้ไขโค้ดที่เปิดเผยใน GitHub
What it is for
This tool is designed to help developers index and search code quickly, supporting multiple languages and providing rapid sub-ms query responses.
How it works
codebase-memory-mcp employs tree-sitter for Abstract Syntax Tree (AST) analysis, supporting 162 languages and utilizing SQLite for data management. The index is constructed as a knowledge graph, enabling structural queries to be answered in sub-ms. It supports multiple agent surfaces such as Claude Code, Codex without needing a hosted service.
Code structure
- .github — GitHub settings and workflows
- docs — Documentation for installation and usage
- scripts — Scripts for checks and testing
- graph-ui — Folder for graph visualization UI
- internal/cbm — Internal code for codebase-memory
Getting started
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
Good fit for
- Indexing and searching code in large projects such as the Linux Kernel
- Analyzing code structure across multiple languages
Things to know
- Potential false positives with certain antivirus programs
- Developers wishing to verify security can view and modify the open-source code on GitHub
บทวิเคราะห์นี้สร้างจาก README และโค้ดของ repo โดย AI ของ Oneable — ตรวจสอบ license และเอกสารต้นทางก่อนนำไปใช้งานจริงThis breakdown was generated from the repository's README and code by Oneable's AI — check the license and upstream docs before using it in production.