K
keonchennl/mcp-server-graphdb
Read-only SPARQL against an Ontotext GraphDB repository
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# GraphDB MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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.
## Components
### Tools
sparqlQuery
Execute SPARQL queries against the connected GraphDB repository
Input:
query (string): The SPARQL query to execute
graph (string, optional): Specific graph IRI to target
format (string, optional): Response format (json, xml, csv)
All queries are executed in read-only mode
listGraphs
Lists all graphs available in the repository
No input parameters required
### Resources
The server provides multiple views of the repository data:
Class List (graphdb:// /repository/ /classes)
Lists all RDF classes found in the repository with counts
Predicates (graphdb:// /repository/ /predicates)
Lists all predicates (properties) with usage counts
Statistics (graphdb:// /repository/ /stats)
Provides counts of subjects, predicates, objects, and triples
Sample Data (graphdb:// /repository/ /sample)
Shows a sample of triples from the repository
Graph Content (graphdb:// /repository/ /graph/ )
Provides sample data from specific graphs along with metadata
## Configuration
You can configure the server using environment variables by creating a .env file:
GRAPHDBENDPOINT=http://localhost:7200
GRAPHDBREPOSITORY=myRepository
GRAPHDBUSERNAME=username
GRAPHDBPASSWORD=password
Alternatively, you can provide the endpoint and repository as command-line arguments:
node dist/index.js http://localhost:7200 myRepository
The command-line arguments take precedence over environment variables.
## Usage with Claude Desktop
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claudedesktopconfig.json:
json
"mcpServers": {
"graphdb": {
"command": "node",
"args": [
"/path/to/mcp-server-graphdb/dist/index.js"
],
"env": {
"GRAPHDBENDPOINT": "http://localhost:7200",
"GRAPHDBREPOSITORY": "myRepository",
"GRAPHDBUSERNAME": "username",
"GRAPHDBPASSWORD": "password"
Replace the values with your specific GraphDB configuration.
## Installation
sh
# Clone the repository
git clone https://github.com/keonchennl/mcp-server-graphdb.git
cd mcp-server-graphdb
# Install dependencies
yarn install
# Build the project
yarn build
## Example SPARQL Queries
Here are some example SPARQL queries you can run with this server:
1. List all classes in the ontology:
sparql
PREFIX rdf:
PREFIX rdfs:
SELECT DISTINCT ?class ?label
WHERE {
## Components
### Tools
sparqlQuery
Execute SPARQL queries against the connected GraphDB repository
Input:
query (string): The SPARQL query to execute
graph (string, optional): Specific graph IRI to target
format (string, optional): Response format (json, xml, csv)
All queries are executed in read-only mode
listGraphs
Lists all graphs available in the repository
No input parameters required
### Resources
The server provides multiple views of the repository data:
Class List (graphdb:// /repository/ /classes)
Lists all RDF classes found in the repository with counts
Predicates (graphdb:// /repository/ /predicates)
Lists all predicates (properties) with usage counts
Statistics (graphdb:// /repository/ /stats)
Provides counts of subjects, predicates, objects, and triples
Sample Data (graphdb:// /repository/ /sample)
Shows a sample of triples from the repository
Graph Content (graphdb:// /repository/ /graph/ )
Provides sample data from specific graphs along with metadata
## Configuration
You can configure the server using environment variables by creating a .env file:
GRAPHDBENDPOINT=http://localhost:7200
GRAPHDBREPOSITORY=myRepository
GRAPHDBUSERNAME=username
GRAPHDBPASSWORD=password
Alternatively, you can provide the endpoint and repository as command-line arguments:
node dist/index.js http://localhost:7200 myRepository
The command-line arguments take precedence over environment variables.
## Usage with Claude Desktop
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claudedesktopconfig.json:
json
"mcpServers": {
"graphdb": {
"command": "node",
"args": [
"/path/to/mcp-server-graphdb/dist/index.js"
],
"env": {
"GRAPHDBENDPOINT": "http://localhost:7200",
"GRAPHDBREPOSITORY": "myRepository",
"GRAPHDBUSERNAME": "username",
"GRAPHDBPASSWORD": "password"
Replace the values with your specific GraphDB configuration.
## Installation
sh
# Clone the repository
git clone https://github.com/keonchennl/mcp-server-graphdb.git
cd mcp-server-graphdb
# Install dependencies
yarn install
# Build the project
yarn build
## Example SPARQL Queries
Here are some example SPARQL queries you can run with this server:
1. List all classes in the ontology:
sparql
PREFIX rdf:
PREFIX rdfs:
SELECT DISTINCT ?class ?label
WHERE {
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/keonchennl-mcp-server-graphdb/)
- 来源
- awesome · https://github.com/keonchennl/mcp-server-graphdb
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。