OCI Pricing

Oracle Cloud Infrastructure pricing data with cost calculators and comparisons

2MITcloud

Install

Config snippet generator goes here (5 client tabs)

README

# OCI Pricing MCP Server

A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that provides Oracle Cloud Infrastructure pricing data to AI assistants like Claude.

> **Important Note:** This server provides pricing data from Oracle's public pricing API and bundled data. We cannot guarantee that AI assistants will always interpret pricing correctly or identify the absolute cheapest options. Always verify pricing on [Oracle's official price list](https://www.oracle.com/cloud/price-list/) before making decisions. All API calls are free of charge (no authentication required).

## Why This Exists

AWS, Azure, and GCP all have pricing MCP servers. OCI did not - until now.

| Provider | Pricing MCP | Type |
|----------|-------------|------|
| AWS | [aws-pricing-mcp-server](https://awslabs.github.io/mcp/servers/aws-pricing-mcp-server) | Official |
| Azure | [azure-pricing-mcp](https://github.com/charris-msft/azure-pricing-mcp) | Community |
| GCP | [gcp-cost-mcp-server](https://github.com/nozomi-koborinai/gcp-cost-mcp-server) | Community |
| OCI | **oci-pricing-mcp** | Community |

### Example: "How much does a 4 OCPU, 32GB VM cost on OCI?"

**You ask Claude:**
> What's the monthly cost for a VM with 4 OCPUs and 32GB RAM on OCI?

**Claude responds (using this MCP):**
```
For a VM.Standard.E5.Flex with 4 OCPUs and 32GB RAM:

  OCPU cost:    4 OCPUs × $0.03/hr = $0.12/hr
  Memory cost:  32 GB × $0.002/hr  = $0.064/hr
  Total hourly: $0.184/hr

  Monthly cost (730 hrs): $134.32

For comparison, the Arm-based A1 shape would be significantly cheaper:

  A1 total:     4 × $0.01 + 32 × $0.0015 = $0.088/hr
  Monthly:      $64.24 (52% savings)
```

### Example: "Compare OCI vs AWS for data egress"

**You ask Claude:**
> How much would I save on OCI vs AWS for 5TB of monthly data egress?

**Claude responds (using this MCP):**
```
Data Egress Cost Comparison (5 TB/month):

  OCI:
    First 10 TB free → $0.00

  AWS:
    First 10 GB: free
    Next 9.99 TB @ $0.09/GB → ~$450/month

  Monthly savings with OCI: $450 (100% savings)

OCI includes 10 TB of free outbound data transfer monthly,
making it significantly more cost-effective for data-heavy workloads.
```

## Installation

### Quick Install (Recommended)

```bash
claude mcp add oci-pricing -- npx oci-pricing-mcp
```

### From Source

```bash
git clone https://github.com/jasonwilbur/oci-pricing-mcp.git
cd oci-pricing-mcp
npm install
npm run build
claude mcp add oci-pricing -- node /path/to/oci-pricing-mcp/dist/index.js
```

## Available Tools

### Core Tools

| Tool | Description |
|------|-------------|
| `get_pricing` | Get pricing for any OCI resource by service/type |
| `list_services` | List all OCI services with pricing categories |
| `compare_regions` | Compare pricing across regions (OCI has consistent global pricing) |
| `list_regions` | List all available OCI regions |
| `calculate_monthly_cost` | Estimate monthly spend for a configuration |
| `quick_estimate` | Get cost estimates for common deployment presets |

### Compute Tools

| Tool | Description |
|------|-------------|
| `list_compute_shapes` | List VM shapes (E4, E5, A1, GPU, etc.) with pricing |
| `get_compute_shape_details` | Get detailed info for a specific shape |
| `compare_compute_shapes` | Compare pricing between shapes |

### Storage Tools

| Tool | Description |
|------|-------------|
| `list_storage_options` | Block, object, file, archive storage pricing |
| `calculate_storage_cost` | Calculate cost for specific storage config |
| `compare_storage_tiers` | Compare all tiers for a given size |

### Database Tools

| Tool | Description |
|------|-------------|
| `list_database_options` | Autonomous DB, MySQL, PostgreSQL pricing |
| `calculate_database_cost` | Calculate database cost |
| `compare_database_options` | Compare options for workload type |

### Networking Tools

| Tool | Description |
|------|-------------|
| `list_networking_options` | Load balancers, FastConnect, VPN, egress |
| `calculate_networking_cost` | Calculate networking cost with free tier |
| `compare_data_egress` | Compare OCI egress vs AWS/Azure/GCP |

### Kubernetes Tools

| Tool | Description |
|------|-------------|
| `list_kubernetes_options` | OKE cluster options (Basic is FREE) |
| `calculate_kubernetes_cost` | Calculate cluster cost |
| `compare_kubernetes_providers` | Compare OKE vs EKS/AKS/GKE |

### Utility Tools

| Tool | Description |
|------|-------------|
| `get_free_tier` | OCI Always Free tier details |
| `get_pricing_info` | Pricing data metadata |

### Real-Time Pricing Tools

| Tool | Description |
|------|-------------|
| `fetch_realtime_pricing` | Fetch live pricing from Oracle's API (600+ products) |
| `list_realtime_categories` | List all 109 service categories from the API |

## Usage Examples

### Ask Claude about OCI pricing

```
What's the cost of running a VM.Standard.E5.Flex with 4 OCPUs and 32GB RAM?
```

```
Compare OCI block storage tiers for 1TB of data
```

```
Estima