GraphDB MCP サーバー
Ontotext GraphDBへの読み取り専用アクセスを提供するモデルコンテキストプロトコルサーバー。このサーバーにより、LLMはRDFグラフを探索し、GraphDBインスタンスに対してSPARQLクエリを実行できるようになります。
コンポーネント
ツール
- スパーククエリ
- 接続されたGraphDBリポジトリに対してSPARQLクエリを実行する
- 入力:
query
(文字列): 実行するSPARQLクエリgraph
(文字列、オプション): 対象となる特定のグラフ IRIformat
(文字列、オプション):レスポンス形式(json、xml、csv)
- すべてのクエリは読み取り専用モードで実行されます
- リストグラフ
- リポジトリで利用可能なすべてのグラフを一覧表示します
- 入力パラメータは不要
リソース
サーバーはリポジトリ データの複数のビューを提供します。
- クラスリスト(
graphdb://<host>/repository/<repo>/classes
)- リポジトリ内で見つかったすべてのRDFクラスとその数を一覧表示します
- 述語(
graphdb://<host>/repository/<repo>/predicates
)- すべての述語(プロパティ)とその使用回数を一覧表示します
- 統計(
graphdb://<host>/repository/<repo>/stats
)- 主語、述語、目的語、およびトリプルの数を提供します
- サンプルデータ(
graphdb://<host>/repository/<repo>/sample
)- リポジトリからのトリプルのサンプルを表示します
- グラフコンテンツ(
graphdb://<host>/repository/<repo>/graph/<graphUri>
)- 特定のグラフからのサンプルデータをメタデータとともに提供します
構成
.env
ファイルを作成することにより、環境変数を使用してサーバーを構成できます。
あるいは、エンドポイントとリポジトリをコマンドライン引数として指定することもできます。
コマンドライン引数は環境変数よりも優先されます。
Claude Desktopでの使用
このサーバーを Claude Desktop アプリで使用するには、 claude_desktop_config.json
の「mcpServers」セクションに次の構成を追加します。
値を特定の GraphDB 構成に置き換えます。
インストール
SPARQLクエリの例
このサーバーで実行できる SPARQL クエリの例を次に示します。
- オントロジー内のすべてのクラスを一覧表示します。
- 特定のクラスのすべてのプロパティを一覧表示します。
- クラス別にインスタンスをカウントします。
ライセンス
このMCPサーバーはGPL-3.0ライセンスに基づいてライセンスされています。つまり、GNU GPL-3.0ライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Ontotext GraphDB への読み取り専用アクセスを提供し、LLM が RDF グラフを探索し、SPARQL クエリを実行できるようにするモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server implementation that enables LLMs to interact with NebulaGraph database for graph exploration, supporting schema understanding, queries, and graph algorithms.Last updated -16PythonApache 2.0
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -7331MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -9TypeScript