<h1 align="center">
<a href="https://prompts.chat">
[](https://npmjs.com/package/@purplesquirrel/oracle-mcp-server)
Sign in to like and favorite skills
MCP server for Oracle Cloud Infrastructure (OCI) integration with Claude Code. Provides comprehensive access to OCI services including Compute, Storage, Networking, Database, and IAM.
| Tool | Description |
|---|---|
| List all compute instances in a compartment |
| Get detailed info about a specific instance |
| List available shapes (incl. Always Free) |
| Perform actions (START, STOP, RESET, etc.) |
| Tool | Description |
|---|---|
| Get the Object Storage namespace |
| List all buckets in compartment |
| Create a new bucket |
| List objects in a bucket |
| Delete an empty bucket |
| Tool | Description |
|---|---|
| List block volumes |
| List boot volumes |
| Tool | Description |
|---|---|
| List Virtual Cloud Networks |
| List subnets in a VCN |
| Create a new VCN |
| Tool | Description |
|---|---|
| List Autonomous Databases |
| Get database details |
| Start a stopped database |
| Stop a running database |
| Tool | Description |
|---|---|
| List IAM users |
| List IAM groups |
| List IAM policies |
| List compartments |
| List availability domains |
cd ~/mcp-servers/oracle-mcp npm install
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
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" } } } }
Oracle Cloud Free Tier includes:
| Resource | Free Allocation |
|---|---|
| Compute (Ampere A1) | 4 OCPUs, 24 GB RAM |
| Compute (AMD E2.1.Micro) | 2 instances |
| Object Storage | 20 GB Standard + 20 GB Archive |
| Block Storage | 200 GB total |
| Autonomous Database | 2 Always Free databases |
| Outbound Data | 10 TB/month |
Claude Code (Opus 4.5) │ └──▶ Oracle MCP Server │ └──▶ OCI SDK │ ├── Compute Service ├── Object Storage ├── Block Storage ├── Virtual Network ├── Database Service └── Identity Service
The server supports two authentication methods:
Session Token (recommended for interactive use)
security_token_file from configoci session refreshAPI Key (for automation)
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...
index.js - MCP server implementationpackage.json - DependenciesREADME.md - This file@modelcontextprotocol/sdk - MCP SDKoci-sdk - Official Oracle Cloud SDKMatthew Karsten
MIT
If this MCP server is useful to you, consider supporting its development:
Enterprise support available - Contact us for SLAs, custom development, and priority support.