EM

emekaokoye/mcp-rdf-explorer

Developer tools

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

56 stars 11 forks 品質 80 トレンド 14MIT

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

概要

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

概要(AI 翻訳)

概要

ローカルファイルモードまたはSPARQLエンドポイントモードでのRDF(Turtle)ベースのナレッジグラフの探索と解析のための会話インターフェイスを提供するモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、AIアプリケーション(ホスト/クライアント)とRDFデータ間の通信を容易にし、SPARQLクエリを通じてグラフの探索と分析を行います。 知識グラフの研究とAIデータの準備に最適なツールです。

コンポーネント

ツール

サーバはSPARQLのクエリと検索機能を実行します。

  • [execute_on_endpoint]

  • 外部エンドポイントでSPARQLクエリを直接実行

  • 入力:

  • [endpoint(文字列):SPARQLエンドポイントのURLをクエリします。

  • [query (文字列): 実行するSPARQLクエリ。

  • [ctx (コンテキスト): FastMCP コンテキストオブジェクト。

  • 戻り値: クエリは、新しい行区切り文字列、またはエラーメッセージとして結果を表示します。

  • [sparql_query

  • 現在のグラフまたはアクティブな外部エンドポイントでSPARQLクエリを実行

  • 入力:

  • [query (文字列): 実行するSPARQLクエリ。

  • [ctx (コンテキスト): FastMCP コンテキストオブジェクト。

  • [use_service (bool): ローカルモードでフェデレーションされたクエリのService句を使用するかどうか (デフォルト: True).

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

README

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

RDF Explorer v1.0.0

Overview

A Model Context Protocol (MCP) server that provides conversational interface for the exploration and analysis of RDF (Turtle) based Knowledge Graph in Local File mode or SPARQL Endpoint mode. This server facilitates communication between AI applications (hosts/clients) and RDF data, making graph exploration and analyzing graph data through SPARQL queries. A perfect tool for knowledge graph research and AI data preparation.

Components

Tools

The server implements SPARQL queries and search functionality:

  • execute_on_endpoint

    • Execute a SPARQL query directly on an external endpoint
    • Input:
      • endpoint (str): The SPARQL endpoint URL to query.
      • query (str): The SPARQL query to execute.
      • ctx (Context): The FastMCP context object.
    • Returns: Query results as a newline-separated string, or an error message.
  • sparql_query

    • Execute a SPARQL query on the current graph or active external endpoint
    • Input:
      • query (str): The SPARQL query to execute.
      • ctx (Context): The FastMCP context object.
      • use_service (bool): Whether to use a SERVICE clause for federated queries in local mode (default: True).
    • Returns: Query results as a newline-separated string, or an error message.
  • graph_stats

    • Calculate and return statistics about the graph in JSON format
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: JSON string containing graph statistics (e.g., triple count, unique subjects).
  • count_triples

    • Count triples in the graph. Disabled in SPARQL Endpoint Mode; use a custom prompt instead.
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: Number of triples as a string, or an error message.
  • full_text_search

    • Perform a full-text search on the graph or endpoint, avoiding proprietary syntax.
    • Input:
      • search_term (str): The term to search for.
      • ctx (Context): The FastMCP context object.
    • Returns: Search results as a newline-separated string, or an error message.
  • health_check

    • Check the health of the triplestore connection.
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: ‘Healthy’ if the connection is good, 'Unhealthy: ’ otherwise.
  • get_mode

    • Get the current mode of RDF Explorer. Useful for knowledge graph and semantic tech users to verify data source.
    • Input:
      • ctx (Context): The FastMCP context object.
    • Returns: A message indicating the mode and dataset or endpoint.

Resources

The server exposes the following resources:

  • schema://all: Retrieve schema information (classes and properties) from the graph.

    • Returns: A newline-separated string of schema elements (classes and properties).
  • queries://{template_name}: Retrieve a predefined SPARQL query template by name.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "rdf_explorer": { "command": "C:\\path\\to\\venv\\Scripts\\python.exe", "args": ["C:\\path\\to\\server.py", "--triple-file", "your_file.ttl"] } } }