oracle-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
oracle-mcp-server
MCP (Model Context Protocol) Server for Oracle Databases. Enables AI assistants like Claude, GitHub Copilot, Cursor, and Cline to query Oracle databases, inspect schemas, analyze performance, and review PL/SQL code.
Prerequisites
Python 3.11+
Access to an Oracle Database (19c+)
No Oracle Instant Client needed (uses python-oracledb Thin Mode)
Related MCP server: Oracle DB MCP Server
Installation
pip install oracle-mcp-serverConfiguration
Create a .env file (or set environment variables):
# Oracle Connection
ORACLE_HOST=localhost
ORACLE_PORT=1521
ORACLE_SERVICE=XEPDB1 # Service Name (preferred)
ORACLE_SID= # Or SID (alternative)
ORACLE_USER=myuser
ORACLE_PASSWORD=mypassword
# Optional: Oracle Wallet (for mTLS / Oracle Cloud)
ORACLE_WALLET_DIR=
ORACLE_WALLET_PWD=
# Connection Pool
ORACLE_POOL_MIN=2
ORACLE_POOL_MAX=10
# Safety & Limits
ORACLE_SAFE_MODE=true # Only SELECT queries allowed (default: true)
ORACLE_MAX_ROWS=500 # Max rows returned per query
ORACLE_SCHEMA= # Optional default schemaSetup with Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"oracle": {
"command": "oracle-mcp",
"env": {
"ORACLE_HOST": "your-host",
"ORACLE_PORT": "1521",
"ORACLE_SERVICE": "your-service",
"ORACLE_USER": "your-user",
"ORACLE_PASSWORD": "your-password"
}
}
}
}Setup with Cursor / Cline
Add to .cursor/mcp.json or VS Code MCP settings:
{
"mcpServers": {
"oracle": {
"command": "oracle-mcp"
}
}
}Available Tools
Tool | Description |
| Execute SQL queries with table/JSON output |
| List tables with row counts and comments |
| Full table structure (columns, constraints, indexes) |
| List views with optional SQL text |
| List procedures, functions, packages |
| Get PL/SQL source code |
| Call stored procedures (safe mode off only) |
| Get SQL execution plan via DBMS_XPLAN |
| Current session, DB version, NLS settings |
Resources
URI | Description |
| Table list for a schema |
| Full table definition |
| PL/SQL source code |
Prompts
Prompt | Description |
Analyze Query | Performance analysis and optimization suggestions |
Document Table | Generate comprehensive table documentation |
Review PL/SQL | Code review for PL/SQL objects |
Security
Safe Mode (default: ON) — only SELECT/WITH queries allowed,
call_procedurehiddenBind Variables — all queries use parameterized queries (no SQL injection)
SecretStr — passwords never appear in logs or output
Query Timeout — configurable, default 30 seconds
Development
git clone https://github.com/PaulBe7/oracle-mcp-server.git
cd oracle-mcp-server
pip install -e ".[dev]"
# Unit tests (no DB required)
pytest tests/test_query.py tests/test_prompts.py -v
# Live tests (requires Oracle DB — configure .env first)
cp .env.example .env
# Edit .env with your Oracle credentials
python scripts/create_test_data.py # Create test tables & PL/SQL objects
pytest -vSee CONTRIBUTING.md for code style and PR guidelines.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseAqualityCmaintenanceExecute SQL queries, browse schemas, and analyze Oracle Database performance through an AI-compatible Model Context Protocol server.84MIT
- AlicenseAqualityDmaintenanceEnables AI tools to interact with Oracle databases through query execution, schema browsing, stored procedure calls, and transaction management. Supports multiple database connections with safety features like read-only mode and dangerous query detection.16MIT
- AlicenseAqualityDmaintenanceMCP server for Oracle Database enabling AI assistants to explore schemas, run queries, write data, and monitor sessions via natural language. Features read-only mode by default and uses Oracle Thin mode for zero-install connectivity.10152 npm2MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with secure, structured access to Oracle Database through MCP, enabling SQL execution, metadata exploration, and stored procedure execution.MIT