loading…
Search for a command to run...
loading…
Model Context Protocol (MCP) server exposing Oracle Cloud Infrastructure tools, resources and prompts.
Model Context Protocol (MCP) server exposing Oracle Cloud Infrastructure tools, resources and prompts.
Model Context Protocol (MCP) server exposing Oracle Cloud Infrastructure tools, resources and prompts.
oci://compartments etc.oci_analysis_promptBuilt with the official MCP Python SDK and the OCI Python SDK.
git clone https://github.com/karthiksuku/oci-mcp.git
cd oci-mcp
chmod +x install.sh
./install.sh
### Auth Prerequisites
- OCI CLI configured. By default this server reads credentials from `~/.oci/config`.
- Create it with: `oci setup config`
- macOS/Linux: `~/.oci/config`
- Windows: `%USERPROFILE%\.oci\config`
- Override via `OCI_CONFIG_FILE=/path/to/config` or a `.env` file.
# ensure you've run: oci setup config
python oci_mcp_server.py # starts stdio MCP server
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"oci-infrastructure": {
"command": "python",
"args": ["/ABSOLUTE/PATH/oci-mcp/oci_mcp_server.py"],
"env": { "OCI_CONFIG_FILE": "/Users/<you>/.oci/config" }
}
}
}
Open Claude Desktop → Connect to server → select oci-infrastructure.
Grant read-only for discovery (adjust compartment OCIDs and groups):
Allow group MyGroup to read instances in tenancy
Allow group MyGroup to read virtual-network-family in tenancy
Allow group MyGroup to read autonomous-database-family in tenancy
Allow group MyGroup to read objectstorage-namespaces in tenancy
Allow group MyGroup to read buckets in tenancy
Allow group MyGroup to read usage-reports in tenancy
For instance actions:
Allow group MyGroup to manage instance-family in compartment <COMP_OCID>
list_compute_instances(compartment_ocid=None, lifecycle_state=None)get_instance_details(instance_id)instance_action(instance_id, action) — actions: START, STOP, RESET, SOFTRESET, SOFTSTOPlist_autonomous_databases(compartment_ocid=None)list_storage_buckets(compartment_ocid=None)list_compartments()perform_security_assessment(compartment_ocid=None)get_tenancy_cost_summary(start_time_iso, end_time_iso, granularity="DAILY") (experimental; requires Usage API access)See examples/sample_queries.md for ideas.
~/.oci/config by default (created via oci setup config)..env (see .env.example).DEFAULT_COMPARTMENT_OCID to scope queries.MIT
Выполни в терминале:
claude mcp add oci-mcp -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development