GK

geeksfino/kb-mcp-server

Data science & ML

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

73 stars 19 forks 品質 81 トレンド 8MIT

geeksfino/kb-mcp-server は [https://github.com/geeksfino/kb-mcp-server.] からインポートされた MCP サーバーの候補です

概要

geeksfino/kb-mcp-server は [https://github.com/geeksfino/kb-mcp-server.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Txtai が機能するモデルコンテキストプロトコル(MCP)サーバーの実装で、セマンティック検索、ナレッジグラフ機能、標準化されたインターフェイスによる AI 主導のテキスト処理を提供します。

txtaiの力:オールインワンの埋め込むデータベース

このプロジェクトは、RDG のオールインワン埋め込むデータベースである txtai を活用し、セマンティック検索、ナレッジグラフ構築、言語モデルワークフローを活用しています。 txtai は複数の主要な利点を提供します:

  • 統一されたベクトルデータベース: ベクトルインデックス、グラフネットワーク、リレーショナルデータベースを単一のプラットフォームで結合
  • Semantic Search: キーワードだけでなく、意味に基づいて情報を見つける
  • ナレッジグラフの統合: データから知識グラフを自動的に作成し、クエリする
  • ポータブルナレッジベース: 簡単に共有して読み込むことができる圧縮アーカイブ(.tar.gz)として知識ベース全体を保存
  • 拡張可能なパイプラインシステム:統一されたAPIによるテキスト、文書、音声、画像、およびビデオの処理 -ローカルファーストアーキテクチャ:外部サービスにデータを送信することなく、ローカルですべてを実行

使い方

本プロジェクトでは、ナレッジベースビルダーツールとMCPサーバーが含まれています.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Embedding MCP Server

A Model Context Protocol (MCP) server implementation powered by txtai, providing semantic search, knowledge graph capabilities, and AI-driven text processing through a standardized interface.

The Power of txtai: All-in-one Embeddings Database

This project leverages txtai, an all-in-one embeddings database for RAG leveraging semantic search, knowledge graph construction, and language model workflows. txtai offers several key advantages:

  • Unified Vector Database: Combines vector indexes, graph networks, and relational databases in a single platform
  • Semantic Search: Find information based on meaning, not just keywords
  • Knowledge Graph Integration: Automatically build and query knowledge graphs from your data
  • Portable Knowledge Bases: Save entire knowledge bases as compressed archives (.tar.gz) that can be easily shared and loaded
  • Extensible Pipeline System: Process text, documents, audio, images, and video through a unified API
  • Local-first Architecture: Run everything locally without sending data to external services

How It Works

The project contains a knowledge base builder tool and a MCP server. The knowledge base builder tool is a command-line interface for creating and managing knowledge bases. The MCP server provides a standardized interface to access the knowledge base.

It is not required to use the knowledge base builder tool to build a knowledge base. You can always build a knowledge base using txtai’s programming interface by writing a Python script or even using a jupyter notebook. As long as the knowledge base is built using txtai, it can be loaded by the MCP server. Better yet, the knowledge base can be a folder on the file system or an exported .tar.gz file. Just give it to the MCP server and it will load it.

1. Build a Knowledge Base with kb_builder

The kb_builder module provides a command-line interface for creating and managing knowledge bases:

  • Process documents from various sources (files, directories, JSON)
  • Extract text and create embeddings
  • Build knowledge graphs automatically
  • Export portable knowledge bases

Note it is possibly limited in functionality and currently only provided for convenience.

2. Start the MCP Server

The MCP server provides a standardized interface to access the knowledge base:

  • Semantic search capabilities
  • Knowledge graph querying and visualization
  • Text processing pipelines (summarization, extraction, etc.)
  • Full compliance with the Model Context Protocol

Installation

We recommend using uv with Python 3.10 or newer for the best experience. This provides better dependency management and ensures consistent behavior.

GitHub で README 全文を見る

インストール

uvx [email protected] --embeddings /path/to/knowledge_base --host localhost --port 8000
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "kb-server": { "command": "/your/home/project/.venv/bin/kb-mcp-server", "args": [ "--embeddings", "/path/to/knowledge_base.tar.gz" ], "cwd": "/path/to/working/directory" } } }