MCP Graphdb MCP Server

MCP server for interacting with Ontotext GraphDB via SPARQL

Local serverstdio

What is the MCP Graphdb MCP Server?

MCP server for interacting with Ontotext GraphDB via SPARQL

The short version

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
sparqlQueryExecute SPARQL queries against the connected GraphDB repository
Input:query (string): The SPARQL query to execute
graphstring, optional): Specific graph IRI to target
formatstring, optional): Response format (json, xml, csv)
listGraphsLists all graphs available in the repository

How to install the MCP Graphdb MCP 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": "YOUR_GRAPHDB_PASSWORD"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GRAPHDB_ENDPOINTDeclared in the maintainer’s client configuration.Check documentation
GRAPHDB_REPOSITORYDeclared in the maintainer’s client configuration.Check documentation
GRAPHDB_USERNAMEDeclared in the maintainer’s client configuration.Check documentation
GRAPHDB_PASSWORDDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use MCP Graphdb to sparqlQuery.”
  • “Use MCP Graphdb to Input.”
  • “Use MCP Graphdb to listGraphs.”

Frequently asked questions

MCP server for interacting with Ontotext GraphDB via SPARQL Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.