mcp-oci
MCP server by dockndevai Community
Discovers live Oracle Cloud (OCI) resources and generates Terraform for AI assistants. It runs read-only by default and redacts secret-shaped fields before returning results. Built for engineers who want an agent to inspect OCI and draft infrastructure code.
Install mcp-oci
Built from the published package, never by AI.
claude mcp add mcp-oci -- npx -y @dockndevai/mcp-ociRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-oci": {
"args": [
"-y",
"@dockndevai/mcp-oci"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-oci": {
"args": [
"-y",
"@dockndevai/mcp-oci"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-oci": {
"args": [
"-y",
"@dockndevai/mcp-oci"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-oci -- npx -y @dockndevai/mcp-oci{
"mcpServers": {
"mcp-oci": {
"args": [
"-y",
"@dockndevai/mcp-oci"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-oci npx -y @dockndevai/mcp-ociGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-oci block.
About
mcp-oci is a Model Context Protocol server for Oracle Cloud Infrastructure (OCI). It lets an MCP-capable client such as Claude Desktop, Claude Code, Cursor or Copilot discover live OCI resources, map how they relate, and generate reproducible Terraform. Behaviour is controlled by flags, and the default mode is read-only.
Discovery covers compartments, regions and any resource via OCI Resource Search. Terraform generation produces HCL for VCNs, subnets, instances, buckets and compartments, and a dependency graph suggests a provisioning order. Secret-shaped fields are redacted before results are returned. It authenticates with an OCI config file or instance principals and stores no credentials. It suits engineers who want an agent to inspect an Oracle Cloud estate or draft Terraform from it.
Written from the project's README and checked against it.
Tools it gives your assistant
list_compartmentsLists OCI compartments.list_regionsLists OCI regions.search_resourcesSearches live OCI resources through OCI Resource Search.list_compartment_resourcesLists the resources in a compartment.get_resourceReturns details for a single OCI resource.generate_terraformGenerates Terraform for a resource, with faithful HCL for known types.generate_compartment_terraformGenerates a whole-compartment Terraform module with provider variables.build_dependency_graphBuilds nodes and edges plus a suggested provisioning order, dependencies first.
What you need
- An Oracle Cloud Infrastructure (OCI) account
- An OCI config file (~/.oci/config) or instance principals
- Node.js with npx to run the published package
- An MCP-capable client such as Claude Desktop, Claude Code, Cursor or VS Code Copilot
| Setting | Needed | What it is |
|---|---|---|
OCI_Environment variable | Optional | Profile within ~/.oci/config (default DEFAULT). |
OCI_Environment variable | Optional | Access mode: read-only | read-write | admin. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List all compartments, then show every resource in the prod compartment.
- Generate Terraform for VCN ocid1.vcn.oc1.. in my OCI account.
- Build a dependency graph for this compartment and give the provisioning order.
Good to know
- Read-only: all shipped tools only read data.
- read-write and admin modes currently expose no extra tools.
- terraform plan and apply are not shipped yet; OCI_ALLOW_APPLY is reserved for them.
- Some resource types only get annotated Terraform skeletons instead of full HCL.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mcp-oci
All alternatives →Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.
Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.
SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.
Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.
Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.
Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.
Compare with Azure MCP Server, openstatus or SmartBear MCP
mcp-oci: common questions
Does mcp-oci change my Oracle Cloud resources?
Not in the shipped version. All current tools are read-only, and provisioning features are listed on the roadmap but not yet shipped.
How does mcp-oci handle secrets?
Every payload is redacted before it is returned, and secret-shaped fields are replaced with ***REDACTED***. The server also stores no credentials of its own.
Which resource types does Terraform generation support?
The source lists faithful HCL for VCN, subnet, instance, bucket and compartment. Other types get annotated skeletons.
How do I install mcp-oci?
In Claude Code run claude mcp add mcp-oci -- npx -y @dockndevai/mcp-oci. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-oci the official server?
mcp-oci is a community project by dockndevai, not verified by a company domain.
Is mcp-oci free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp-oci safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcp-oci?
Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.
Does mcp-oci work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
