
orionbelt-analytics
by ralfbecher·★ 29·Score 45
Ontology-based MCP server analyzing database schemas and generating RDF/OWL ontologies with SQL mappings for Text-to-SQL.
Overview
OrionBelt Analytics is a comprehensive MCP server that transforms relational database schemas into RDF/OWL ontologies with embedded SQL mappings. It supports multiple database systems including PostgreSQL, Snowflake, ClickHouse, Dremio, BigQuery, DuckDB, Databricks, and MySQL. The server provides relationship-aware Text-to-SQL with automatic fan-trap prevention, GraphRAG for intelligent schema discovery, and interactive charting capabilities. Its key feature is OBQC (Ontology-Based Query Check), a deterministic SQL validator that catches structural errors before queries reach the database.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose OrionBelt when working with complex relational databases where data relationships aren't intuitive and you need deterministic validation of generated SQL.
When NOT to choose this
Don't choose OrionBelt if you need write access to databases (it's read-only) or if you prefer a simpler SQL generation approach without ontology complexity.
Tools this server exposes
12 tools extracted from the READMEconnect_databaseConnect to any supported database using .env credentials
list_schemasList available schemas in the connected database
discover_schemaAnalyze schema structure with automatic GraphRAG + ontology generation
get_table_detailsGet detailed column, key, and constraint info for a specific table
generate_ontologyGenerate RDF/OWL ontology from schema with SQL mapping annotations
suggest_semantic_namesDetect abbreviations and cryptic names for business-friendly renaming
sample_table_dataPreview table data with row limit and injection protection
execute_sql_queryExecute SQL with OBQC validation, security checks, and fan-trap detection
generate_chartGenerate Plotly charts (bar, line, scatter, heatmap) with MCP-UI rendering
graphrag_searchSemantic search + schema overview (auto-initialized by discover_schema)
graphrag_find_join_pathDiscover join paths between tables via graph traversal
query_sparqlExecute SPARQL queries (SELECT, ASK, CONSTRUCT — auto-detected)
Comparable tools
Installation
Installation
git clone https://github.com/ralfbecher/orionbelt-analytics
cd orionbelt-analytics
uv syncConfigure environment variables:
cp .env.template .envRun the server:
uv run server.pyFor Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"OrionBelt-Analytics": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:9000/mcp",
"--transport",
"http-only"
]
}
}
}FAQ
- What databases does OrionBelt Analytics support?
- OrionBelt Analytics supports PostgreSQL, MySQL, Snowflake, ClickHouse, Dremio, BigQuery, DuckDB/MotherDuck, and Databricks SQL.
- How does OBQC work?
- OBQC (Ontology-Based Query Check) is a deterministic validator that parses SQL against the loaded RDF/OWL ontology to check table/column existence, join validity, type compatibility, aggregation correctness, and fan-traps before query execution.
Compare orionbelt-analytics with
Last updated · Auto-generated from public README + GitHub signals.