Heimdall MCP Serverのロゴ

Heimdall MCP Server

コミュニティ
lcbcFoo

Your AI Coding Assistant's Long-Term Memory

公開者lcbcFoo
リポジトリheimdall-mcp-server
言語Python
フォーク
17
スター
105
利用可能なツール
0
通信方式stdio
リンク
  • ツールをAIワークフローに接続

    Heimdall MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには105件のスターと17件のフォークがあります。

Heimdall MCP Server - Your AI Coding Assistant's Long-Term Memory

Python 3.11+ License: Apache 2.0 MCP Protocol Heimdall Demo Video PyPI - Version

The Problem: Your AI coding assistant has short-lived memory. Every chat session starts from a blank slate.

The Solution: Heimdall gives your LLM a persistent, growing, cognitive memory of your specific codebase, lessons and memories carry over time.

https://github.com/user-attachments/assets/120b3d32-72d1-4d42-b3ab-285e8a711981

Key Features

  • 🧠 Context-Rich Memory: Heimdall learns from your documentation, session insights, and development history, allowing your LLM to recall specific solutions and architectural patterns across conversations.
  • 📚 Git-Aware Context: It indexes your project's entire git history, understanding not just what changed, but also who changed it, when, and context.
  • 🔗 Isolated & Organized: Each project gets its own isolated memory space, ensuring that context from one project doesn't leak into another.
  • ⚡ Efficient Integration: Built on the Model Context Protocol (MCP), it provides a standardized, low-overhead way for LLMs to access this powerful memory.

🚀 Getting Started

Prerequisites: Python 3.11+ and Docker (for Qdrant vector database).

Heimdall provides a unified heimdall CLI that manages everything from project setup to MCP integration.

1. Install Heimdall

bash
pip install heimdall-mcp

This installs the heimdall command-line tool with all necessary dependencies.

2. Initialize Your Project

Navigate to your project directory and set up Heimdall:

bash
cd /path/to/your/project

# Initialize project memory (starts Qdrant, creates collections, sets up config)
heimdall project init

This single command interactively builds up everything asking user preferences:

  • ✅ Starts Qdrant vector database automatically
  • ✅ Creates project-specific memory collections
  • ✅ Sets up .heimdall/ configuration directory
  • ✅ Downloads required AI models
  • ✅ File monitoring
  • ✅ Git hooks
  • ✅ MCP integration

Note: this creates a .heimdall/ directory in your project for configuration - you should NOT commit this - add to .gitignore!

Load Project Knowledge

Recommended: Use automatic file monitoring and place files in .heimdall/docs/:

bash
# Copy or symlink your documentation to the monitored directory
ln -r -s my-project-docs ./.heimdall/docs/project-docs

# Start automatic monitoring (files are loaded instantly when changed)
heimdall monitor start

Alternative: Manual loading for one-time imports:

bash
# Load documentation and files manually
heimdall load docs/ --recursive
heimdall load README.md

Your project's memory is now active and ready for your LLM.

Real-time Git Integration

You can parse your entire git history with:

bash
# Load git commit history
heimdall git-load .

You can also install git hooks for automatic memory updates on commits:

bash
# Install the post-commit hook (Python-based, cross-platform)
heimdall git-hooks install

Note: If you have existing post-commit hooks, they'll be safely chained and preserved - but proceed carefully.

🧹 Cleanup

To remove Heimdall from a project:

bash
# Navigate to the project you want to clean up
cd /path/to/project

# Cleanup data, remove collections, uninstall git hooks
memory_system project clean

This cleanly removes project-specific data while preserving the shared Qdrant instance for other projects.

⚙️ How It Works Under the Hood

Heimdall extracts unstructured knowledge from your documentation and structured data from your git history. This information is vectorized and stored in a Qdrant database. The LLM can then query this database using a simple set of tools to retrieve relevant, context-aware information.

LLM Tool Reference

You can instruct your LLM to use the following six tools to interact with its memory:

ToolDescription
store_memoryStores a new piece of information, such as an insight or a solution.
recall_memoriesPerforms a semantic search for relevant memories based on a query.
session_lessonsRecords a key takeaway from the current session for future use.
memory_statusChecks the health and statistics of the memory system.
delete_memoryDelete a specific memory by its unique ID.
delete_memories_by_tagsDelete all memories that have any of the specified tags.

💡 Best Practices

To maximize the effectiveness of Heimdall:

  • Provide Quality Documentation: Think architecture decision records, style guides, and API documentation.
  • Keep documents updated: Heilmdall will use documents in .heimdall/docs to provide memories - if they are outdated, so will be the memories. We suggest you use symbolic links to your actual docs directory in .heimdall/docs so Heimdall automatically refreshes memories with latest document versions.
  • Maintain Good Git Hygiene: Write clear and descriptive commit messages. A message like feat(api): add user authentication endpoint is far more valuable than more stuff.
  • Set Up Automation: Use heimdall monitor start and heimdall git-hooks install for hands-free memory updates.
  • Guide Your Assistant: Use a system prompt (like a CLAUDE.md file) to instruct your LLM on how and when to use the available memory tools.
  • Use Strategic Tagging: Establish rules for your LLM to tag memories consistently. Use temporary tags like temp-analysis, task-specific, or cleanup-after-project for memories that should be deleted after completion, enabling easy cleanup with delete_memories_by_tags.

🛠️ Command Reference

Core Commands

CommandDescription
heimdall store <text>Store experience in cognitive memory
heimdall recall <query>Retrieve relevant memories based on query
heimdall load <path>Load files/directories into memory
heimdall git-load [repo]Load git commit patterns into memory
heimdall statusShow system status and memory statistics
heimdall remove-file <path>Remove memories for deleted file
heimdall delete-memory <id>Delete specific memory by ID
heimdall delete-memories-by-tags --tag <tag>Delete memories by tags
heimdall doctorRun comprehensive health checks
heimdall shellStart interactive memory shell

Project Management

CommandDescription
heimdall project initInitialize project memory with interactive setup
heimdall project listList all projects in shared Qdrant instance
heimdall project cleanRemove project collections and cleanup

Vector Database (Qdrant)

CommandDescription
heimdall qdrant startStart Qdrant vector database service
heimdall qdrant stopStop Qdrant service
heimdall qdrant statusCheck Qdrant service status
heimdall qdrant logsView Qdrant service logs

File Monitoring

CommandDescription
heimdall monitor startStart automatic file monitoring service
heimdall monitor stopStop file monitoring service
heimdall monitor restartRestart monitoring service
heimdall monitor statusCheck monitoring service status
heimdall monitor healthDetailed monitoring health check

Git Integration

CommandDescription
heimdall git-hook installInstall post-commit hook for automatic memory processing
heimdall git-hook uninstallRemove Heimdall git hooks
heimdall git-hook statusCheck git hook installation status

MCP Integration

CommandDescription
heimdall mcp install <platform>Install MCP server for platform (vscode, cursor, claude-code, visual-studio, codex)
heimdall mcp remove <platform>Remove MCP integration from platform
heimdall mcp statusShow installation status for all platforms
heimdall mcp listList available platforms and installation status
heimdall mcp generate <platform>Generate configuration snippets for manual installation

Platforms

Heimdall MCP server is compatible with any platform that supports STDIO MCP servers. The following platforms are supported for automatic installation using heimdall mcp commands.

  • vscode - Visual Studio Code
  • cursor - Cursor IDE
  • claude-code - Claude Code
  • visual-studio - Visual Studio
  • codex - Codex CLI (project-local CODEX_HOME config)

Technology Stack:

  • Python 3.11+
  • Vector Storage: Qdrant
  • Mmeory information and metadata: SQLite
  • Embeddings: all-MiniLM-L6-v2
  • Sentiment analysis: NRCLex emotion lexicon
  • Semantic analysis: spaCy
  • Integration: Model Context Protocol (MCP)

🗺️Short Term Roadmap

  • Git post-commit hook for automatic, real-time memory updates ✅ Completed
  • Watcher to auto-detect and load new documents in the .heimdall-mcp directory. ✅ Completed
  • Release v0.1.0 publicly ✅ Completed
  • Heimdall pip package available ✅ Completed
  • Simplify installation ✅ Completed
  • Delete memories support (manually or by tags - for md docs already supported) ✅ Completed

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Setting up the development environment
  • Our dual licensing model
  • Code style guidelines
  • Pull request process

Important: All contributors must agree to our Contributor License Agreement before their contributions can be merged.

Quick Start for Contributors

  1. Fork the repository
  2. Create a feature branch targeting dev (not main)
  3. Make your changes following our style guidelines
  4. Submit a pull request with the provided template
  5. Sign the CLA when prompted by the CLA Assistant

For questions, open an issue or start a discussion!

📄 License

This project is licensed under the Apache 2.0 License for open source use. See our Contributing Guide for information about our dual licensing model for commercial applications.

Heimdall MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Heimdall MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Heimdall MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Heimdall MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "heimdall-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてHeimdall MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Heimdall MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Heimdall MCP Serverを使ってこのタスクを手伝ってもらえますか?
Heimdall MCP Server
はい、読みました。
Heimdall MCP Serverで調べた結果をお伝えします。

よくある質問

Heimdall MCP Server MCPサーバーは何に使いますか?

Heimdall MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでHeimdall MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでHeimdall MCP Serverを利用できます。

TypingMindでHeimdall MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Heimdall MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Heimdall MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Heimdall MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでHeimdall MCP Server MCPのどのようなツールを利用できますか?

Heimdall MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Heimdall MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Heimdall MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇