MCP.so
Sign In
M

MCP GraphDB

@keonchennl

About MCP GraphDB

A Model Context Protocol server that provides read only access to graphs in a certain repository in Ontotext GraphDB. This server enables LLMs to execute SPARQL queries.

Basic information

Category

Other

Transports

stdio

Publisher

keonchennl

Submitted by

Keon Chen

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "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"
      }
    }
  }
}

Tools

1

\`query\` (string): The SPARQL query to execute

Overview

What is MCP GraphDB?

A Model Context Protocol server that provides read-only access to Ontotext GraphDB, enabling LLMs to explore RDF graphs and execute SPARQL queries.

How to use MCP GraphDB?

Install dependencies, build with yarn build, then configure via environment variables (GRAPHDB_ENDPOINT, GRAPHDB_REPOSITORY, GRAPHDB_USERNAME, GRAPHDB_PASSWORD) or pass endpoint and repository as command-line arguments. Use with Claude Desktop by adding a configuration entry to claude_desktop_config.json.

Key features of MCP GraphDB

  • Read-only SPARQL query execution
  • List all graphs in the repository
  • View RDF classes with instance counts
  • List predicates with usage counts
  • Access repository statistics (subjects, triples)
  • Retrieve sample triples from graphs

Use cases of MCP GraphDB

  • Explore RDF knowledge graphs via natural language prompts from an LLM
  • Query class and predicate statistics to understand data distribution
  • Extract sample data from specific graphs for validation
  • Enable

Comments

More Other MCP servers