oci-mcp-server

oci-mcp-server

Enables natural-language access to Oracle Cloud Infrastructure resources, allowing users to query compute instances, OKE clusters, networking, and Object Storage via MCP tools.

Category
Visit Server

README

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 get_tenancy, list_compartments, list_regions, list_availability_domains
Compute list_instances, get_instance, list_shapes
Networking list_vcns, list_subnets, list_security_lists, list_internet_gateways
Object Storage get_object_storage_namespace, list_buckets, list_objects, get_bucket
OKE list_oke_clusters, get_oke_cluster, list_node_pools, list_cluster_options

Prerequisites

  • Python 3.10+
  • OCI CLI configured (~/.oci/config) — setup guide
  • An OCI user with at minimum read permissions 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.py

Configuration

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/config

Connect 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.py

Example 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 pools

Roadmap

  • [ ] 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured