Back to Home
ralfbecher icon

database-ontology-mcp

by ralfbecher

Overview

Analyzes relational database schemas, generates semantic ontologies (RDF/OWL, R2RML), and provides tools for Text-to-SQL convenience, secure query execution, and data visualization.

Installation

Run Command
uv run server.py

Environment Variables

  • LOG_LEVEL
  • ONTOLOGY_BASE_URI
  • R2RML_BASE_IRI
  • OUTPUT_DIR
  • MCP_TRANSPORT
  • MCP_SERVER_HOST
  • MCP_SERVER_PORT
  • MCP_MASTER_PASSWORD
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_DATABASE
  • POSTGRES_USERNAME
  • POSTGRES_PASSWORD
  • SNOWFLAKE_ACCOUNT
  • SNOWFLAKE_USERNAME
  • SNOWFLAKE_PASSWORD
  • SNOWFLAKE_WAREHOUSE
  • SNOWFLAKE_DATABASE
  • SNOWFLAKE_SCHEMA
  • SNOWFLAKE_ROLE
  • DREMIO_URI
  • DREMIO_PAT
  • DREMIO_PROJECT_ID
  • DREMIO_HOST
  • DREMIO_PORT
  • DREMIO_USERNAME
  • DREMIO_PASSWORD
  • DREMIO_SSL

Security Notes

Positive: Implements robust SQL injection and identifier validation, explicitly blocking DML/DDL operations. Utilizes SecureCredentialManager with Fernet encryption and secure salt management. Critical Risk: The DatabaseManager stores database connection passwords in plaintext within `self._last_connection_params` for reconnection purposes. Although a SecureCredentialManager is initialized, its encryption capabilities are not used to protect these stored credentials. This exposes sensitive information in memory, posing a significant risk if the server process memory is accessed or dumped.

Similar Servers

Stats

Interest Score36
Security Score6
Cost ClassHigh
Avg Tokens50000
Stars6
Forks0
Last Update2026-01-11

Tags

OntologyText-to-SQLDatabaseSchema AnalysisData Visualization