GraphDB MCP Server
GraphDB MCP-Server
Ein Model Context Protocol-Server, der schreibgeschützten Zugriff auf Ontotext GraphDB bietet. Dieser Server ermöglicht LLMs die Untersuchung von RDF-Graphen und die Ausführung von SPARQL-Abfragen an eine GraphDB-Instanz.
Komponenten
Werkzeuge
sparqlQuery
Führen Sie SPARQL-Abfragen für das verbundene GraphDB-Repository aus
Eingang:
query(Zeichenfolge): Die auszuführende SPARQL-Abfragegraph(Zeichenfolge, optional): Spezifischer Graph-IRI zum Zielformat(Zeichenfolge, optional): Antwortformat (JSON, XML, CSV)
Alle Abfragen werden im Nur-Lese-Modus ausgeführt
listGraphs
Listet alle im Repository verfügbaren Graphen auf
Keine Eingabeparameter erforderlich
Ressourcen
Der Server bietet mehrere Ansichten der Repository-Daten:
Klassenliste (
graphdb://<host>/repository/<repo>/classes)Listet alle im Repository gefundenen RDF-Klassen mit Anzahl auf
Prädikate (
graphdb://<host>/repository/<repo>/predicates)Listet alle Prädikate (Eigenschaften) mit Nutzungszählungen auf
Statistiken (
graphdb://<host>/repository/<repo>/stats)Bietet Zählungen von Subjekten, Prädikaten, Objekten und Tripeln
Beispieldaten (
graphdb://<host>/repository/<repo>/sample)Zeigt eine Auswahl von Tripeln aus dem Repository
Graph-Inhalt (
graphdb://<host>/repository/<repo>/graph/<graphUri>)Bietet Beispieldaten aus bestimmten Diagrammen zusammen mit Metadaten
Related MCP server: RDF Explorer
Konfiguration
Sie können den Server mithilfe von Umgebungsvariablen konfigurieren, indem Sie eine .env Datei erstellen:
GRAPHDB_ENDPOINT=http://localhost:7200
GRAPHDB_REPOSITORY=myRepository
GRAPHDB_USERNAME=username
GRAPHDB_PASSWORD=passwordAlternativ können Sie den Endpunkt und das Repository als Befehlszeilenargumente angeben:
node dist/index.js http://localhost:7200 myRepositoryDie Befehlszeilenargumente haben Vorrang vor Umgebungsvariablen.
Verwendung mit Claude Desktop
Um diesen Server mit der Claude Desktop-App zu verwenden, fügen Sie dem Abschnitt „mcpServers“ Ihrer claude_desktop_config.json die folgende Konfiguration hinzu:
{
"mcpServers": {
"graphdb": {
"command": "node",
"args": [
"/path/to/mcp-server-graphdb/dist/index.js"
],
"env": {
"GRAPHDB_ENDPOINT": "http://localhost:7200",
"GRAPHDB_REPOSITORY": "myRepository",
"GRAPHDB_USERNAME": "username",
"GRAPHDB_PASSWORD": "password"
}
}
}
}Ersetzen Sie die Werte durch Ihre spezifische GraphDB-Konfiguration.
Installation
# Clone the repository
git clone https://github.com/yourname/mcp-server-graphdb.git
cd mcp-server-graphdb
# Install dependencies
yarn install
# Build the project
yarn buildBeispiele für SPARQL-Abfragen
Hier sind einige Beispiele für SPARQL-Abfragen, die Sie mit diesem Server ausführen können:
Listen Sie alle Klassen in der Ontologie auf:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?class ?label
WHERE {
{ ?class a rdfs:Class } UNION { ?class a owl:Class }
OPTIONAL { ?class rdfs:label ?label }
}
ORDER BY ?classAlle Eigenschaften für eine bestimmte Klasse auflisten:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ?label ?range
WHERE {
?property rdfs:domain <http://example.org/YourClass> .
OPTIONAL { ?property rdfs:label ?label }
OPTIONAL { ?property rdfs:range ?range }
}
ORDER BY ?propertyInstanzen nach Klasse zählen:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?class (COUNT(?instance) AS ?count)
WHERE {
?instance a ?class
}
GROUP BY ?class
ORDER BY DESC(?count)Lizenz
Dieser MCP-Server ist unter der GPL-3.0-Lizenz lizenziert. Das bedeutet, dass Sie die Software unter den Bedingungen der GNU GPL-3.0-Lizenz frei verwenden, ändern und verbreiten können.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that connects AI agents to Apache Jena, enabling them to execute SPARQL queries and updates against RDF data stored in Jena Fuseki.8MIT
- AlicenseNot gradedqualityFmaintenanceThe Model Context Protocol (MCP) server provides a conversational interface for the exploration and analysis of RDF Turtle Knowledge Graph in Local File mode or SPARQL Endpoint.54MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server that connects GraphDB's SPARQL endpoints and Ollama models to Claude, enabling Claude to query and manipulate ontology data while leveraging various AI models.283MIT

Memgraph MCP Serverofficial
-licenseCqualityNot gradedmaintenanceA lightweight server implementation of the Model Context Protocol that connects Memgraph database with LLMs, allowing users to interact with graph databases through natural language.125
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/keonchennl/mcp-server-graphdb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server