Agent Knowledgeのロゴ

Agent Knowledge

コミュニティ
itshare4u

Complete knowledge management for AI assistants

公開者itshare4u
リポジトリAgentKnowledgeMCP
言語Python
フォーク
7
スター
27
利用可能なツール
27
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

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

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

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

  • コピーして使える設定

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

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

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

Agent Knowledge MCP 🔍

Complete knowledge management for AI assistants
MCP server with Elasticsearch search and document management.

Python 3.8+ MCP Compatible MIT License

🚀 Features

🔑 All-in-One Solution:

  • 🔍 Elasticsearch: Search, index, and manage documents
  • 📊 Document Validation: Schema-enforced structure
  • ⚙️ Configuration: Complete config management
  • 🛡️ Security: Sandboxed operations

✨ Benefits:

  • 🎯 20 Tools for knowledge management
  • 🤖 Works with any MCP-compatible AI (Claude, ChatGPT, VS Code, etc.)
  • 📚 Smart document management with validation
  • ⚡ Elasticsearch integration for powerful search

⚡ Quick Start

Installation

bash
# Install with uvx (recommended)
uvx agent-knowledge-mcp

Setup for Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "agent-knowledge": {
      "command": "uvx",
      "args": ["agent-knowledge-mcp"]
    }
  }
}

Setup for VS Code

Install in VS Code

🛠️ What You Can Do

Try these with your AI assistant:

  • "Search documents for API authentication info"
  • "Index this document with proper tags"
  • "Create API documentation template"
  • "Find related documents on specific topics"
  • "Update configuration settings"
  • "Validate document structure"

🔧 Tools Overview

Tools for knowledge management:

CategoryToolsDescription
🔍 Elasticsearch9Search, index, manage documents
⚙️ Administration11Config, security, monitoring

🔒 Security & Configuration

Enterprise-grade security:

  • ✅ Sandboxed operations - Configurable access controls
  • ✅ Strict schema validation - Enforce document structure
  • ✅ Audit trails - Full operation logging
  • ✅ No cloud dependencies - Everything runs locally

Configuration example:

json
{
  "security": {
    "log_all_operations": true
  },
  "document_validation": {
    "strict_schema_validation": true,
    "allow_extra_fields": false
  }
}

🤝 Contributing & Support

Development

bash
git clone https://github.com/itshare4u/AgentKnowledgeMCP.git
cd AgentKnowledgeMCP
pip install -r requirements.txt
python3 src/main_server.py

Support the Project

Buy Me Coffee GitHub Sponsors


Transform your AI into a powerful knowledge management system! 🚀

MIT License - Complete knowledge management solution for AI assistants

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "agent-knowledge": {
      "command": "uvx",
      "args": [
        "agent-knowledge-mcp"
      ]
    }
  }
}

利用可能なツール

  • create_snapshot

    Create a snapshot (backup) of Elasticsearch indices with comprehensive options and repository management

  • restore_snapshot

    Restore indices from an Elasticsearch snapshot with comprehensive options and conflict resolution

  • list_snapshots

    List all snapshots in an Elasticsearch repository with detailed information and status

  • create_index_metadata

    Create metadata documentation for an Elasticsearch index to ensure proper governance and documentation

  • update_index_metadata

    Update existing metadata documentation for an Elasticsearch index

  • delete_index_metadata

    Delete metadata documentation for an Elasticsearch index

  • delete_document

    Delete a document from Elasticsearch index by document ID

  • get_document

    Retrieve a specific document from Elasticsearch index by document ID

  • index_document

    Index a document into Elasticsearch with smart duplicate prevention and intelligent document ID generation. 💡 RECOMMENDED: Use 'create_document_template' tool first to generate a proper document structure and avoid validation errors.

  • validate_document_schema

    Validate document structure against knowledge base schema and provide formatting guidance

  • create_document_template

    Create a properly structured document template for knowledge base with AI-generated metadata and formatting

  • create_index

    Create a new Elasticsearch index with optional mapping and settings configuration

  • delete_index

    Delete an Elasticsearch index and all its documents permanently

  • list_indices

    List all available Elasticsearch indices with document count and size statistics

  • search

    Search documents in Elasticsearch index with advanced filtering, pagination, and time-based sorting capabilities

  • batch_index_directory

    Batch index all documents from a directory into Elasticsearch with AI-enhanced metadata generation and comprehensive file processing

  • get_config

    Get the complete configuration from config.json file with formatted display

  • update_config

    Update configuration with section-specific changes or full configuration replacement

  • validate_config

    Validate configuration object structure, types, and values with comprehensive error reporting

  • reload_config

    Reload configuration from config.json file and reinitialize all components with updated settings

  • setup_elasticsearch

    Auto-setup Elasticsearch using Docker with optional Kibana and force recreate options

  • elasticsearch_status

    Check status of Elasticsearch and Kibana containers with detailed configuration information

  • server_status

    Check current server status, version, and available updates with comprehensive system information

  • server_upgrade

    Upgrade this MCP server when installed via uvx with automatic configuration backup and restoration

  • ask_user_advice

    Ask user for advice when agent encounters uncertainty, problems, or needs guidance. Use this when you're unsure about something or need human input to proceed properly.

  • reset_config

    Reset config.json to defaults from config.default.json (manual reset - overwrites current config)

  • ask_mcp_advice

    Advanced project guidance using AI-filtered knowledge from .knowledges directory

Agent KnowledgeのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Agent Knowledgeに接続すれば、モデルごとに個別に設定することなく、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

Agent Knowledgeをサーバーとして追加

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

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

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

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

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

よくある質問

Agent Knowledge MCPサーバーは何に使いますか?

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

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

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

TypingMindでAgent Knowledge MCPを使うメリットは何ですか?

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

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

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

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

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

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

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

関連するMCPサーバー

すべて見る

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

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