OCI OPSI Server MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/adibirzu/mcp_oci_opsi
cd mcp_oci_opsi

Then follow the repository README for any remaining dependency or build steps before continuing.

2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add oci-opsi -- node "<FULL_PATH_TO_MCP_OCI_OPSI>/dist/index.js"

Replace <FULL_PATH_TO_MCP_OCI_OPSI>/dist/index.js with the actual folder you prepared in step 1.

README.md

Comprehensive monitoring and analysis of Oracle Cloud Infrastructure databases

MCP OCI OPSI Server

Version 3.0 | FastMCP 2.0 | 13 DBA Skills | OAuth + API Key Auth | Multi-Tenancy

MCP (Model Context Protocol) server for Oracle Cloud Infrastructure (OCI) Operations Insights. This server provides comprehensive Oracle database monitoring and analysis capabilities through Claude Desktop, Claude Code, ChatGPT, or any MCP-compatible client (stdio or HTTP transports).

Quick Links: Installation | Quick Start | Startup & Transports | Prompts & Playbooks | OCI VM Deployment | API Reference

Guides: Skills Guide | FastMCP v3 Guide | OCI Deployment Guide


Standards

  • docs/OCI_MCP_SERVER_STANDARD.md

Screenshots

Fleet Summary - Instant Overview

Get a complete overview of your database fleet with zero API calls:

Fleet Summary

Fleet overview showing database counts, types, and compartment distribution - instant response from local cache

Database Search Results

Search and discover databases across your tenancy instantly:

Database List

Comprehensive database list with OCIDs, types, and compartments - cached for instant queries

Database Details

Get detailed information about any specific database:

Database Details

Detailed database information including OCID, type, compartment, and status - instant lookup from cache


What's New in v3.0

Feature Description
OCI IAM OAuth Enterprise authentication with OCI Identity Domains
API Key Fallback Seamless fallback to ~/.oci/config for development
MCP Resources 10 read-only data endpoints for efficient access
MCP Prompts 15 guided DBA workflow templates
Server Composition 4 modular sub-servers with tool prefixes
DBA Skills 13 specialized skills for token-efficient workflows
Di[Link to Secure Variable: OPENAI_API_KEY] Storage No Redis required - encrypted file storage
OCI VM Ready Terraform scripts for automated deployment
Async Tasks Background cache builds (cache_start_cache_build_task) with polling
Prebuilt Playbooks admin_get_troubleshooting_playbook and admin_list_prompts for fast LLM guidance

Startup & Transports

  • stdio (default): python -m mcp_oci_opsi (best for Claude Desktop/Code, ChatGPT MCP).
  • HTTP: MCP_TRANSPORT=http MCP_PORT=8000 python -m mcp_oci_opsi (for remote clients).
  • SSE / Streamable HTTP: MCP_TRANSPORT=sse|streamable-http MCP_PORT=8000 python -m mcp_oci_opsi (if supported by your FastMCP runtime).
  • Version switch: MCP_VERSION=v2 (FastMCP server). MCP_VERSION=v3 runs a local bootstrap/CLI (not an MCP server).
  • Logging: Set LOG_LEVEL=DEBUG for verbose startup; OCI SDK logs default to WARNING.
  • Timeouts: OCI_CLIENT_TIMEOUT, OPSI_CLIENT_TIMEOUT, DBM_CLIENT_TIMEOUT (seconds) bound per-call latency; MCP_CLIENT_TIMEOUT_MS caps tool invocations.

Architecture Overview

High-Level Architecture

                                    ┌─────────────────────────────────────┐
                                    │         MCP Clients                 │
                                    │  (Claude Desktop/Code, ChatGPT)     │
                                    └──────────────┬──────────────────────┘
                                                   │
                                    MCP Protocol (stdio/HTTP)
                                                   │
┌──────────────────────────────────────────────────┴──────────────────────────────────────────────────┐
│                                                                                                      │
│                              MCP OCI OPSI SERVER v3.0                                               │
│                                                                                                      │
│  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│  │                                    FastMCP 2.0 Core                                            │ │
│  │                                                                                                │ │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐  │ │
│  │  │   cache_*   │  │   opsi_*    │  │    dbm_*    │  │   admin_*   │  │    Skills Engine    │  │ │
│  │  │   8 tools   │  │   9 tools   │  │   8 tools   │  │  10 tools   │  │    13 DBA skills    │  │ │
│  │  │  4 resources│  │  1 resource │  │  2 resources│  │  3 resources│  │                     │  │ │
│  │  │             │  │             │  │             │  │             │  │  • Fleet Overview   │

Tools (3)

cache_start_cache_build_taskInitiates a background cache build task for OCI data.
admin_get_troubleshooting_playbookRetrieves a guided DBA troubleshooting playbook.
admin_list_promptsLists available DBA workflow prompts.

Environment Variables

MCP_TRANSPORTTransport protocol (stdio, http, sse)
MCP_PORTPort for HTTP/SSE transport
LOG_LEVELLogging verbosity level
OCI_CLIENT_TIMEOUTTimeout for OCI SDK calls

Configuration

claude_desktop_config.json
{"mcpServers": {"oci-opsi": {"command": "python", "args": ["-m", "mcp_oci_opsi"], "env": {"OCI_CONFIG_FILE": "~/.oci/config"}}}}

Try it

Give me a fleet summary of all my Oracle databases.
Run the troubleshooting playbook for my production database.
List all databases in the current compartment.
What are the recommended DBA workflows for performance tuning?

Frequently Asked Questions

What are the key features of OCI OPSI Server?

Comprehensive Oracle database fleet monitoring. 13 specialized DBA skills for token-efficient workflows. 15 guided DBA workflow templates. Background cache builds with polling. Enterprise authentication via OCI IAM OAuth.

What can I use OCI OPSI Server for?

Performance troubleshooting for multi-tenant database environments. Automated capacity planning across OCI tenancies. Executing standardized DBA workflows via natural language. Instant discovery and status lookup of database assets.

How do I install OCI OPSI Server?

Install OCI OPSI Server by running: python -m mcp_oci_opsi

What MCP clients work with OCI OPSI Server?

OCI OPSI Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep OCI OPSI Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare