OCI Pricing

DevOps

by jasonwilbur

Oracle Cloud Infrastructure pricing data with cost calculators and comparisons

什么是 OCI Pricing

Oracle Cloud Infrastructure pricing data with cost calculators and comparisons

README

OCI Pricing MCP Server

A Model Context Protocol (MCP) 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 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.

ProviderPricing MCPType
AWSaws-pricing-mcp-serverOfficial
Azureazure-pricing-mcpCommunity
GCPgcp-cost-mcp-serverCommunity
OCIoci-pricing-mcpCommunity

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):

code
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):

code
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

ToolDescription
get_pricingGet pricing for any OCI resource by service/type
list_servicesList all OCI services with pricing categories
compare_regionsCompare pricing across regions (OCI has consistent global pricing)
list_regionsList all available OCI regions
calculate_monthly_costEstimate monthly spend for a configuration
quick_estimateGet cost estimates for common deployment presets

Compute Tools

ToolDescription
list_compute_shapesList VM shapes (E4, E5, A1, GPU, etc.) with pricing
get_compute_shape_detailsGet detailed info for a specific shape
compare_compute_shapesCompare pricing between shapes

Storage Tools

ToolDescription
list_storage_optionsBlock, object, file, archive storage pricing
calculate_storage_costCalculate cost for specific storage config
compare_storage_tiersCompare all tiers for a given size

Database Tools

ToolDescription
list_database_optionsAutonomous DB, MySQL, PostgreSQL pricing
calculate_database_costCalculate database cost
compare_database_optionsCompare options for workload type

Networking Tools

ToolDescription
list_networking_optionsLoad balancers, FastConnect, VPN, egress
calculate_networking_costCalculate networking cost with free tier
compare_data_egressCompare OCI egress vs AWS/Azure/GCP

Kubernetes Tools

ToolDescription
list_kubernetes_optionsOKE cluster options (Basic is FREE)
calculate_kubernetes_costCalculate cluster cost
compare_kubernetes_providersCompare OKE vs EKS/AKS/GKE

Utility Tools

ToolDescription
get_free_tierOCI Always Free tier details
get_pricing_infoPricing data metadata

Real-Time Pricing Tools

ToolDescription
fetch_realtime_pricingFetch live pricing from Oracle's API (600+ products)
list_realtime_categoriesList all 109 service categories from the API

Usage Examples

Ask Claude about OCI pricing

code
What's the cost of running a VM.Standard.E5.Flex with 4 OCPUs and 32GB RAM?
code
Compare OCI block storage tiers for 1TB of data
code
Estimate monthly cost for a Kubernetes cluster with 3 nodes
code
How much would I save using OCI vs AWS for 5TB of monthly data egress?

Quick Estimates

code
Give me a quick estimate for a small web app on OCI

Available presets:

  • small-web-app - 1 OCPU, 8GB, 100GB storage, LB
  • medium-api-server - 4 OCPU, 32GB, 500GB storage
  • large-database - 8 OCPU, 128GB, Autonomous DB
  • ml-training - 8x A100 GPUs (part-time)
  • kubernetes-cluster - 3 nodes, 4 OCPU each

OCI Pricing Highlights

Key Differentiators

  • Consistent Global Pricing: Unlike AWS/Azure/GCP, OCI prices are the same across all commercial regions
  • 10 TB Free Egress: First 10 TB of outbound data transfer is free monthly
  • Free Kubernetes Control Plane: OKE Basic clusters have no management fee
  • Network Load Balancer: Completely free (no hourly or data charges)
  • Always Free Tier: Never expires - 4 Arm OCPUs, 24GB RAM, 200GB storage, 2 Autonomous DBs

Cost-Effective Shapes

ShapeOCPU PriceBest For
VM.Standard.A1.Flex (Arm)$0.01/hrBest value, Arm workloads
VM.Standard.E5.Flex$0.03/hrNew x86 deployments
VM.Standard.E4.Flex$0.025/hrPrevious gen, still good

OCPU vs vCPU

1 OCPU = 2 vCPUs for x86 architectures. OCPUs represent physical cores, so OCI's $0.03/OCPU/hr is equivalent to $0.015/vCPU/hr.

Data Sources

This MCP server supports two data modes:

Bundled Data (Default)

Pricing data is synced from Oracle's public pricing API and bundled with the server. This provides fast, offline access to the complete OCI pricing catalog.

  • Products: 602 SKUs (full API dataset)
  • Categories: 109 service categories
  • Detailed compute shapes: 15 curated shapes with OCPU/memory breakdowns
  • Timestamps: apiLastUpdated and bundledDataGenerated for verification

Real-Time API

For the most current pricing between releases, use fetch_realtime_pricing which queries Oracle's API directly:

code
https://apexapps.oracle.com/pls/apex/cetools/api/v1/products/
  • Authentication: None required (public API)
  • Multi-currency: USD, EUR, GBP, JPY, AUD, CAD, and more
  • Updates: Oracle updates pricing data periodically

FAQ

Does OCI have a pricing API?

Yes! Oracle provides a public pricing API at https://apexapps.oracle.com/pls/apex/cetools/api/v1/products/ that returns all OCI product pricing in JSON format. No authentication is required. This MCP server uses this API for the fetch_realtime_pricing tool.

Where does the pricing data come from?

  • Bundled data: Full dataset synced from Oracle's public pricing API and included in the npm package
  • Real-time data: Fetched directly from Oracle's public pricing API on-demand

How often is the bundled data updated?

The bundled pricing data is synced from Oracle's API with each npm release. Check metadata.bundledDataGenerated for the sync date. Use fetch_realtime_pricing between releases to check for updates.

Why are prices the same across all regions?

Unlike AWS, Azure, and GCP, Oracle Cloud Infrastructure maintains consistent global pricing across all commercial regions. This simplifies cost planning and means you can deploy anywhere without price variations.

What's the difference between OCPU and vCPU?

1 OCPU = 2 vCPUs for x86 architectures. OCPUs represent physical cores with hyper-threading, so OCI's $0.03/OCPU/hr is equivalent to $0.015/vCPU/hr when comparing to AWS/Azure/GCP.

Can I query my actual OCI spend?

This MCP server provides pricing data, not account spend. For actual usage and spend tracking, you would need to use the OCI Cost Management APIs with proper authentication. This could be added as a future enhancement.

What's NOT included in the pricing data?

The bundled data includes all 602 products from Oracle's public pricing API. However, some pricing is not available through this API:

  • Committed use discounts - Only Pay-As-You-Go pricing is shown; annual/3-year commits require Oracle sales
  • Government/sovereign cloud - Dedicated government regions have separate pricing
  • Oracle SaaS products - Fusion Apps, NetSuite, etc. are separate from OCI IaaS
  • Custom/negotiated pricing - Enterprise agreements with volume discounts
  • Support costs - Premier Support pricing is separate

For these, contact Oracle Sales or check the Oracle Cloud Price List directly.

How do I verify the pricing is accurate?

Each bundled data release includes timestamps:

  • apiLastUpdated: When Oracle last updated their pricing API
  • bundledDataGenerated: When this package synced the data

You can verify prices against Oracle's official price list or use the fetch_realtime_pricing tool to get live data.

Development

bash
# Install dependencies
npm install

# Build
npm run build

# Run locally
node dist/index.js

# Watch mode
npm run dev

Author

Jason Wilbur - jasonwilbur.com

License

Apache 2.0

Contributing

Issues and pull requests welcome at GitHub.

常见问题

OCI Pricing 是什么?

Oracle Cloud Infrastructure pricing data with cost calculators and comparisons

相关 Skills

可观测性设计

by alirezarezvani

Universal
热门

面向生产系统规划可落地的可观测性体系,串起指标、日志、链路追踪与 SLI/SLO、错误预算、告警和仪表盘设计,适合搭建监控平台与优化故障响应。

把监控、日志、链路追踪串起来,帮助团队从设计阶段构建可观测性,排障更快、系统演进更稳。

DevOps
未扫描9.0k

资深开发运维

by alirezarezvani

Universal
热门

覆盖 CI/CD 流水线生成、Terraform 基建脚手架和自动化部署,适合在 AWS、GCP、Azure 上搭建云原生发布流程,管理 Docker/Kubernetes 基础设施并持续优化交付。

把CI/CD、基础设施即代码、容器与监控串成一条交付链,尤其适合AWS/GCP/Azure多云团队高效落地。

DevOps
未扫描9.0k

环境密钥管理

by alirezarezvani

Universal
热门

统一梳理dev/staging/prod的.env和密钥流程,自动生成.env.example、校验必填变量、扫描Git历史泄漏,并联动Vault、AWS SSM、1Password、Doppler完成轮换。

统一管理环境变量、密钥与配置,减少泄露和部署混乱,安全治理与团队协作一起做好,DevOps 场景很省心。

DevOps
未扫描9.0k

相关 MCP Server

kubefwd

编辑精选

by txn2

热门

kubefwd 是让 AI 帮你批量转发 Kubernetes 服务到本地的开发神器。

微服务开发者最头疼的本地调试问题,它一键搞定——自动分配 IP 避免端口冲突,还能用自然语言查询状态。但依赖 AI 工作流,纯命令行爱好者可能觉得不够直接。

DevOps
4.1k

Cloudflare

编辑精选

by Cloudflare

热门

Cloudflare MCP Server 是让你用自然语言管理 Workers、KV 和 R2 等云资源的工具。

这个工具解决了开发者频繁切换控制台和文档的痛点,特别适合那些在 Cloudflare 上部署无服务器应用、需要快速调试或管理配置的团队。不过,由于它依赖多个子服务器,初次设置可能有点繁琐,建议先从 Workers Bindings 这类核心功能入手。

DevOps
3.6k

Terraform

编辑精选

by hashicorp

Terraform MCP Server 是让 AI 助手直接操作 Terraform Registry 和 HCP Terraform 的桥梁。

如果你经常在 Terraform 里翻文档找模块配置,这个服务器能省不少时间——直接问 Claude 就能生成准确的代码片段。最适合管理多云基础设施的团队,但注意它目前只适合本地使用,别在生产环境里暴露 HTTP 端点。

DevOps
1.3k

评论