gradio-mcp-sparql-node
Enables SPARQL querying of local RDF/Turtle Semantic Web graph datasets, exposing graph data and inference results to AI agents and an interactive dashboard.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gradio-mcp-sparql-nodeuse SPARQL to list all people born in Paris"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gradio-mcp-sparql
A highly efficient, open-source Gradio Extension and Open Model Context Protocol (MCP) Server built on a high-performance Rust SPARQL engine wrapper.
This scaffolding allows digital humanities labs, computational linguists, and semantic web researchers to drop in arbitrary W3C Semantic Web Graph files (.ttl, .nt) and instantly inherit an interactive visual data workbench and an AI-agent-ready tool schema out of a single zero-configuration runtime node.
๐งฌ Architecture Overview
gradio-mcp-sparql decouples your semantic graph datasets from the complex web routing, serialization, and pipeline assembly code.
[ RDF/Turtle Store (.ttl) ]
โ
โผ
[ Rust Kolibrie Engine ] <--- Compiled dynamically via PyO3 & Maturin
โ
โผ
[ Python Extension ]
โ
โโโโโโโโโโดโโโโโโโโโ
โผ โผ
[ Gradio UI ] [ Open MCP Server ] <--- Exposes raw SPARQL capability
(Local: 8181) (Stdio Stream) directly to downstream LLMsRust Performance Backbone: Utilizes a native wrapper around the
StreamIntelligenceLab/Kolibrieframework to offer memory-efficient, SIMD-accelerated SPARQL queries and rule-based datalog inference directly inside memory spaces.Dual-Boot Execution Matrix: Can be deployed simultaneously as an interactive visual web platform or as a headless command-line daemon dedicated strictly to AI agent tool processing pipelines.
Related MCP server: MCP SPARQL Server
๐ ๏ธ Installation & Local Build
Ensure you have Python 3.10+, Rust (Cargo 1.60+), and just installed on your system context.
1. Initialize the Isolated Workspace
Clone this repository alongside your external dataset repositories and initialize your environment runner boundary:
just init2. Compile the PyO3 Native Bindings
Run the compilation task to pull the upstream master repository source code files, resolve workspace dependencies, and construct the shared binary objects locally:
just compile๐ Execution Modes
Mode A: Visual Dashboard & Tool Node (Default)
Launches the interactive Gradio component web panel over local system execution channels:
just runDashboard Portal: Open your browser to
http://127.0.0.1:8181to dynamically upload.ttlgraph segments, track POS tag metadata layers, execute query statements, and audit results tables instantly.
Mode B: Headless Open MCP Daemon Core
Launches explicitly as a stream-isolated terminal tool engine pipeline intended for agent consumption:
just run-mcp๐ค Connecting to LLM Clients (Claude Desktop Configuration)
To turn your compiled local graph store into a global knowledge base tool that your AI assistant can query natively using standard SPARQL semantics, add the following node allocation matrix inside your local claude_desktop_config.json parameter map:
{
"mcpServers": {
"gradio-mcp-sparql-node": {
"command": "python",
"args": [
"/absolute/path/to/gradio-mcp-sparql/src/gradio_mcp_sparql/main_app.py",
"--mcp-only"
]
}
}
}Once connected, you can converse with your model using intuitive instructions:
"Query my local node for all lexical entries reconstructed as Proto-Algonquian verb structures, and group them by semantic sound-change properties."
๐ Structural Layout
gradio-mcp-sparql/
โโโ pyproject.toml # Unified Hatch & Maturin optimization layout
โโโ Cargo.toml # Rust binding pipeline and upstream pointers
โโโ LICENSE # MIT License manifest
โโโ README.md # System configuration and user reference documentation
โโโ justfile # Local toolchain automation registry
โโโ src/
โโโ lib.rs # Native Rust PyO3 classes mapping core engine attributes
โโโ gradio_mcp_sparql/
โโโ __init__.py
โโโ main_app.py # Gradio component wrappers and Open MCP server loop๐ค Contributing
Contributions to improve this scaffolding are welcome!
Optimize the underlying string parsing vectors inside
src/lib.rs.Build out a more sophisticated
networkxtopological graphing canvas interface block inside the web panel.Add support for streaming sliding windows.
All submitted pull request allocations are assumed to be published natively under the open-source MIT License terms.
โ๏ธ License
Distributed under the MIT License. See the LICENSE file for more comprehensive information metrics.
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and read the aicoolies catalog of AI and developer tools via a remote MCP knowledge graph.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
DBpedia MCP โ SPARQL + Lookup over Wikipedia-derived structured data
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceThe Model Context Protocol (MCP) server provides a conversational interface for the exploration and analysis of RDF Turtle Knowledge Graph in Local File mode or SPARQL Endpoint.56MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query semantic data via SPARQL endpoints, with support for multiple output formats and caching.5AGPL 3.0
- AlicenseAqualityCmaintenanceMCP server exposing SPARQL query functionalities for LLMs, enabling query execution, validation, and graph exploration across SPARQL endpoints.723 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceMCP server enabling natural-language querying of SQLite databases via schema discovery, GraphRAG retrieval, and safely guarded read-only SQL execution.-