mcp-oci
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-ocilist instances in compartment 'production'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-oci
Production-oriented MCP server for Oracle Cloud Infrastructure (OCI), exposing Compute, Networking and Object Storage operations to MCP clients (Claude Desktop, VS Code Copilot, Cursor, and compatible hosts).
Features
Four authentication modes: config file (API key), inline API key, instance principal, and session token
Per-call region override (
regionargument) on every Compute/Networking/Object Storage tool — query any OCI region without restarting the serverTrimmed-by-default responses: list/get tools return a lean summary per resource instead of the full OCI SDK object (which can run 100+ fields deep, e.g. SSH keys and agent plugin configs on an instance); pass
raw=trueto get the untrimmed objectRead-only enforcement independent of IAM policy: mutating tools can be blocked at the server level
Compute instance discovery, VNIC inspection, and lifecycle actions
Networking discovery: VCNs, subnets, security lists, NSGs, route tables
Object Storage discovery and management: buckets and objects
Environment-driven configuration for secure deployment
Related MCP server: OCI MCP Server
Available Tools
Tool | Mutating | Trimmed by default | Description |
| No | — | Lists the tenancy's subscribed regions — resolves a name (e.g. "Vinhedo") to its region ID (e.g. |
| No | — | Lists compartments by name and/or parent — resolves a name (e.g. "cpLinux") to its OCID |
| No | Yes | Lists Compute instances in a compartment |
| No | Yes | Returns details of a specific Compute instance |
| No | Yes | Lists VNIC attachments in a compartment/instance |
| Yes | — | Performs START/STOP/SOFTSTOP/RESET/SOFTRESET/SENDDIAGNOSTICINTERRUPT on an instance |
| No | Yes | Lists Virtual Cloud Networks in a compartment |
| No | Yes | Returns details of a specific VCN |
| No | Yes | Lists subnets in a compartment/VCN |
| No | Yes | Lists security lists in a compartment/VCN (rule counts only — use |
| No | Yes | Lists NSGs in a compartment/VCN |
| No | Yes | Lists route tables in a compartment/VCN (route count only — use |
| No | — | Returns the Object Storage namespace for the tenancy |
| No | Yes | Lists Object Storage buckets in a compartment |
| No | Yes | Returns details of a specific bucket |
| No | — | Lists objects in a bucket, optional prefix filter (the SDK object here is already lean) |
| Yes | — | Creates an Object Storage bucket |
| Yes | — | Deletes an object from a bucket |
Tools marked Mutating are rejected by the server when OCI_READ_ONLY=true (the default), regardless of IAM permissions — a second layer of least-privilege enforcement on top of your OCI policies.
Tools marked Trimmed by default accept a raw boolean argument (default false) — set raw=true to get the untrimmed OCI SDK object instead of the summary (id, name, state, and the handful of fields that matter day-to-day).
Requirements
Node.js 18+
An OCI tenancy with credentials for one of the supported authentication modes
Network connectivity from the MCP host to the OCI region endpoints
Configuration
Authentication mode
Variable | Required | Default | Description |
| No |
|
|
| No |
| When |
| No | region from config/session | Default region when a tool call doesn't pass |
When a tool call omits compartmentId, it defaults to the tenancy root compartment (resolved from the auth provider). This doesn't work in instance_principal mode — the provider doesn't expose the tenancy OCID there, so compartmentId must be passed explicitly (use list_compartments to look it up by name first).
Compute, Networking and Object Storage resources are region-scoped in OCI. Every tool that touches them accepts an optional region argument (e.g. sa-vinhedo-1) to query a specific region without restarting the server; omitting it falls back to OCI_REGION or the config/session file's default region. list_compartments and list_regions are unaffected — compartments and region subscriptions are tenancy-wide, not regional.
config mode (API key via ~/.oci/config)
Variable | Required | Default | Description |
| No |
| Path to the OCI config file |
| No |
| Profile name inside the config file |
session mode (oci session authenticate token)
Uses the same OCI_CONFIG_FILE / OCI_CONFIG_PROFILE variables as config mode, pointing to a profile with a security_token_file.
apikey mode (inline API key, no config file)
Variable | Required | Description |
| Yes | Tenancy OCID |
| Yes | User OCID |
| Yes | API key fingerprint |
| Yes | Region ID (e.g. |
| Yes* | PEM private key content ( |
| Yes* | Path to the PEM private key file (alternative to |
| No | Private key passphrase, if any |
* Provide either OCI_PRIVATE_KEY or OCI_PRIVATE_KEY_PATH.
instance_principal mode
No extra variables required — credentials are resolved from the instance metadata service. Only works when the MCP server itself runs on an OCI Compute instance (or OKE pod configured for it).
Transport
Variable | Required | Default | Description |
| No |
| Transport mode: |
| No |
| Port for the HTTP server (only used when |
| No |
| Bind address for the HTTP server (only used when |
Usage
Run directly from GitHub
npx github:ferronicardoso/mcp-ociClaude Code (CLI)
claude mcp add oci --scope user -- npx -y github:ferronicardoso/mcp-oci--scope controls where the server registration is stored:
Scope | Stored in | Visible to |
| project-local, untracked | only you, only in this project |
|
| anyone who clones the repo (commit it to share) |
| your global Claude Code config | you, across every project |
Environment variables (auth mode, OCI_READ_ONLY, etc.) can be passed with repeated --env KEY=VALUE flags before the --, e.g.:
claude mcp add oci --scope user \
--env OCI_AUTH_MODE=config \
--env OCI_CONFIG_PROFILE=DEFAULT \
--env OCI_READ_ONLY=true \
-- npx -y github:ferronicardoso/mcp-ociClaude Desktop configuration
%APPDATA%\\Claude\\claude_desktop_config.json:
{
"mcpServers": {
"oci": {
"command": "npx",
"args": ["github:ferronicardoso/mcp-oci"],
"env": {
"OCI_AUTH_MODE": "config",
"OCI_CONFIG_PROFILE": "DEFAULT",
"OCI_READ_ONLY": "true"
}
}
}
}VS Code MCP configuration
.vscode/mcp.json:
{
"servers": {
"oci": {
"command": "npx",
"args": ["github:ferronicardoso/mcp-oci"],
"env": {
"OCI_AUTH_MODE": "config",
"OCI_CONFIG_PROFILE": "DEFAULT",
"OCI_READ_ONLY": "true"
}
}
}
}Run with Docker (HTTP transport)
The published image runs in Streamable HTTP mode by default, for use as a remote MCP endpoint (e.g. from n8n's MCP Client Tool node or any Streamable HTTP-compatible client):
docker run -d --name mcp-oci \
-p 3003:3003 \
-e OCI_AUTH_MODE=apikey \
-e OCI_TENANCY_ID=ocid1.tenancy.oc1..xxxx \
-e OCI_USER_ID=ocid1.user.oc1..xxxx \
-e OCI_FINGERPRINT=xx:xx:xx:xx \
-e OCI_REGION=sa-saopaulo-1 \
-e OCI_PRIVATE_KEY_PATH=/keys/oci_api_key.pem \
-e OCI_COMPARTMENT_ID=ocid1.compartment.oc1..xxxx \
-e OCI_READ_ONLY=true \
-v /path/to/oci_api_key.pem:/keys/oci_api_key.pem:ro \
ghcr.io/ferronicardoso/mcp-oci:latestThe MCP endpoint is then available at http://localhost:3003/mcp.
Local Development
git clone https://github.com/ferronicardoso/mcp-oci
cd mcp-oci
npm install
npm run buildStart the compiled server:
npm startBuild and Commit Workflow
This repository intentionally tracks dist/ to support npx github:user/repo usage.
The project uses a Husky pre-commit hook to:
build TypeScript (
npm run build)stage generated artifacts (
git add dist)
Manual fallback:
npm run build
git add distSecurity Notes
Never commit real credentials, private keys, or
.envfiles.OCI_READ_ONLY=trueis the default; only set it tofalsefor environments that must run mutating operations, and prefer pairing it with a least-privilege IAM policy on the OCI side.Prefer
instance_principalauthentication when the server runs on OCI Compute/OKE — it avoids storing long-lived credentials entirely.For
apikeymode, prefer mounting the private key file (OCI_PRIVATE_KEY_PATH) over passing raw key content viaOCI_PRIVATE_KEY.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceModel Context Protocol (MCP) server exposing Oracle Cloud Infrastructure tools, resources and prompts.MIT
- AlicenseCqualityDmaintenanceAn MCP server that exposes Oracle Cloud Infrastructure (OCI) control plane to LLM clients, enabling management of compute, networking, storage, databases, and more through natural language.551Apache 2.0
- Alicense-qualityDmaintenanceMCP server for Oracle Container Engine for Kubernetes (OKE) that enables inspection, querying, and troubleshooting of OKE clusters through safe, composable tools.Universal Permissive v1.0
- AlicenseAqualityDmaintenanceMCP server for Oracle Cloud Infrastructure (OCI) that provides tools to manage Compute, Object Storage, Block Storage, Networking, Autonomous Database, and IAM via the official OCI SDK.2347MIT
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for interacting with the Supabase platform
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ferronicardoso/mcp-oci'
If you have feedback or need assistance with the MCP directory API, please join our Discord server