RDF Explorer is a Model Context Protocol (MCP) server that provides a conversational interface for exploring and analyzing RDF-based Knowledge Graphs. It supports two operating modes: Local File mode for processing local Turtle files and SPARQL Endpoint mode for querying remote SPARQL endpoints, making it an excellent tool for knowledge graph exploration and AI data preparation.
Go to Settings > Developer > Edit Config in Claude Desktop
Add the following to your claude_desktop_config.json
:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Choose one of the following configurations:
For local RDF Turtle file mode:
{
"mcpServers": {
"rdf_explorer": {
"command": "C:\\path\\to\\venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\server.py", "--triple-file", "your_file.ttl"]
}
}
}
For SPARQL Endpoint mode:
{
"mcpServers": {
"rdf_explorer": {
"command": "C:\\path\\to\\venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\server.py", "--sparql-endpoint", "https://example.com/sparql"]
}
}
}
To verify the connection and identify the current mode:
what mode is RDF Explorer running?
RDF Explorer supports natural language queries that get converted to SPARQL:
To search for text in the graph:
search 'your search term'
To find relationships of a specific URI:
find relationships of 'http://example.org/resource'
You can also execute SPARQL queries directly:
Select * WHERE {?s ?p ?o} LIMIT 10
To analyze the graph structure:
analyze the graph structure
RDF Explorer supports federated queries across multiple endpoints:
Using the DBpedia endpoint, list 10 songs by Michael Jackson
To get statistics about the loaded graph:
graph stats
To verify the connection to the triplestore:
health check
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.