oci-mcp-server
Provides tools for managing Oracle Kubernetes Engine (OKE) clusters, including listing clusters, retrieving cluster details, listing node pools, and listing cluster options.
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., "@oci-mcp-serverList all running compute instances in my prod compartment."
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.
OCI MCP Server
An MCP (Model Context Protocol) server that gives Claude and other LLM clients natural-language access to Oracle Cloud Infrastructure resources.
Ask questions like:
"List all running compute instances in my prod compartment"
"What OKE clusters do we have, and which Kubernetes versions are they on?"
"Show me the subnets in our main VCN"
"Which Object Storage buckets are in the analytics compartment?"
Covered Services
Service | Tools |
Identity |
|
Compute |
|
Networking |
|
Object Storage |
|
OKE |
|
Prerequisites
Python 3.10+
OCI CLI configured (
~/.oci/config) — setup guideAn OCI user with at minimum
readpermissions on the resources you want to query
Installation
git clone https://github.com/sauryadas/oci-mcp-server
cd oci-mcp-server
pip install -e .Verify it starts cleanly:
python server.pyConfiguration
The server reads your OCI credentials from ~/.oci/config (the same file used by the OCI CLI). To use a non-default profile or config path, set environment variables before starting the server:
export OCI_CLI_PROFILE=MY_PROFILE # default: DEFAULT
export OCI_CLI_CONFIG_FILE=~/.oci/config # default: ~/.oci/configConnect to Claude Desktop
Add the following to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"oci": {
"command": "python",
"args": ["/Users/<you>/projects/oci-mcp-server/server.py"]
}
}
}Restart Claude Desktop and you'll see the OCI tools available in the tool picker.
Connect to Claude Code
claude mcp add oci -- python /Users/<you>/projects/oci-mcp-server/server.pyExample Prompts
What compartments do I have in my tenancy?
List all RUNNING instances in compartment ocid1.compartment.oc1..xxx
Show me the OKE clusters in my dev compartment and what Kubernetes versions they're running.
What subnets are in VCN ocid1.vcn.oc1..xxx ?
List the Object Storage buckets in my analytics compartment.Project Structure
oci-mcp-server/
├── server.py # MCP server entry point
├── pyproject.toml
└── tools/
├── base.py # shared OCI client initialisation
├── identity.py # tenancy, compartments, regions
├── compute.py # instances, shapes
├── networking.py # VCNs, subnets, security lists
├── storage.py # Object Storage buckets & objects
└── containers.py # OKE clusters & node poolsRoadmap
Database service (Autonomous DB, MySQL HeatWave)
IAM policies and groups
Resource tagging and search across compartments
Instance action support (start/stop) with confirmation prompts
Oracle Alloy operator-tier views
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/sauryadas/oci-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server