Back to Home
bharathRathod23 icon

ORACLE-MCP-SERVER

by bharathRathod23

Overview

A Model Context Protocol (MCP) server that connects to an Oracle Database, allowing LLM models to interact with the database and retrieve data.

Installation

Run Command
npm start

Environment Variables

  • ORACLE_USER
  • ORACLE_PASSWORD
  • ORACLE_HOST
  • ORACLE_PORT
  • ORACLE_SERVICE_NAME

Security Notes

The `execute_query` tool directly passes the LLM-generated `query` string to the `oracledb.execute` function without robust sanitization or specific bind variable usage for the query itself. This creates a critical SQL Injection vulnerability, allowing a malicious or flawed LLM to execute arbitrary SQL commands (including DDL/DML if the database user has permissions). While the README recommends using a read-only database user, the code does not enforce this, making it inherently unsafe for untrusted input. Hardcoded default Oracle password 'Oracle18' exists in the Docker setup script, but is intended for local dev setup and should be overridden by `.env` for runtime.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens5000
Stars0
Forks0
Last Update2025-12-06

Tags

MCPOracle DatabaseLLM IntegrationDatabase AgentNode.js