listGraphs
List all graphs in the repository
Run read-only SPARQL against a GraphDB repository and list the named graphs it holds, in a response format you choose.
LABSCO SUMMARY
sparqlQuery is declared read-only, so a model exploring an unfamiliar graph cannot rewrite it with a mis-generated statement — the risk of handing a triple store to an assistant drops to wasted tokens. listGraphs supplies the graph names the query tool expects, which makes it the usual first call. Neither tool takes a connection parameter, so which repository you reach is settled by the server's configuration rather than per call.
A GraphDB client with two tools: a read-only SPARQL query scoped to a graph, and a listing of the repository's graphs.
A GraphDB repository the server can reach, and GPL-3.0 terms if you redistribute it.
One command plus credentials — npx -y mcp-server-graphdb, then supply credentials
USE CASES
The graph names come first, because a SPARQL query aimed at the wrong graph returns nothing and looks like an empty repository.
The query tool takes the response format as an argument, so results arrive ready for whatever consumes them instead of needing a conversion pass.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
listGraphsList all graphs in the repository
sparqlQueryExecute a read-only SPARQL query against the GraphDB repository
BEFORE YOU INSTALL
2 tools when we connected. Both tools are read-only, so a SPARQL UPDATE will not write to your store. Class List, Predicates, Statistics, Sample Data and Graph Content are resources, not tools.
CONTEXT COST
Rated by the size of the 2 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y mcp-server-graphdbClone and build the server
git clone https://github.com/keonchennl/mcp-server-graphdb.git
cd mcp-server-graphdb
yarn install
yarn buildAdd this to the mcpServers section of claude_desktop_config.json
<YOUR_PATH_TO_MCP_SERVER_GRAPHDB> is the full path of the mcp-server-graphdb folder you cloned; the GRAPHDB_* values are your GraphDB endpoint, repository and login.
{
"mcpServers": {
"graphdb": {
"command": "node",
"args": [
"<YOUR_PATH_TO_MCP_SERVER_GRAPHDB>/dist/index.js"
],
"env": {
"GRAPHDB_ENDPOINT": "http://localhost:7200",
"GRAPHDB_REPOSITORY": "<YOUR_GRAPHDB_REPOSITORY>",
"GRAPHDB_USERNAME": "<YOUR_GRAPHDB_USERNAME>",
"GRAPHDB_PASSWORD": "<YOUR_GRAPHDB_PASSWORD>"
}
}
}
}