MCP Server for Oracle
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server for Oracle show me the schema for the users table in the prod database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server for Oracle
A Model Context Protocol server that provides access to Oracle databases with fine-grained access control. Supports multiple databases, access modes, and table-level permissions.
Features
Multi-database support: Connect to multiple Oracle databases simultaneously
Access control:
readonly,readwrite,fullmodes per databaseTable-level permissions: Whitelist/blacklist with wildcards and regex
Read-only transaction protection: Database-level safety for readonly mode
Backward compatible: Works with single database environment variables
Related MCP server: MCP Oracle Server
Components
Tools
Tool | Description |
| Read-only SELECT queries (always available) |
| Write operations (only visible when writable databases exist) |
Resources
oracle://connections: List of database connections with access modes
oracle://{db}/tables/{table}/schema: Table schema
Prompts
oracle_usage_guide: Dynamic guide based on configured databases
Configuration
Config File
Create ~/.mcp_oracle/databases.json:
{
"databases": [
{
"name": "prod",
"user": "...",
"password": "...",
"connectString": "...",
"accessMode": "readonly"
},
{
"name": "dev",
"user": "...",
"password": "...",
"connectString": "...",
"accessMode": "readwrite",
"allowedTables": ["LOG_*", "TMP_*", "/^TEST_.*/"]
}
]
}Access Modes
Mode | SELECT | INSERT/UPDATE/DELETE | DDL |
| ✅ | ❌ | ❌ |
| ✅ | ✅ | ❌ |
| ✅ | ✅ | ✅ |
Table Patterns
Format | Example | Matches |
Exact |
| Only |
Wildcard |
|
|
Regex |
|
|
Environment Variables
Variable | Description |
| Custom config file path |
| Legacy single-database user |
| Legacy single-database password |
| Legacy connection string |
| Oracle client library path |
| TNS admin directory |
Usage Example
User: "查询 prod 库中的用户表"
→ oracle_query(database="prod", sql="SELECT * FROM users")
User: "在 dev 库的 LOG_TEST 表插入一条记录"
→ oracle_execute(database="dev", sql="INSERT INTO LOG_TEST ...", confirm=true)Security
readonly mode: Uses
SET TRANSACTION READ ONLYfor database-level protectionSQL validation: Validates statement type before execution
Table validation: Checks whitelist/blacklist before write operations
Confirmation required: Write operations require
confirm=true
License
MIT License
Available Tools
1 tooloracle_queryA
Run a read-only SELECT query on an Oracle database
Inputs: sql (required), database.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as running read-only SELECT queries on an Oracle database, making it distinct by default.
The single tool name 'oracle_query' follows a clear and consistent verb_noun pattern (query as the action, oracle as the domain). With only one tool, there is no inconsistency to evaluate, so it scores perfectly.
One tool is too few for a database server's apparent scope, which typically requires operations like insert, update, delete, schema inspection, or transaction management. This minimal set severely limits functionality and will likely cause agent failures in complex tasks.
The tool surface is severely incomplete for an Oracle database server. It only supports read-only SELECT queries, missing essential CRUD operations (create, update, delete), schema exploration, connection management, and other database interactions, making it inadequate for typical database workflows.
Maintenance
Related MCP Connectors
Governed SQL access to your databases: redaction, query review and an audit log.
Zero-trust SQL AST & MCP firewall enforcing tenant isolation, PII scrubbing, and schema allowlists.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Related MCP Servers
- 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
- AlicenseBqualityDmaintenanceEnables interaction with Oracle databases through MCP by executing SELECT queries, describing table structures, and listing available tables with secure, read-only access.32ISC
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to connect to Oracle databases for schema exploration, PL/SQL source inspection, and read-only SQL queries, with optional write operations when explicitly enabled.-
- AlicenseNot gradedqualityCmaintenanceEnables controlled access to Oracle/PLSQL databases, allowing querying, schema browsing, and optional PL/SQL execution with per-connection safety controls.MIT