Back to Home
jaikishpai icon

mcp-server-nodejs

Verified Safe

by jaikishpai

Overview

An HTTP-based Model Context Protocol (MCP) server for integrating AI agents with Oracle databases via exposed SQL and schema tools.

Installation

Run Command
npm start

Environment Variables

  • ORACLE_USER
  • ORACLE_PASS
  • ORACLE_CONN
  • MCP_API_KEY
  • NL2SQL_URL
  • PORT
  • LOG_LEVEL
  • CORS_ORIGIN
  • MAX_REQUEST_SIZE
  • ORACLE_POOL_MIN
  • ORACLE_POOL_MAX
  • ORACLE_POOL_INCREMENT
  • ORACLE_POOL_TIMEOUT
  • ORACLE_QUEUE_TIMEOUT
  • MCP_REQUEST_TIMEOUT
  • NODE_ENV

Security Notes

The server demonstrates strong security practices, particularly in preventing SQL injection. The `runQuery` tool explicitly requires an `approved: true` flag, mandating prior semantic mapping and schema validation to ensure LLM-generated SQL is safe. Identifier validation is used for table and schema names in `getSchema` to prevent injection. The `executeQuery` function rejects SQL containing semicolons by default. The `/mcp` endpoint is protected by an API key (`MCP_API_KEY`), which is enforced in production. Sensitive configurations are handled via environment variables, with no apparent hardcoded secrets. The server uses `helmet` for security headers and limits request size. A minor point for improvement is the default `CORS_ORIGIN: '*'`, though a TODO is present to restrict it in production. TLS/HTTPS is expected to be handled by a reverse proxy.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Stars0
Forks0
Last Update2025-12-10

Tags

MCPOracleNode.jsAI AgentDatabase