query
(str): The SPARQL query to execute.
How to use it
query is exposed by the MCP Rdf Explorer MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the query tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Rdf Explorer
$
pip install -r requirements.txtOther tools in MCP Rdf Explorer (11)
count_triples
ctx
(Context): The FastMCP context object.
endpoint
(str): The SPARQL endpoint URL to query.
execute_on_endpoint
full_text_search
get_mode
graph_stats
health_check
search_term
(str): The term to search for.
sparql_query
use_service
(bool): Whether to use a SERVICE clause for federated queries in local mode (default: True).