MCP server for Oracle Cloud Infrastructure API Gateway management

MCP server for Oracle Cloud Infrastructure API Gateway management

oci-mcp-server•byrohit1223

A Python MCP server that exposes OCI API Gateway tools over stdio transport, with programmatic and LLM-powered client examples.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Lists API Gateways in a specified OCI compartment through the list_gateways_tool.
  • •Retrieves details for a specific API Gateway through the get_gateway_tool.
  • •Uses MCP stdio transport for integration with LLM agents and other clients.
  • •Includes a LlamaIndex/Ollama client for natural language interaction with OCI API Gateway resources.

BEST FOR

  • •Querying and listing OCI API Gateways from an MCP-capable editor using natural language.
  • •Testing and debugging the MCP server's gateway tools directly with Python code instead of an AI agent.

ABOUT OCI-MCP-SERVER

MCP server for Oracle Cloud Infrastructure API Gateway management is cataloged as an MCP server attributed to rohit1223. A Python MCP server that exposes OCI API Gateway tools over stdio transport, with programmatic and LLM-powered client examples. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Oracle Cloud Infrastructure API Gateway management are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which tools does the MCP server expose?

It exposes list_gateways_tool for listing gateways in a compartment and get_gateway_tool for retrieving details of a specific gateway.

How does the server connect to clients?

It runs as an MCP server using stdio transport.

Upstream README

View this exact version on GitHub

README.md · b134aef8d6b3 · Fetched 2026-11-13 13:16:43 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

oci-mcp-server

A Python MCP (Multi-Client Protocol) server for Oracle Cloud Infrastructure (OCI) API Gateway management, with both programmatic and LLM-powered clients.


Features

  • List API Gateways in a given OCI compartment.
  • Get details for a specific API Gateway.
  • MCP stdio transport for easy integration with LLM agents and other clients.
  • LlamaIndex/Ollama client for natural language interaction with OCI API Gateway resources.

Quickstart

1. Prerequisites

  • Python 3.11 (required)
  • uv (fast Python package/dependency manager)
  • OCI account with API Gateway access
  • OCI session authentication files (~/.oci/sessions/DEFAULT/token and oci_api_key.pem)

2. Install uv

curl -Ls https://astral.sh/uv/install.sh | sh

Or, from PyPI:

# With pip.
pip install uv
# Or pipx.
pipx install uv

If installed via the standalone installer, uv can update itself to the latest version:

uv self-update

Or see uv installation docs for other methods.

3. Create and Activate a Virtual Environment

uv venv --python 3.11
source .venv/bin/activate

4. Install Dependencies

uv pip install -r pyproject.toml

Or, if you want to use uv directly:

uv pip install -e .

Cursor & MCP Integration

5. Install Cursor

Cursor is an AI-powered code editor that can natively interact with MCP servers.

To install Cursor:

  • Download and install Cursor from the official website for your platform (macOS, Windows, Linux).
  • Follow the installation instructions for your OS.

6. Update your mcp.json configuration

To connect Cursor to your custom MCP server, you need to update or create an mcp.json file in your project root. Use the provided template in src/mcp_template.json as a starting point.

Steps

  1. Open Cursor Settings by navigating to Cursor > Settings... > Cursor Settings

  2. Select MCP > + Add new global MCP server

You should also be able to edit mcp.json from vi ~/.cursor/mcp.json

Steps:

  1. Copy the content of src/mcp_template.json to ~/.cursor/mcp.json (or to mcp.json from the editor):

  2. Edit mcp.json and update the paths:

    • Replace <path to Python> with the absolute path to your Python 3.11 executable if using a virtual environment).
    • Replace <path to server.py> with the absolute path to your server.py script.
  3. Save the file. Cursor will now be able to discover and connect to your MCP server.


Configuration

Edit src/config.py to set your OCI compartment and gateway OCIDs, region, and profile as needed:

PROFILE_NAME = 'DEFAULT'
REGION = 'ap-mumbai-1'
SERVICE_ENDPOINT = '<SERVICE ENDPOINT>'
COMPARTMENT_ID = '<COMPARTMENT_ID>'
GATEWAY_ID = '<GATEWAY_ID>' # For Programmatic Client

You must have valid OCI session files in ~/.oci/sessions/DEFAULT/.

You can do so by something like this oci session authenticate --tenancy-name <TENANCY_NAME> --profile-name DEFAULT --region $REGION


Running the MCP Server

From the project root: (I have found that its better to run the server in a separate terminal)

python src/server.py

This will start the MCP server using stdio transport, exposing the following tools:

  • list_gateways_tool(compartment_id)
  • get_gateway_tool(gateway_id)

Cursor Client (Agent Mode)

You do not need to run the MCP server for Cursor. As Cursor Agent will run it from the server resource provided in mcp.json

See src/mcp_template.json for an example MCP server config:

{
    "mcpServers": {
        "oci_api_gateway": { 
            "command": "<absolute path to Python (preferably from .venv)>",
            "args": [
                "<absolute path to server.py>"
            ]
        }
    }
}

In the Cursor editor, you can now interact with the MCP server using natural language queries.

For example, to list all the gateways in a specific compartment, you can type:

Example:

list all the gateways in ocid1.compartment.oc1..aaaaaaaai2zzsg.............................m4pjq

The Cursor agent will process your request and return the results from the MCP server.

Programmatic Client

The Programmatic Client allows you to test and interact with your custom MCP tools directly using Python code, without involving an AI agent. It's useful for verifying tool functionality and debugging server responses in a straightforward, scriptable way.

See src/client_stdio.py for a simple example:

python src/client_stdio.py

This will:

  • Connect to the MCP server
  • List available tools
  • Call the list_gateways_tool and get_gateway_tool methods and print results

WIP: LlamaIndex + Ollama Client

The LlamaIndex + Ollama Client is a work in progress (WIP) that aims to enable natural language interaction with your MCP tools using an self hosted LLM agent

See src/client_llama_react.py for an advanced example using LlamaIndex and Ollama (Llama 3.2):

  • Make sure you have Ollama running locally with the llama3.2 model.
  • Edit the server_params path in client_llama_react.py if needed.
python src/client_llama_react.py

This will:

  • Connect to the MCP server
  • Wrap the tools for LlamaIndex
  • Run a natural language query using the LLM

Development

  • All source code is in the src/ directory.
  • Dependencies are managed via pyproject.toml.
  • To add new tools, edit src/server.py and implement logic in src/gateway_services.py(for gateway resources).

Troubleshooting

  • Ensure your OCI session files are present and valid.
  • Use Python 3.11 and the provided virtual environment.
  • For LlamaIndex/Ollama, ensure the Ollama server is running and accessible.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Oracle Cloud Infrastructure API Gateway management from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/oci-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps