원클릭으로
oci-mcp
Oracle Cloud Infrastructure MCP server providing comprehensive cloud management capabilities through the Model Context Protocol.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Oracle Cloud Infrastructure MCP server providing comprehensive cloud management capabilities through the Model Context Protocol.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
OCI Cost Management and FinOps capabilities
High-level workflow skills for OCI operations
OCI Compute instance management capabilities
OCI Database Management capabilities
OCI Network (VCN, Subnets, Security Lists) management capabilities
OCI Observability and Monitoring capabilities
SOC 직업 분류 기준
| name | oci-mcp |
| version | 2.5.0 |
| description | Oracle Cloud Infrastructure MCP server providing comprehensive cloud management capabilities through the Model Context Protocol. |
| transport | stdio |
| tools | 52 |
This skill provides AI agents with comprehensive Oracle Cloud Infrastructure management capabilities through the Model Context Protocol. It follows Anthropic's best practices for code execution with MCP, featuring progressive disclosure, context efficiency, and high-level workflow skills.
oci_list_domains()
Returns: compute, network, database, security, cost, observability
oci_search_tools(query="instances", detail_level="summary")
oci_ping()
oci_compute_list_instances({
"compartment_id": "ocid1.compartment...",
"lifecycle_state": "RUNNING",
"limit": 20,
"response_format": "markdown"
})
All tools follow the pattern: oci_{domain}_{action}_{resource}
Examples:
oci_compute_list_instances - List compute instancesoci_network_get_vcn - Get VCN detailsoci_security_audit - Run security audit| Domain | Tools | Description |
|---|---|---|
| discovery | 4 | Tool discovery, server info, cache stats |
| compute | 5 | Instance management and metrics |
| network | 5 | VCN, Subnet, Security List management |
| database | 5 | Autonomous DB, DB Systems, MySQL |
| security | 6 | IAM, Cloud Guard, policy management |
| cost | 5 | Cost analysis, budgets, FinOps |
| observability | 6 | Metrics, Logs, Alarms |
| skills | 1 | High-level workflow skills |
| Tool | Description |
|---|---|
oci_ping | Server health check |
oci_list_domains | List available capability domains |
oci_search_tools | Search for tools by keyword |
oci_get_cache_stats | Get cache performance statistics |
| Tool | Tier | Description |
|---|---|---|
oci_compute_list_instances | 2 | List compute instances with filtering |
oci_compute_get_instance | 2 | Get instance details with metrics |
oci_compute_start_instance | 4 | Start a stopped instance |
oci_compute_stop_instance | 4 | Stop a running instance |
oci_compute_restart_instance | 4 | Restart an instance |
| Tool | Tier | Description |
|---|---|---|
oci_network_list_vcns | 2 | List Virtual Cloud Networks |
oci_network_get_vcn | 2 | Get VCN details |
oci_network_list_subnets | 2 | List subnets in a VCN |
oci_network_list_security_lists | 2 | List security lists |
oci_network_analyze_security | 3 | Analyze security configuration |
| Tool | Tier | Description |
|---|---|---|
oci_database_list_autonomous | 2 | List Autonomous Databases |
oci_database_get_autonomous | 2 | Get ADB details |
oci_database_list_db_systems | 2 | List DB Systems |
oci_database_get_db_system | 2 | Get DB System details |
oci_database_list_mysql | 2 | List MySQL instances |
| Tool | Tier | Description |
|---|---|---|
oci_security_list_users | 2 | List IAM users |
oci_security_get_user | 2 | Get user details |
oci_security_list_groups | 2 | List IAM groups |
oci_security_list_policies | 2 | List IAM policies |
oci_security_list_cloud_guard_problems | 2 | List Cloud Guard problems |
oci_security_audit | 3 | Comprehensive security audit |
| Tool | Tier | Description |
|---|---|---|
oci_cost_get_summary | 2 | Get cost summary for period |
oci_cost_by_service | 2 | Get cost by service |
oci_cost_by_compartment | 2 | Get cost by compartment |
oci_cost_monthly_trend | 2 | Month-over-month trends |
oci_cost_detect_anomalies | 3 | Detect cost anomalies |
| Tool | Tier | Description |
|---|---|---|
oci_observability_get_instance_metrics | 3 | Get instance metrics |
oci_observability_execute_log_query | 3 | Execute Log Analytics query |
oci_observability_list_alarms | 2 | List monitoring alarms |
oci_observability_get_alarm_history | 2 | Get alarm history |
oci_observability_list_log_sources | 2 | List log sources |
oci_observability_overview | 3 | Observability overview |
| Tool | Tier | Description |
|---|---|---|
oci_skill_troubleshoot_instance | 3 | Comprehensive instance troubleshooting |
For agents using shorter tool names:
| Alias | Canonical Tool |
|---|---|
list_instances | oci_compute_list_instances |
start_instance | oci_compute_start_instance |
stop_instance | oci_compute_stop_instance |
restart_instance | oci_compute_restart_instance |
get_instance_metrics | oci_observability_get_instance_metrics |
| Tier | Latency | Description | Risk |
|---|---|---|---|
| 1 | <100ms | Cached/instant | None |
| 2 | 100ms-1s | Single API call | None |
| 3 | 1s-30s | Heavy analytics | Low |
| 4 | Variable | Mutations | Medium-High |
The server supports multiple authentication methods:
~/.oci/config| Variable | Required | Default | Description |
|---|---|---|---|
OCI_CONFIG_FILE | No | ~/.oci/config | Path to OCI config file |
OCI_CLI_PROFILE | No | DEFAULT | Profile name |
OCI_REGION | No | From config | Region override |
COMPARTMENT_OCID | Yes | - | Default compartment |
ALLOW_MUTATIONS | No | false | Enable write operations |
OCI_MCP_TRANSPORT | No | stdio | Transport mode |
OCI_MCP_LOG_LEVEL | No | INFO | Logging level |
All data-returning tools support format selection:
Human-readable, concise output optimized for LLM context:
oci_compute_list_instances(response_format="markdown")
Machine-readable, complete data for programmatic processing:
oci_compute_list_instances(response_format="json")
All list operations support pagination:
oci_compute_list_instances({
"compartment_id": "ocid1.compartment...",
"limit": 20,
"offset": 0
})
Check the has_more flag in the response to determine if more results exist.
oci_list_domains() or oci_search_tools() to find relevant toolsresponse_format="markdown" for exploratory queries to save contextresponse_format="json" when processing data programmaticallyhas_more flagAll tools return structured errors with:
Example error:
## Error
**Category:** not_found
**Message:** Instance not found
**Suggestion:** Verify the OCID is correct and the resource exists in the specified region.
ALLOW_MUTATIONS=trueThe server includes tiered caching optimized for OCI data patterns:
| Cache Tier | TTL | Use Case |
|---|---|---|
static | 1 hour | Shapes, regions, services |
config | 5 min | Compartments, VCNs |
operational | 1 min | Instance status, metrics |
metrics | 30 sec | Real-time monitoring |
Use oci_get_cache_stats to monitor cache performance.
Skills are high-level workflows that combine multiple tools:
oci_skill_troubleshoot_instance({
"instance_id": "ocid1.instance...",
"response_format": "markdown"
})
| Aspect | Tools | Skills |
|---|---|---|
| Scope | Single operation | Multi-step workflow |
| Logic | Direct API call | Expert knowledge encoded |
| Output | Raw data | Analysis + recommendations |
| Duration | <1s typically | 1-30s |
See the skills/ directory for examples. Key patterns:
SkillExecutor for progress trackingexecutor.call_tool()executor.analyze() for LLM-powered analysis| Component | Description |
|---|---|
SkillExecutor | Coordinates tool calls with timing and progress |
AgentContext | Carries state between skill steps |
SamplingClient | Enables LLM analysis during skill execution |
SkillProgress | Tracks step completion percentages |
For multi-step skills that need to maintain state:
from mcp_server_oci.skills import AgentContext
context = AgentContext(skill_name="troubleshoot")
context.add_finding("cpu_high", {"value": 95, "threshold": 80})
context.add_recommendation("Consider scaling up the instance")
For skills that need to share findings across agent sessions:
from mcp_server_oci.core import share_finding, get_shared_findings
# Share a finding
await share_finding(
agent_id="troubleshooter",
category="performance",
severity="warning",
message="High CPU on instance xyz"
)
# Retrieve shared findings
findings = await get_shared_findings(category="performance")
| Version | Date | Changes |
|---|---|---|
| 2.4.0 | 2025-12-31 | Batch caching, agent catalog integration, tool registry |
| 2.3.0 | 2025-12-31 | Skills framework, caching, shared memory, code quality fixes |
| 2.2.0 | 2025-12-30 | Tool aliases, observability enhancements |
| 2.0.0 | 2025-12-28 | FastMCP migration, progressive disclosure |