io.github.dockndevai/mcp-oci

Official registry Cloud and DevOps

Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.

What can you do with io.github.dockndevai/mcp-oci?

  • Live discovery — compartments, regions, and any resource via OCI Resource Search.
  • Terraform generation — faithful HCL for known types (VCN, subnet, instance, bucket, compartment) and annotated skeletons for the rest; whole-compartment modules with provider variables.
  • Dependency graph — nodes/edges plus a suggested provisioning order (dependencies first).
  • Secrets never reach the model — every payload is redacted before return.
  • Security flags — access modes, compartment/region allowlists, provisioning gate, dry-run, and JSON audit logging (see below).
  • Standard auth — OCI config file (~/.oci/config) or instance principals. No credentials stored by the server.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @dockndevai/mcp-oci
Claude Code
claude mcp add mcp-oci -e 'OCI_PROFILE=<OCI_PROFILE>' -e 'OCI_MODE=<OCI_MODE>' -- npx -y @dockndevai/mcp-oci@0.1.4
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "mcp-oci": {
            "command": "npx",
            "args": [
                "-y",
                "@dockndevai/mcp-oci@0.1.4"
            ],
            "env": {
                "OCI_PROFILE": "<OCI_PROFILE>",
                "OCI_MODE": "<OCI_MODE>"
            }
        }
    }
}

Environment variables

  • OCI_PROFILE Profile within ~/.oci/config (default DEFAULT).
  • OCI_MODE Access mode: read-only | read-write | admin.

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. mcp-oci
  2. Features
  3. Security model
  4. Tools
  5. Quickstart — add to your agent
  6. Configure
  7. Example prompts
  8. Run from source (development)
  9. Develop
  10. Roadmap
  11. Publishing
  12. License

mcp-oci

A Model Context Protocol server for Oracle Cloud Infrastructure (OCI). It gives an MCP-capable client (Claude Desktop, Claude Code, Cursor, Copilot, …) the ability to discover live OCI resources, map how they relate, and generate reproducible Terraform — with behaviour controlled entirely by flags.

Think of it as a Playwright-MCP for your cloud: instead of rebuilding infrastructure knowledge by hand, the model can ask "show all VCNs in the prod compartment" and "generate Terraform for this compartment" and get structured, secret-free answers.

Features

  • Live discovery — compartments, regions, and any resource via OCI Resource Search.
  • Terraform generation — faithful HCL for known types (VCN, subnet, instance, bucket, compartment) and annotated skeletons for the rest; whole-compartment modules with provider variables.
  • Dependency graph — nodes/edges plus a suggested provisioning order (dependencies first).
  • Secrets never reach the model — every payload is redacted before return.
  • Security flags — access modes, compartment/region allowlists, provisioning gate, dry-run, and JSON audit logging (see below).
  • Standard auth — OCI config file (~/.oci/config) or instance principals. No credentials stored by the server.

Security model

ConcernFlagDefaultEffect
What can the server do?OCI_MODEread-onlyAll shipped tools are read-only. read-write/admin are reserved for future provisioning and currently expose no extra tools.
Which compartments are in scope?OCI_COMPARTMENT_ALLOWLIST(all)When set, operations on other compartments are refused.
Which regions are reachable?OCI_REGION_ALLOWLIST(configured region)When set, only these regions may be targeted.
Can it run terraform apply?OCI_ALLOW_APPLYfalseReserved gate for provisioning (not yet shipped).
Preview without executingOCI_DRY_RUNfalseFor future write tools: validate + log intent without executing.
Audit trailOCI_AUDIT_LOGtrueEmits a JSON line to stderr per guarded operation.
Secret redaction(always on)—Secret-shaped fields are replaced with ***REDACTED*** before any result is returned.

Tools

Discovery (read): list_compartments, list_regions, search_resources, list_compartment_resources, get_resource

Terraform (read): generate_terraform, generate_compartment_terraform, build_dependency_graph

Quickstart — add to your agent

Published on npm as @dockndevai/mcp-oci. No clone or build needed — your MCP client runs it on demand with npx. Start in read-only mode; see .env.example for every variable and docs/CLIENTS.md for the full per-client guide.

Claude Code (CLI)

claude mcp add oci -e OCI_PROFILE="DEFAULT" -e OCI_MODE="read-only" -- npx -y @dockndevai/mcp-oci

Claude Desktop · Cursor · Windsurf — same block in claude_desktop_config.json, .cursor/mcp.json, or ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "oci": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-oci"
      ],
      "env": {
        "OCI_PROFILE": "DEFAULT",
        "OCI_MODE": "read-only"
      }
    }
  }
}

OpenAI Codex CLI — in ~/.codex/config.toml:

[mcp_servers.oci]
command = "npx"
args = ["-y", "@dockndevai/mcp-oci"]
env = { OCI_PROFILE = "DEFAULT", OCI_MODE = "read-only" }

VS Code (GitHub Copilot, Agent mode) — in .vscode/mcp.json:

{
  "servers": {
    "oci": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-oci"
      ],
      "env": {
        "OCI_PROFILE": "DEFAULT",
        "OCI_MODE": "read-only"
      }
    }
  }
}

Configure

Point it at a standard OCI config profile. For safety, use an IAM user/policy with read-only (inspect/read) permissions on the compartments you want the agent to see.

Example prompts

  • "List all compartments, then show every resource in the prod compartment."
  • "Generate Terraform for VCN ocid1.vcn.oc1..…."
  • "Build a dependency graph for compartment … and tell me the provisioning order."

Run from source (development)

Prefer the published package above. To run from a clone:

npm install
npm run build
node dist/index.js   # with the environment variables set

Develop

npm run dev        # watch mode
npm test           # security policy + terraform generation + graph + redaction
npm run typecheck

Roadmap

  • terraform plan / apply execution behind read-write/admin + OCI_ALLOW_APPLY.
  • More resource-type mappers (load balancers, databases, DRGs, IAM policies).
  • Cross-environment drift comparison.

Publishing

This server ships a server.json for the official MCP registry and an mcpName for npm ownership validation. See PUBLISHING.md for publishing to npm and listing on the MCP registry, Smithery, Glama, Cursor, and PulseMCP.

License

MIT

Frequently asked questions

What is io.github.dockndevai/mcp-oci?

Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.

How do I install io.github.dockndevai/mcp-oci?

It runs on your machine. In Claude Code: claude mcp add mcp-oci -e 'OCI_PROFILE=<OCI_PROFILE>' -e 'OCI_MODE=<OCI_MODE>' -- npx -y @dockndevai/mcp-oci@0.1.4. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.dockndevai/mcp-oci need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.dockndevai/mcp-oci open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.dockndevai/mcp-oci?

It is published by dockndevai. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.