MCP Hub
Back to servers

oracle-cloud

Oracle Cloud Infrastructure MCP server

Updated
Feb 14, 2026

Quick Install

npx -y oracle-cloud-mcp

Oracle Cloud Infrastructure MCP Server

MCP server for Oracle Cloud Infrastructure (OCI) integration with Claude Code. Provides comprehensive access to OCI services including Compute, Storage, Networking, Database, and IAM.

Features

  • Compute - List, manage, and control VM instances
  • Object Storage - Manage buckets and objects
  • Block Storage - List block and boot volumes
  • Networking - VCNs, subnets, and network management
  • Autonomous Database - ATP/ADW database operations
  • IAM - Users, groups, policies, and compartments

Available Tools (21 total)

Compute (4 tools)

ToolDescription
oci_compute_list_instancesList all compute instances in a compartment
oci_compute_get_instanceGet detailed info about a specific instance
oci_compute_list_shapesList available shapes (incl. Always Free)
oci_compute_instance_actionPerform actions (START, STOP, RESET, etc.)

Object Storage (5 tools)

ToolDescription
oci_os_get_namespaceGet the Object Storage namespace
oci_os_list_bucketsList all buckets in compartment
oci_os_create_bucketCreate a new bucket
oci_os_list_objectsList objects in a bucket
oci_os_delete_bucketDelete an empty bucket

Block Storage (2 tools)

ToolDescription
oci_bv_list_volumesList block volumes
oci_bv_list_boot_volumesList boot volumes

Networking (3 tools)

ToolDescription
oci_vcn_listList Virtual Cloud Networks
oci_subnet_listList subnets in a VCN
oci_vcn_createCreate a new VCN

Autonomous Database (4 tools)

ToolDescription
oci_adb_listList Autonomous Databases
oci_adb_getGet database details
oci_adb_startStart a stopped database
oci_adb_stopStop a running database

IAM (5 tools)

ToolDescription
oci_iam_list_usersList IAM users
oci_iam_list_groupsList IAM groups
oci_iam_list_policiesList IAM policies
oci_iam_list_compartmentsList compartments
oci_iam_list_availability_domainsList availability domains

Setup

1. Install Dependencies

cd ~/mcp-servers/oracle-mcp
npm install

2. Configure OCI

Ensure you have OCI CLI configured with a valid config file:

# ~/.oci/config should contain:
[DEFAULT]
user=ocid1.user.oc1..xxx
fingerprint=xx:xx:xx:xx:xx
tenancy=ocid1.tenancy.oc1..xxx
region=us-chicago-1
key_file=~/.oci/api_keys/oci_api_key.pem

Or use session token authentication:

oci session authenticate

3. Add to Claude Code

Add to ~/.claude.json:

{
  "mcpServers": {
    "oracle": {
      "type": "stdio",
      "command": "node",
      "args": ["/Users/matthewkarsten/mcp-servers/oracle-mcp/index.js"],
      "env": {
        "OCI_CONFIG_FILE": "/Users/matthewkarsten/.oci/config",
        "OCI_PROFILE": "DEFAULT",
        "OCI_REGION": "us-chicago-1"
      }
    }
  }
}

Free Tier Resources

Oracle Cloud Free Tier includes:

ResourceFree Allocation
Compute (Ampere A1)4 OCPUs, 24 GB RAM
Compute (AMD E2.1.Micro)2 instances
Object Storage20 GB Standard + 20 GB Archive
Block Storage200 GB total
Autonomous Database2 Always Free databases
Outbound Data10 TB/month

Architecture

Claude Code (Opus 4.5)
         │
         └──▶ Oracle MCP Server
                    │
                    └──▶ OCI SDK
                              │
                              ├── Compute Service
                              ├── Object Storage
                              ├── Block Storage
                              ├── Virtual Network
                              ├── Database Service
                              └── Identity Service

Authentication

The server supports two authentication methods:

  1. Session Token (recommended for interactive use)

    • Uses security_token_file from config
    • Refreshable with oci session refresh
  2. API Key (for automation)

    • Uses RSA key pair
    • Requires fingerprint in OCI config

Usage Examples

User: List my OCI compute instances

Claude: [Uses oci_compute_list_instances tool]
Result:
- web-server-1 (VM.Standard.A1.Flex) - RUNNING
- db-server (VM.Standard.E2.1.Micro) - STOPPED

User: Start the db-server instance

Claude: [Uses oci_compute_instance_action with action=START]
Result: Instance db-server is now starting...

Files

  • index.js - MCP server implementation
  • package.json - Dependencies
  • README.md - This file

Dependencies

  • @modelcontextprotocol/sdk - MCP SDK
  • oci-sdk - Official Oracle Cloud SDK

Author

Matthew Karsten

License

MIT

Reviews

No reviews yet

Sign in to write a review