mcp-server-nodejs
Verified Safeby jaikishpai
Overview
An HTTP-based Model Context Protocol (MCP) server for integrating AI agents with Oracle databases via exposed SQL and schema tools.
Installation
npm startEnvironment 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
vibe-check-mcp-server
Provides metacognitive oversight and self-improvement capabilities for AI agents using Chain-Pattern Interrupts (CPI) to prevent reasoning lock-in and over-engineering.
mcp
This repository provides a collection of Model Context Protocol (MCP) servers to enable AI agents to interact with and manage various Oracle Cloud Infrastructure (OCI) services, Oracle Database, and MySQL databases through natural language.
mcp-server-db2i
Enables AI assistants to query and inspect IBM DB2 for i databases using the Model Context Protocol (MCP) via stdio or HTTP.
Dynamic-Smart-MCP
An intelligent FastMCP 2 server that converts natural language questions into SQL queries or API requests for any SQL database or OpenAPI-defined API using AI.