Skip to main content
Glama
odysa

RDF4J MCP Server

by odysa

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RDF4J_MCP_MAX_LIMITNoMaximum query LIMIT10000
RDF4J_MCP_DEFAULT_LIMITNoDefault query LIMIT100
RDF4J_MCP_QUERY_TIMEOUTNoQuery timeout (seconds)30
RDF4J_MCP_RDF4J_SERVER_URLNoRDF4J server URLhttp://localhost:8080/rdf4j-server
RDF4J_MCP_DEFAULT_REPOSITORYNoDefault repository ID

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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
sparql_selectA

Execute a SPARQL SELECT query and return results as JSON. Use this for queries that return tabular data with variable bindings.

sparql_constructA

Execute a SPARQL CONSTRUCT or DESCRIBE query, return Turtle.Use this for queries that return RDF triples/graphs.

sparql_askA

Execute a SPARQL ASK query and return a boolean result. Use this for yes/no questions about the data.

describe_resourceA

Get all triples about a resource (subject or object). Returns Turtle format with human-readable summary.

search_classesA

Find classes in the ontology. Can filter by name pattern. Returns class IRIs with labels and comments.

search_propertiesA

Find properties in the ontology. Can filter by pattern, domain, or range. Returns property IRIs with labels, domains, and ranges.

find_instancesA

Find instances of a class. Returns instance IRIs with labels.

get_schema_summaryB

Get an overview of the ontology schema including statistics, main classes, properties, and namespaces.

list_repositoriesA

List all available RDF repositories. Returns repository IDs, titles, and access permissions.

get_namespacesA

Get namespace prefix mappings for a repository. Returns prefix-namespace pairs for use in SPARQL queries.

get_statisticsC

Get statistics about a repository including triple counts, class counts, property counts, and more.

select_repositoryA

Select a repository to use as the default for subsequent operations. This persists until another repository is selected.

get_current_repositoryA

Get the currently selected default repository ID.

Prompts

Interactive templates invoked by user choice

NameDescription
explore_knowledge_graphGuided exploration of a knowledge graph. Provides context about the schema and suggests exploration paths.
write_sparql_queryHelp write a SPARQL query from a natural language description. Provides schema context to assist with query construction.
explain_ontologyExplain the structure and meaning of an ontology or schema. Describes classes, properties, and their relationships.

Resources

Contextual data attached and managed by the client

NameDescription
Repository ListList of all available RDF repositories

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/odysa/rdf4j-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server