Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions src/database-mcp-server/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Copyright (c) 2025 Oracle and/or its affiliates.

The Universal Permissive License (UPL), Version 1.0

Subject to the condition set forth below, permission is hereby granted to any
person obtaining a copy of this software, associated documentation and/or data
(collectively the "Software"), free of charge and under any and all copyright
rights in the Software, and any and all patent rights owned or freely
licensable by each licensor hereunder covering either (i) the unmodified
Software as contributed to or provided by such licensor, or (ii) the Larger
Works (as defined below), to deal in both

(a) the Software, and
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
one is included with the Software (each a "Larger Work" to which the Software
is contributed by such licensors),

without restriction, including without limitation the rights to copy, create
derivative works of, display, perform, and distribute the Software and make,
use, sell, offer for sale, import, export, have made, and have sold the
Software and the Larger Work(s), and to sublicense the foregoing rights on
either these or other terms.

This license is subject to the following condition:
The above copyright notice and either this complete permission notice or at
a minimum a reference to the UPL must be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
112 changes: 112 additions & 0 deletions src/database-mcp-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# OCI Database MCP Server

## Overview

This server provides tools to interact with the OCI Database service.

## Running the server

```sh
uv run oracle.database-mcp-server
```

## 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_compartment_by_name_tool | Return a compartment matching the provided name |
| list_subscribed_regions_tool | Return a list of all regions the customer (tenancy) is subscribed to |



⚠️ **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/>.

5 changes: 5 additions & 0 deletions src/database-mcp-server/oracle/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
Copyright (c) 2025, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at
https://oss.oracle.com/licenses/upl.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""
Copyright (c) 2025, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v1.0 as shown at
https://oss.oracle.com/licenses/upl.
"""

__project__ = "oracle.database-mcp-server"
__version__ = "1.0.0"
Loading