EM

ekzhu/mcp-server-sparql

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 6 forks 质量 43 趋势 20MIT

An MCP server for querying SPARQL endpoint.

概览

A Model Context Protocol (MCP) server that provides tools for querying SPARQL endpoints. Example usage for querying the Wikidata SPARQL endpoint. Execute a SPARQL query against the configured endpoint. - query_string: A valid SPARQL query string

README

MCP Server SPARQL

A Model Context Protocol (MCP) server that provides tools for querying SPARQL endpoints.

Usage

Example usage for querying the Wikidata SPARQL endpoint.

uvx

"mcpServers": {
  "mcp-server-sparql": {
    "command": "uvx",
    "args": ["mcp-server-sparql", "--endpoint", "https://query.wikidata.org/sparql"],
  }
}

Tool: query

Execute a SPARQL query against the configured endpoint.

Parameters:

  • query_string: A valid SPARQL query string

Returns:

  • The query results in JSON format
在 GitHub 查看完整 README

安装

uvx mcp-server-sparql --endpoint https://query.wikidata.org/sparql
新手?先看 mcpskill.org 教程 →

配置

"mcpServers": { "mcp-server-sparql": { "command": "uvx", "args": ["mcp-server-sparql", "--endpoint", "https://query.wikidata.org/sparql"], } }