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. #database
Overview
MCP GraphDB is a Model Context Protocol server that provides read-only access to graphs stored in Ontotext GraphDB, enabling LLMs to execute SPARQL queries against a GraphDB instance.
To use MCP GraphDB, configure the server with your GraphDB endpoint and repository details, then execute SPARQL queries to retrieve data from the connected GraphDB repository.
- Execute SPARQL queries in read-only mode. - List available graphs and their statistics. - Access various views of repository data, including class lists and sample data.
- Querying RDF graphs for research purposes.
- Integrating with LLMs for enhanced data retrieval.
- Analyzing graph data for insights in various domains.
Add to your AI client
Use these steps to connect MCP GraphDB in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-graphdb-keonchennl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphdb-keonchennl"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-graphdb-keonchennl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphdb-keonchennl"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-graphdb-keonchennl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphdb-keonchennl"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-graphdb-keonchennl": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphdb-keonchennl"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-graphdb-keonchennl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphdb-keonchennl"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-graphdb-keonchennl": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphdb-keonchennl"
]
}
}
}FAQ
Can I modify the data in GraphDB using this server?
No, the server only allows read-only access to the data.
How do I configure the server?
You can configure it using environment variables or command-line arguments.
Is there a limit to the number of queries I can execute?
There is no specific limit, but performance may vary based on the complexity of the queries.