Back to Home
ralfbecher icon

database-ontology-mcp

Verified Safe

by ralfbecher

Overview

Provides an ontology-based MCP server for database schema analysis, semantic understanding, and Text-2-SQL convenience with built-in safety features.

Installation

Run Command
uv run server.py

Environment Variables

  • MCP_MASTER_PASSWORD
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_DATABASE
  • POSTGRES_USERNAME
  • POSTGRES_PASSWORD
  • SNOWFLAKE_ACCOUNT
  • SNOWFLAKE_USERNAME
  • SNOWFLAKE_PASSWORD
  • SNOWFLAKE_WAREHOUSE
  • SNOWFLAKE_DATABASE
  • DREMIO_URI
  • DREMIO_PAT
  • DREMIO_HOST
  • DREMIO_PORT
  • DREMIO_USERNAME
  • DREMIO_PASSWORD

Security Notes

The server implements robust SQL injection prevention using `SQLInjectionValidator` and parameterized queries. Credentials are handled by `SecureCredentialManager` with `cryptography` for encryption, which is strong. However, plaintext database passwords are temporarily stored in memory (`_last_connection_params`) for reconnection purposes, which is a common pattern but could be a minor transient risk if server memory is compromised. `ast.literal_eval` is used in `generate_chart` for parsing data_source if passed as a string, which is generally safe for data but always carries an infinitesimal risk compared to strict JSON parsing. Overall, security measures are comprehensive and well-thought-out.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassMedium
Avg Tokens8000
Stars4
Forks0
Last Update2025-12-08

Tags

databaseontologytext-to-sqlsemantic-layermcpfastmcpsql-safetydata-visualization