MCP server for interacting with Ontotext GraphDB via SPARQL
MCP server for interacting with Ontotext GraphDB via SPARQL. That is what the mcp graphdb mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
A Model Context Protocol server that provides read-only access to Ontotext GraphDB. This server enables LLMs to explore RDF graphs and execute SPARQL queries against a GraphDB instance.
The server publishes 5 tools. What each one is for:
sparqlQuery — Execute SPARQL queries against the connected GraphDB repositoryInput — - query (string): The SPARQL query to executelistGraphs — Lists all graphs available in the repositoryTools — The Tools tool exposed by this serverResources — The Resources tool exposed by this serverSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Configuration is passed through the environment: GRAPHDB_ENDPOINT, GRAPHDB_REPOSITORY, GRAPHDB_USERNAME, GRAPHDB_PASSWORD. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP Graphdb's toolset — sparqlQuery, Input, listGraphs and 2 more — is a fair guide to whether it matches your workflow. It is maintained by keonchennl; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| sparqlQuery | Execute SPARQL queries against the connected GraphDB repository |
| Input | - query (string): The SPARQL query to execute |
| listGraphs | Lists all graphs available in the repository |
| Tools | The Tools tool exposed by this server. |
| Resources | The Resources tool exposed by this server. |
{
"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"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| GRAPHDB_ENDPOINT | Configuration value read at startup. | Optional |
| GRAPHDB_REPOSITORY | Configuration value read at startup. | Optional |
| GRAPHDB_USERNAME | Configuration value read at startup. | Optional |
| GRAPHDB_PASSWORD | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.