mcp-oci
mcp-oci
Model Context Protocol 서버로 Oracle Cloud Infrastructure (OCI) 용입니다. MCP를 지원하는 클라이언트(Claude Desktop, Claude Code, Cursor, Copilot, …)에게 실시간 OCI 리소스 검색, 리소스 간 관계 매핑, 재현 가능한 Terraform 생성 기능을 제공하며, 동작은 전적으로 플래그로 제어됩니다.
클라우드를 위한 Playwright-MCP라고 생각하면 됩니다. 인프라 지식을 수동으로 재구축하는 대신, 모델이 "prod 컴파트먼트의 모든 VCN을 표시해 줘" 라고 묻거나 "이 컴파트먼트에 대한 Terraform을 생성해 줘" 라고 요청하면 구조화되고 비밀 값이 없는 답변을 얻을 수 있습니다.
기능
실시간 검색 — OCI Resource Search를 통한 컴파트먼트, 리전 및 모든 리소스.
Terraform 생성 — 알려진 유형(VCN, 서브넷, 인스턴스, 버킷, 컴파트먼트)에 대한 충실한 HCL과 나머지에 대한 주석이 달린 스켈레톤; 공급자 변수가 포함된 전체 컴파트먼트 모듈.
종속성 그래프 — 노드/엣지와 제안된 프로비저닝 순서(종속성 우선).
비밀 값이 모델에 도달하지 않음 — 모든 페이로드는 반환 전에 편집됩니다.
보안 플래그 — 액세스 모드, 컴파트먼트/리전 허용 목록, 프로비저닝 게이트, 드라이런 및 JSON 감사 로깅(아래 참조).
표준 인증 — OCI 구성 파일(
~/.oci/config) 또는 인스턴스 프린시펄. 서버는 자격 증명을 저장하지 않습니다.
Related MCP server: oci-mcp-server
보안 모델
항목 | 플래그 | 기본값 | 효과 |
서버가 수행할 수 있는 작업? |
|
| 제공되는 모든 도구는 읽기 전용입니다. |
범위에 포함되는 컴파트먼트? |
| (전체) | 설정하면 다른 컴파트먼트에 대한 작업이 거부됩니다. |
접근 가능한 리전? |
| (구성된 리전) | 설정하면 이 리전만 대상으로 지정할 수 있습니다. |
|
|
| 프로비저닝을 위한 예약 게이트(아직 제공되지 않음). |
실행 없이 미리 보기 |
|
| 향후 쓰기 도구용: 실행하지 않고 의도를 검증하고 기록합니다. |
감사 추적 |
|
| 보호된 작업마다 stderr에 JSON 라인을 출력합니다. |
비밀 값 편집 | (항상 켜짐) | — | 비밀 값 형태의 필드는 결과가 반환되기 전에 |
도구
검색 (읽기): list_compartments, list_regions, search_resources, list_compartment_resources, get_resource
Terraform (읽기): generate_terraform, generate_compartment_terraform, build_dependency_graph
빠른 시작 — 에이전트에 추가
npm에 @dockndevai/mcp-oci로 게시되어 있습니다. 클론이나 빌드가 필요 없습니다. MCP 클라이언트가 npx로 필요 시 실행합니다. read-only 모드로 시작하세요; 모든 변수는 .env.example을, 클라이언트별 전체 가이드는 docs/CLIENTS.md를 참조하세요.
Claude Code (CLI)
claude mcp add oci -e OCI_PROFILE="DEFAULT" -e OCI_MODE="read-only" -- npx -y @dockndevai/mcp-ociClaude Desktop · Cursor · Windsurf — claude_desktop_config.json, .cursor/mcp.json 또는 ~/.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 — ~/.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) — .vscode/mcp.json에:
{
"servers": {
"oci": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-oci"
],
"env": {
"OCI_PROFILE": "DEFAULT",
"OCI_MODE": "read-only"
}
}
}
}구성
표준 OCI 구성 프로필을 가리키세요. 안전을 위해 에이전트가 보려는 컴파트먼트에 대해 읽기 전용(inspect/read) 권한이 있는 IAM 사용자/정책을 사용하세요.
예시 프롬프트
"모든 컴파트먼트를 나열한 다음
prod컴파트먼트의 모든 리소스를 표시해 줘.""VCN
ocid1.vcn.oc1..…에 대한 Terraform을 생성해 줘.""컴파트먼트
…에 대한 종속성 그래프를 만들고 프로비저닝 순서를 알려줘."
소스에서 실행 (개발)
위의 게시된 패키지를 권장합니다. 클론에서 실행하려면:
npm install
npm run build
node dist/index.js # with the environment variables set개발
npm run dev # watch mode
npm test # security policy + terraform generation + graph + redaction
npm run typecheck로드맵
read-write/admin+OCI_ALLOW_APPLY뒤의terraform plan/apply실행.더 많은 리소스 유형 매퍼(로드 밸런서, 데이터베이스, DRG, IAM 정책).
환경 간 드리프트 비교.
게시
이 서버는 공식 MCP 레지스트리용 server.json과 npm 소유권 검증용 mcpName을 제공합니다. npm 게시 및 MCP 레지스트리, Smithery, Glama, Cursor, PulseMCP 등록에 대해서는 PUBLISHING.md 를 참조하세요.
라이선스
MIT
Available Tools
8 toolsbuild_dependency_graphBuild a resource dependency graphBRead-onlyIdempotent
Discover a compartment's resources and return a node/edge dependency graph plus a suggested provisioning order (dependencies first).
Inputs: compartmentId (required).
generate_compartment_terraformGenerate Terraform for a whole compartmentARead-onlyIdempotent
Discover every resource in a compartment and emit a Terraform module (provider variables + one block per resource) to reproduce it. Unrecognised types become annotated skeletons.
Inputs: compartmentId (required).
generate_terraformGenerate Terraform for a resourceARead-onlyIdempotent
Generate a Terraform (HCL) resource block for a single OCI resource by type and OCID. Fetches the resource's attributes and maps them to the matching oci_* resource.
Inputs: ocid (required), resourceType (required), compartmentId.
get_resourceGet resource detailsARead-onlyIdempotent
Fetch detailed attributes for a resource by type and OCID. Known types (Vcn, Subnet, Instance) return full attributes; others return the identifier. Secrets are redacted.
Inputs: ocid (required), resourceType (required), compartmentId.
list_compartment_resourcesList all resources in a compartmentBRead-onlyIdempotent
Enumerate every resource in a compartment (via Resource Search).
Inputs: compartmentId (required).
list_compartmentsList compartmentsARead-onlyIdempotent
List compartments in the tenancy (recursively). Compartments outside the allowlist are filtered out.
Inputs: rootCompartmentId.
list_regionsList subscribed regionsARead-onlyIdempotent
List the regions this tenancy is subscribed to.
Inputs: no named parameters.
search_resourcesSearch resourcesARead-onlyIdempotent
Search tenancy resources using OCI Resource Search. Provide either a structured query (e.g. "query instance resources where displayName =~ 'prod'") or free text.
Inputs: query (required), freeText.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes, but search_resources and list_compartment_resources both enumerate resources, and generate_compartment_terraform and build_dependency_graph both discover compartment resources, which could cause slight confusion despite clear descriptions.
All tool names follow a consistent snake_case verb_noun pattern (list_*, get_*, search_*, generate_*, build_*), making the set highly predictable and easy to navigate.
With 8 tools, the set is well-scoped for OCI infrastructure discovery and Terraform generation, covering essential operations without unnecessary bloat.
The surface covers discovery, detailed inspection, Terraform generation, and dependency graphing, but lacks direct resource management operations (create/update/delete) and a tool to list all resource types, which could limit some workflows.
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
CloudOracle - 14-tool multi-cloud compliance MCP: AWS, Azure, GCP posture, IAM, configs.
IaC, CI and dependency security review for coding agents: local scan CLI plus hosted OAuth MCP.
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAutomatically discovers and tests MCP services for security vulnerabilities including command injection, SQL injection, SSRF, path traversal, and sensitive data exposure with detailed reports and remediation guidance.1-
- AlicenseNot gradedqualityDmaintenanceEnables natural-language access to Oracle Cloud Infrastructure resources, allowing users to query compute instances, OKE clusters, networking, and Object Storage via MCP tools.MIT
- FlicenseNot gradedqualityBmaintenanceEnables interaction with Oracle Cloud Infrastructure through the MCP protocol. Supports dynamic profile selection and provides 85 tools for managing compute, databases, networking, IAM, storage, load balancers, OKE, monitoring, and cost management.-
- AlicenseAqualityDmaintenanceMCP server for Oracle Cloud Infrastructure (OCI) that exposes Compute, Networking, and Object Storage operations to MCP clients, with support for multiple authentication modes, read-only enforcement, and per-call region overrides.18MIT