OCI Database MCP Server
Overview
This server provides tools to interact with the OCI Database service.
Running the server
STDIO transport mode
uv run oracle.oci-database-mcp-server
HTTP streaming transport mode
ORACLE_MCP_HOST=<bind_host> \
ORACLE_MCP_PORT=<port> \
ORACLE_MCP_BASE_URL=<public_base_url> \
OCI_REGION=<region> \
IDCS_DOMAIN=<idcs_domain> \
IDCS_CLIENT_ID=<client_id> \
IDCS_CLIENT_SECRET=<client_secret> \
IDCS_AUDIENCE=<audience> \
uv run oracle.oci-database-mcp-server
For the OCI IAM confidential application, register
${ORACLE_MCP_BASE_URL}/auth/callback as the redirect URI. By default, the
server requires openid profile email oci_mcp.database.invoke; set
IDCS_REQUIRED_SCOPES to a space-delimited list or JSON array to override it.
stdio uses the selected OCI credential mode, while HTTP exchanges each
authenticated OCI IAM user's access token to make caller-specific OCI SDK
requests.
Environment Variables
The server uses oracle-mcp-common to resolve OCI authentication. It supports
the following environment variables:
OCI_MCP_AUTH_TYPE: authentication mode. The default,auto, selects session-token authentication when the selected profile directly declares asecurity_token_file; otherwise it uses API-key authentication.OCI_CONFIG_FILE: OCI configuration file path (default:~/.oci/config).OCI_CONFIG_PROFILE: OCI configuration profile name (default: "DEFAULT")
Set OCI_MCP_AUTH_TYPE to use a non-profile authentication mode:
identity_domain_upst, instance_principal, resource_principal,
resource_principal_v212, instance_principal_delegation,
resource_principal_delegation, or oke_workload_identity. Those modes use
the standard oracle-mcp-common configuration and OCI SDK prerequisites.
For Database-service RPv2.1.2 resource-principal authentication, set
OCI_MCP_AUTH_TYPE=resource_principal_v212, OCI_REGION, and the following
additional values:
OCI_MCP_RP_TENANCY_ID: resource-principal tenancy OCIDOCI_MCP_RP_RESOURCE_ID: Database resource OCIDOCI_MCP_RP_PRIVATE_KEY_PATH: private-key file pathOCI_MCP_RP_RCI: sensitive RPT context HMAC keyOCI_MCP_RP_T0: RPv2.1.2 context base time
The RPT and RPST endpoints default to the region's OCI realm. Override them
only when required with OCI_MCP_RP_RPT_ENDPOINT and
OCI_MCP_RP_RPST_ENDPOINT. See the shared authentication documentation for
the required value formats and security guidance.
HTTP mode uses the OCI IAM/IDCS configuration shown above rather than
OCI_MCP_AUTH_TYPE. oracle-mcp-common validates IDCS_DOMAIN,
IDCS_CLIENT_ID, IDCS_CLIENT_SECRET, IDCS_AUDIENCE, and
ORACLE_MCP_BASE_URL before the listener starts. OCI_REGION supplies the
default region for request-token exchange; a tool's region argument overrides
it for that request. Keep client secrets out of source control and use a secret
manager or deployment environment to provide IDCS_CLIENT_SECRET.
Tools
| Tool Name | Description |
|---|---|
| list_application_vips | Get application virtual IP (VIP) addresses on a cloud VM cluster |
| list_autonomous_container_database_dataguard_associations | List Autonomous Data Guard associations for an Autonomous Container Database |
| list_autonomous_container_database_versions | List supported Autonomous Container Database versions |
| list_autonomous_container_databases | List Autonomous Container Databases in a compartment |
| list_autonomous_database_backups | List Autonomous Database backups by database ID or compartment |
| list_autonomous_database_character_sets | List supported character sets for Autonomous Databases |
| list_autonomous_database_clones | List clones for a specific Autonomous Database |
| list_autonomous_database_dataguard_associations | List Autonomous Data Guard associations for an Autonomous Database |
| list_autonomous_database_peers | List peers for a specific Autonomous Database |
| list_autonomous_database_refreshable_clones | List refreshable clones for a specific Autonomous Database |
| list_autonomous_database_software_images | List Autonomous Database Software Images in a compartment |
| list_autonomous_databases | List Autonomous Databases in a compartment |
| list_autonomous_db_preview_versions | List supported preview versions for Autonomous Databases |
| list_autonomous_db_versions | List supported versions for Autonomous Databases |
| list_autonomous_virtual_machines | List Autonomous Virtual Machines in a specified cluster and compartment |
| list_autonomous_vm_clusters | List Exadata Cloud@Customer Autonomous VM clusters in a compartment |
| list_backup_destination | List backup destinations in a compartment |
| list_backups | List database backups by database ID or compartment |
| list_cloud_autonomous_vm_clusters | List Autonomous Exadata VM clusters in the Oracle cloud |
| list_cloud_exadata_infrastructures | List cloud Exadata infrastructure resources in a compartment |
| list_cloud_vm_cluster_updates | List maintenance updates for a specific cloud VM cluster |
| list_cloud_vm_clusters | List cloud VM clusters in a compartment |
| list_console_connections | List console connections for a database node |
| list_console_histories | List console histories for a database node |
| list_container_database_patches | List patches applicable to a container database |
| list_data_guard_associations | List Data Guard associations for a database |
| list_database_software_images | List database software images in a compartment |
| list_databases | List databases in a specified Database Home |
| list_db_home_patch_history_entries | List patch history for a Database Home |
| list_db_home_patches | List patches applicable to a Database Home |
| list_db_homes | List Database Homes in a DB system and compartment |
| list_db_nodes | List database nodes in a DB system and compartment |
| list_db_servers | List Exadata DB servers for an Exadata infrastructure |
| list_db_system_compute_performances | Get a list of expected compute performance for a VM DB system |
| list_db_system_patches | List patches applicable to a DB system |
| list_db_system_shapes | Get a list of shapes available for launching a new DB system |
| list_db_system_storage_performances | Get a list of expected storage performance for a VM DB system |
| list_db_systems | List DB systems in a compartment |
| list_db_versions | Get a list of supported Oracle Database versions |
| list_exadata_infrastructures | List Exadata Cloud@Customer infrastructure resources in a compartment |
| list_exadb_vm_cluster_updates | List maintenance updates for an Exadata VM cluster on Exascale |
| list_exadb_vm_clusters | List Exadata VM clusters on Exascale Infrastructure in a compartment |
| list_exascale_db_storage_vaults | List Exadata Database Storage Vaults in a compartment |
| list_execution_actions | List execution action resources in a compartment |
| list_execution_windows | List execution window resources in a compartment |
| list_external_container_databases | List external container databases in a compartment |
| list_external_database_connectors | List external database connectors in a compartment |
| list_external_non_container_databases | List external non-container databases in a compartment |
| list_external_pluggable_databases | List external pluggable databases in a compartment |
| list_flex_components | Get a list of flex components available for launching a new DB system |
| list_gi_version_minor_versions | Get a list of supported Grid Infrastructure minor versions |
| list_gi_versions | Get a list of supported Grid Infrastructure (GI) versions |
| list_key_stores | Get a list of key stores in the specified compartment |
| list_maintenance_run_history | Get a list of maintenance run histories in a compartment |
| list_maintenance_runs | Get a list of maintenance runs in a compartment |
| list_oneoff_patches | List one-off patches in a compartment |
| list_pluggable_databases | Get a list of pluggable databases in a database or compartment |
| list_scheduled_actions | List Scheduled Action resources in a compartment |
| list_scheduling_plans | List Scheduling Plan resources in a compartment |
| list_scheduling_policies | List Scheduling Policy resources in a compartment |
| list_scheduling_windows | List Scheduling Window resources in a compartment |
| list_system_versions | Get a list of supported Exadata system versions |
| list_vm_cluster_networks | Get a list of VM cluster networks in a compartment |
| list_vm_cluster_patches | List patches applicable to a VM cluster |
| list_vm_cluster_updates | List maintenance updates for a VM cluster |
| list_vm_clusters | List VM clusters in a compartment |
| resource_pool_shapes | List available resource pool shapes |
| create_pluggable_database | Create and start a pluggable database |
| create_pluggable_database_from_local_clone | Create a pluggable database from a local clone |
| create_pluggable_database_from_remote_clone | Create a pluggable database by cloning from a remote source CDB |
| create_pluggable_database_from_relocate | Relocate (move) a pluggable database from a source CDB into the target CDB |
| delete_pluggable_database | Delete a specific pluggable database |
| get_pluggable_database | Get information about a specific pluggable database |
| update_pluggable_database | Update a specific pluggable database |
| get_application_vip | Gets information about a specified application virtual IP (VIP) address. |
| get_autonomous_container_database | Gets information about the specified Autonomous Container Database. |
| get_autonomous_container_database_dataguard_association | Gets an Autonomous Container Database enabled with Autonomous Data Guard associated with the specified Autonomous Container Database. |
| get_autonomous_container_database_resource_usage | Get resource usage details for the specified Autonomous Container Database. |
| get_autonomous_database | Gets the details of the specified Autonomous Database. |
| get_autonomous_database_backup | Gets information about the specified Autonomous Database backup. |
| get_autonomous_database_dataguard_association | Gets an Autonomous Data Guard-enabled database associated with the specified Autonomous Database. |
| get_autonomous_database_regional_wallet | Gets the Autonomous Database regional wallet details. |
| get_autonomous_database_software_image | Gets information about the specified Autonomous Database Software Image. |
| get_autonomous_database_wallet | Gets the wallet details for the specified Autonomous Database. |
| get_autonomous_exadata_infrastructure | Deprecated. Use the :func:get_cloud_exadata_infrastructure operation to get details of an Exadata Infrastructure resource and the :func:get_cloud_autonomous_vm_cluster operation to get details of an Autonomous Exadata VM cluster. |
| get_autonomous_patch | Gets information about a specific autonomous patch. |
| get_autonomous_virtual_machine | Gets the details of specific Autonomous Virtual Machine. |
| get_autonomous_vm_cluster | Gets information about the specified Autonomous VM cluster for an Exadata Cloud@Customer system. To get information about an Autonomous VM Cluster in the Oracle cloud, see :func:get_cloud_autonomous_vm_cluster. |
| get_autonomous_vm_cluster_resource_usage | Get the resource usage details for the specified Autonomous Exadata VM cluster. |
| get_backup | Gets information about the specified backup. |
| get_backup_destination | Gets information about the specified backup destination in an Exadata Cloud@Customer system. |
| get_cloud_autonomous_vm_cluster | Gets information about the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Custustomer systems, see :func:get_autonomous_vm_cluster. |
| get_cloud_autonomous_vm_cluster_resource_usage | Get the resource usage details for the specified Cloud Autonomous Exadata VM cluster. |
| get_cloud_exadata_infrastructure | Gets information about the specified cloud Exadata infrastructure resource. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only. |
| get_cloud_exadata_infrastructure_unallocated_resources | Gets unallocated resources information for the specified Cloud Exadata infrastructure. |
| get_cloud_vm_cluster | Gets information about the specified cloud VM cluster. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only. |
| get_cloud_vm_cluster_iorm_config | Gets the IORM configuration for the specified cloud VM cluster in an Exadata Cloud Service instance. |
| get_cloud_vm_cluster_update | Gets information about a specified maintenance update package for a cloud VM cluster. Applies to Exadata Cloud Service instances only. |
| get_cloud_vm_cluster_update_history_entry | Gets the maintenance update history details for the specified update history entry. Applies to Exadata Cloud Service instances only. |
| get_console_connection | Gets the specified database node console connection's information. |
| get_console_history | Gets information about the specified database node console history. |
| get_console_history_content | Retrieves the specified database node console history contents upto a megabyte. |
| get_data_guard_association | Gets the specified Data Guard association's configuration information. |
| get_database | Gets information about the specified database. |
| get_database_software_image | Gets information about the specified database software image. |
| get_database_upgrade_history_entry | gets the upgrade history for a specified database. |
| get_db_home | Gets information about the specified Database Home. |
| get_db_home_patch | Gets information about a specified patch package. |
| get_db_home_patch_history_entry | Gets the patch history details for the specified patchHistoryEntryId |
| get_db_node | Gets information about the specified database node. |
| get_db_server | Gets information about the Exadata Db server. |
| get_db_system | Gets information about the specified DB system. |
| get_db_system_patch | Gets information the specified patch. |
| get_db_system_patch_history_entry | Gets the details of the specified patch operation on the specified DB system. |
| get_db_system_upgrade_history_entry | Gets the details of the specified operating system upgrade operation for the specified DB system. |
| get_exadata_infrastructure | Gets information about the specified Exadata infrastructure. Applies to Exadata Cloud@Customer instances only. |
| get_exadata_infrastructure_ocpus | Gets details of the available and consumed OCPUs for the specified Autonomous Exadata Infrastructure resource. |
| get_exadata_infrastructure_un_allocated_resources | Gets un allocated resources information for the specified Exadata infrastructure. Applies to Exadata Cloud@Customer instances only. |
| get_exadata_iorm_config | Gets the IORM configuration settings for the specified cloud Exadata DB system. |
| get_exadb_vm_cluster | Gets information about the specified Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. |
| get_exadb_vm_cluster_update | Gets information about a specified maintenance update package for a Exadata VM cluster on Exascale Infrastructure. |
| get_exadb_vm_cluster_update_history_entry | Gets the maintenance update history details for the specified update history entry. |
| get_exascale_db_storage_vault | Gets information about the specified Exadata Database Storage Vaults in the specified compartment. |
| get_execution_action | Gets information about the specified execution action. |
| get_execution_window | Gets information about the specified execution window. |
| get_external_backup_job | Gets information about the specified external backup job. |
| get_external_container_database | Gets information about the specified external container database. |
| get_external_database_connector | Gets information about the specified external database connector. |
| get_external_non_container_database | Gets information about a specific external non-container database. |
| get_external_pluggable_database | Gets information about a specific |
| get_infrastructure_target_versions | Gets details of the Exadata Infrastructure target system software versions that can be applied to the specified infrastructure resource for maintenance updates. |
| get_key_store | Gets information about the specified key store. |
| get_maintenance_run | Gets information about the specified maintenance run. |
| get_maintenance_run_history | Gets information about the specified maintenance run history. |
| get_oneoff_patch | Gets information about the specified one-off patch. |
| get_pdb_conversion_history_entry | Gets the details of operations performed to convert the specified database from non-container (non-CDB) to pluggable (PDB). |
| get_pluggable_database | Gets information about the specified pluggable database. |
| get_scheduled_action | Gets information about the specified Scheduled Action. |
| get_scheduling_plan | Gets information about the specified Scheduling Plan. |
| get_scheduling_policy | Gets information about the specified Scheduling Policy. |
| get_scheduling_window | Gets information about the specified Scheduling Window. |
| get_vm_cluster | Gets information about the VM cluster. Applies to Exadata Cloud@Customer instances only. |
| get_vm_cluster_network | Gets information about the specified VM cluster network. Applies to Exadata Cloud@Customer instances only. |
| get_vm_cluster_patch | Gets information about a specified patch package. |
| get_vm_cluster_patch_history_entry | Gets the patch history details for the specified patch history entry. |
| get_vm_cluster_update | Gets information about a specified maintenance update package for a VM cluster. Applies to Exadata Cloud@Customer instances only. |
| get_vm_cluster_update_history_entry | Gets the maintenance update history details for the specified update history entry. Applies to Exadata Cloud@Customer instances only. |
⚠️ NOTE: All actions are performed with the permissions of the configured OCI CLI profile. We advise least-privilege IAM setup, secure credential management, safe network practices, secure logging, and warn against exposing secrets.
Third-Party APIs
Developers choosing to distribute a binary implementation of this project are responsible for obtaining and providing all required licenses and copyright notices for the third-party code used in order to ensure compliance with their respective open source licenses.
Disclaimer
Users are responsible for their local environment and credential safety. Different language model selections may yield different results and performance.
License
Copyright (c) 2025 Oracle and/or its affiliates.
Released under the Universal Permissive License v1.0 as shown at
https://oss.oracle.com/licenses/upl/.
Metadata
Release files for oracle.oci-database-mcp-server 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oracle_oci_database_mcp_server-1.4.0.tar.gz | 145.1 kB | Without provenance | Details for oracle_oci_database_mcp_server-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oracle_oci_database_mcp_server-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for oracle_oci_database_mcp_server-1.4.0-py3-none-any.whl |
Total release size: 281.2 kB
Release files / oracle_oci_database_mcp_server-1.4.0.tar.gz
| Download URL | oracle_oci_database_mcp_server-1.4.0.tar.gz |
|---|---|
| Size | 145.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b3d21377e0c21d83a2c8183c5cb56553d13117cf6543c569b2f6135637dbb0f
|
|
BLAKE2b-256 checksum How to use checksums |
660953307d58576f73bbc316bdd907d977f9f0454ebbdc865fa6f1ba7fe1e535
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Oracle Linux Server","version":"9.8","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / oracle_oci_database_mcp_server-1.4.0-py3-none-any.whl
| Download URL | oracle_oci_database_mcp_server-1.4.0-py3-none-any.whl |
|---|---|
| Size | 136.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abe5d3e46d761158e9c3aaf751b9622b3ae2ec2059cda3e765bf9893c9ba6877
|
|
BLAKE2b-256 checksum How to use checksums |
de90bf1272fb877c177f27bb330dc2a0893c195e02da6f70db1f444597df48a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Oracle Linux Server","version":"9.8","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for oracle.oci-database-mcp-server 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.