Skip to main content
Glama
mcp-server-qlever

mcp-server-qlever

by XORwell

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
QLEVER_TIMEOUTNoDefault query timeout (e.g. 30s, 2min).30s
QLEVER_ENDPOINTYesQLever API URL (fallback if --endpoint is not given).
QLEVER_ACCESS_TOKENNoAccess token for privileged operations.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sparql_queryA

Execute a SPARQL query against the configured QLever endpoint. Supports SELECT, ASK, CONSTRUCT, and DESCRIBE query forms. Returns results as a formatted table with timing information.

sparql_query_jsonA

Execute a SPARQL query and return the raw QLever JSON response. Useful when you need structured data for further processing (result arrays, timing breakdown, total result count).

get_index_statsA

Retrieve metadata about the QLever index: dataset name, number of triples, predicates, subjects, and objects. Useful for understanding the scope of the knowledge graph before querying.

describe_entityA

Look up all triples where a given IRI appears as subject or object. Returns both outgoing properties (where the entity is the subject) and incoming references (where it is the object). Accepts full IRIs (e.g. 'http://www.wikidata.org/entity/Q42') or prefixed names if the dataset supports them.

search_entitiesA

Search for entities by name or label using SPARQL text matching. Works with datasets that have rdfs:label or schema:name predicates. Returns matching entities with their labels.

get_predicatesA

List the predicates (properties) available in the dataset, ordered by frequency. Useful for exploring an unfamiliar knowledge graph and understanding its schema before writing queries.

sparql_autocompleteA

Use this BEFORE sparql_query when unsure which predicates or classes exist. Suggests predicate or class IRIs from the dataset that contain the given text, ordered by how often they are used. For entities, use search_entities.

analyze_queryA

Analyze how QLever evaluates a SPARQL query. The query IS executed (QLever has no plan-only mode) but no result rows are returned. Shows the query execution tree with estimated vs. actual sizes, per-operation timings and the total result size. Use a short timeout for potentially expensive queries.

list_named_graphsA

List named graphs in the dataset. Call this before graph-scoped queries or updates.

search_fulltextA

Search QLever's text index for entities co-occurring with keywords. Different from search_entities which matches labels. Requires text index.

spatial_queryB

Find entities within a geographic area (GeoSPARQL geof: functions on WKT point literals). Supports radius and bounding box modes.

sparql_updateA

Execute a SPARQL 1.1 Update. REQUIRES access token. Use dry_run:true to preview. dry_run:true only echoes the statement without contacting QLever. Any DROP or CLEAR requires confirm:true.

Prompts

Interactive templates invoked by user choice

NameDescription
explore_datasetStep-by-step workflow for exploring an unknown QLever dataset
safe_update_workflowValidated workflow for SPARQL Update operations requiring access token

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 12 tools

Disambiguation4/5

Each tool targets a distinct aspect of querying QLever (metadata, query execution, entity lookup, predicate listing, update, spatial, full-text), and descriptions explicitly cross-reference each other (e.g. search_fulltext vs search_entities, sparql_autocomplete vs search_entities). The only real overlap is sparql_query vs sparql_query_json, which are the same operation with different output formats and could arguably be one tool with a format flag. describe_entity is also derivable from a SPARQL query, but its convenience purpose is clearly stated.

Naming Consistency4/5

All names use snake_case with a predictable verb_noun structure (get_index_stats, describe_entity, search_entities, list_named_graphs, analyze_query, sparql_update). Minor deviations exist: sparql_query, sparql_query_json, sparql_autocomplete, and spatial_query lead with a domain qualifier rather than a verb, but the pattern remains readable and consistent overall.

Tool Count5/5

12 tools is well within the ideal range and each one covers a distinct capability of the QLever server (querying, introspection, search, spatial, updates). No tool appears redundant or filler.

Completeness4/5

Coverage is strong: read queries in all forms, updates with dry-run/confirm safety, index stats, predicate listing, named graphs, entity description/search, full-text, spatial, and query analysis. Minor gaps exist—no dedicated class/type listing (autocomplete covers classes only indirectly) and no prefix/namespace enumeration—but these are workaroundable via SPARQL.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues