Oracle Database MCP Server

Oracle Database MCP Server

Connect to Oracle databases via MCP, providing secure read-only access with support for schema exploration, query execution, and metadata inspection.

698

6 Tools

Packaged by
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Oracle Database MCP Server MCP Server

Connect to Oracle databases via MCP, providing secure read-only access with support for schema exploration, query execution, and metadata inspection.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imagemcp/oracle
Authorsamscarrow
Repositoryhttps://github.com/samscarrow/oracle-mcp-server
Dockerfilehttps://github.com/samscarrow/oracle-mcp-server/blob/main/Dockerfile
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/oracle --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (6)

Tools provided by this ServerShort Description
describe_tableGet table structure including columns, data types, and constraints
execute_queryExecute a SQL query on the Oracle database
get_table_constraintsGet constraints (primary keys, foreign keys, unique, check) for a table
get_table_indexesGet indexes for a specific table
list_schemasList all schemas in the database
list_tablesList tables from specified schema or all accessible schemas

Tools Details

Tool: describe_table

Get table structure including columns, data types, and constraints

ParametersTypeDescription
table_namestringTable name
schemastringoptionalSchema name (optional, searches all accessible schemas if not specified)

Tool: execute_query

Execute a SQL query on the Oracle database

ParametersTypeDescription
querystringSQL query to execute
maxRowsnumberoptionalMaximum number of rows to return (default: 1000)
paramsarrayoptionalQuery parameters (optional)

Tool: get_table_constraints

Get constraints (primary keys, foreign keys, unique, check) for a table

ParametersTypeDescription
table_namestringTable name
schemastringoptionalSchema name (optional, searches all accessible schemas if not specified)

Tool: get_table_indexes

Get indexes for a specific table

ParametersTypeDescription
table_namestringTable name
schemastringoptionalSchema name (optional, searches all accessible schemas if not specified)

Tool: list_schemas

List all schemas in the database

Tool: list_tables

List tables from specified schema or all accessible schemas

ParametersTypeDescription
patternstringoptionalTable name pattern (supports % wildcards)
schemastringoptionalSchema name (optional, shows all accessible schemas if not specified)

Use this MCP Server

{
  "mcpServers": {
    "oracle": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ORACLE_CONNECTION_STRING",
        "-e",
        "ORACLE_USER",
        "-e",
        "ORACLE_PASSWORD",
        "mcp/oracle"
      ],
      "env": {
        "ORACLE_CONNECTION_STRING": "hostname:1521/servicename",
        "ORACLE_USER": "readonly_user",
        "ORACLE_PASSWORD": "<ORACLE_PASSWORD>"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers