Skip to main content
Glama

🧠 CodeMemory

コードベースのための永続的インテリジェンス層
AIエージェント向けのローカルファースト、プライバシー重視のCLIツールおよびModel Context Protocol(MCP)サーバー。

🌐 公式サイト&ドキュメント: https://codemem.vercel.app/


⚡ 主な特長

  • 🔒 100%ローカル&プライベート: テレメトリゼロ、外部ネットワーク呼び出しゼロ。すべてのインテリジェンスはSQLite WALモードでローカルに保存されます。

  • 🌐 インタラクティブなWebアーキテクチャエクスプローラー: タイムラインスクラビングとリアルタイムのライブ更新を備えたローカルな視覚的フローチャート&メモリダッシュボード。

  • トークン効率: 生のファイルダンプではなく、ターゲットを絞ったコンテキストスライスと呼び出し元グラフを提供することで、AIプロンプトのトークン消費を最小限に抑えます。

  • 🔍 多言語AST解析: TypeScript/JavaScript、Python、Rust、Go、SQLなどから関数、クラス、インターフェース、構造体、インポートを抽出します。

  • 👀 リアルタイムライブウォッチャー: 100msのデバウンスと.gitignore統合により、コード変更を即座に検出します。

  • 🤖 ネイティブMCPサーバー: Antigravity、Claude Desktop、Cursor、Copilot、およびカスタムAIエージェントにすぐに接続できます。

  • 📊 アーキテクチャビジュアライザー: ライブのMermaid図、Markdownドキュメント、JSONマップを生成します。


Related MCP server: Graft

🚀 クイックスタート

1. インストール

# Clone the repository
git clone https://github.com/EldrexDelosReyesBula/CodeMemory.git
cd CodeMemory

# Install dependencies
npm install

# Build TypeScript
npm run build

2. 基本コマンド

# Initialize CodeMemory in your repository
npm run dev -- init

# Scan the current codebase and index all symbols
npm run dev -- scan

# Search for any function, class, or symbol
npm run dev -- query authenticateUser

# Extract token-budgeted AI context
npm run dev -- context AuthService --budget 2000

# Start the live background file watcher
npm run dev -- watch

# Export Mermaid architecture diagram
npm run dev -- export --format mermaid

# Check repository health and statistics
npm run dev -- status

🤖 MCP経由でAIエージェントに接続

CodeMemoryは、完全なModel Context Protocol(MCP)stdioサーバーを提供します。

利用可能なMCPツール

ツール

説明

codememory_search

コードシンボル、シグネチャ、関数を検索します

codememory_get_context

依存関係と呼び出し元を含むトークン予算付きコンテキスト

codememory_get_dependencies

上流のインポートと下流の依存先

codememory_get_history

最近のファイル変更とGitコミットログ

codememory_get_architecture

リアルタイムのMermaidアーキテクチャ図を生成します

codememory_get_metrics

コードベース全体の統計と言語別内訳

Antigravity&Claude Desktopの設定

MCP設定(mcp_config.jsonまたはclaude_desktop_config.json)に以下を追加します:

{
  "mcpServers": {
    "codememory": {
      "command": "node",
      "args": ["c:/Users/Eldrex/Downloads/classhost/Needs/CodeMemory/dist/cli.js", "mcp"],
      "env": {}
    }
  }
}

🏗️ アーキテクチャ

CodeMemory/
├── src/
│   ├── types/          # Domain data types & contracts
│   ├── db/             # SQLite engine with WAL mode & indexes
│   ├── parser/         # Multi-language AST symbol & dependency extractor
│   ├── watcher/        # Real-time debounced file watcher with .gitignore
│   ├── git/            # Git commit and diff history monitor
│   ├── generator/      # Mermaid diagram & Markdown/JSON exporters
│   ├── context/        # Token-budgeted context assembly & symbol ranker
│   ├── mcp/            # Model Context Protocol stdio server
│   └── cli.ts          # CLI commands router
└── tests/              # Complete Vitest test suite

📜 ライセンス

MITライセンス - Copyright (c) 2026 Eldrex Delos Reyes Bula.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    D
    maintenance
    Persistent codebase knowledge layer for AI agents. Pre-digests codebases into structured knowledge (symbols, dependency graphs, co-change patterns, architectural decisions) and serves via MCP. 28 languages, 14 tools, ~85% token reduction.
    53
    7
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Local-first codebase context engine that parses code into a ranked dependency graph and serves it to AI tools via MCP for deep structural understanding.
    5
    8
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI coding agents to retrieve and manage code context with hybrid search, project memory, and observability via MCP tools.
    29
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Serves structured code context via MCP, enabling AI agents to understand codebases with dependency graphs and significantly reduce token usage.
    39
    MIT

View all related MCP servers

Related MCP Connectors

  • Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.

  • Give your AI agent a persistent map of your project's structure, dependencies, and bugs.

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

View all MCP Connectors

Latest Blog Posts

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/EldrexDelosReyesBula/CodeMemory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server