Oracle Context MCP Server
Provides AI agents with secure, natural-language access to Oracle Cloud Infrastructure through 69 tools covering services like compute, storage, networking, and databases. It features deep IAM integration and supports deployment across platforms like Claude Desktop, Cursor, and OCI Generative AI.
README
MCPMarketplace.dev — Coming Soon. The central directory for production MCP servers. This server will be listed at launch.
Oracle OCI Context MCP Server
Production-ready, multi-tenant Model Context Protocol (MCP) server for Oracle Cloud Infrastructure. Gives AI agents (Claude, Cursor, VS Code, OCI GenAI) secure, natural-language access to any OCI tenancy — 69 tools across 22 services.
Part of the OkOCI Platform: MCP Context → Inference Gateway (NVIDiOCI) → Deployment CLI (OkOCI Deploy).
Quickstart — Local (Claude Desktop / Cursor / VS Code)
uvx oci-context-mcp --print-config
Prints the ready-to-paste mcpServers block:
{
"mcpServers": {
"oci": {
"command": "uvx",
"args": ["oci-context-mcp", "--transport", "stdio"],
"env": {
"OCI_COMPARTMENT_ID": "ocid1.compartment.oc1...",
"OCI_REGION": "us-phoenix-1"
}
}
}
}
Requires uv (brew install uv). Uses ~/.oci/config automatically.
Platform Vision
AI Agent (Claude, Cursor, OCI GenAI, LangChain)
|
v
MCP Server [this repo]
Context layer: reads OCI state across 22 services
Gives the AI eyes on the infrastructure
|
v
NVIDiOCI Inference Gateway [roadmap]
Brain layer: NVIDIA NIM + Oracle GenAI routing
Generates structured deployment plans
|
v
OkOCI Deploy CLI [roadmap]
Execution layer: provisions OCI resources
Deploys websites, APIs, containers from AI-generated plans
One user account, one cross-tenancy IAM policy, spans all three layers.
ARCSEM Stack
| Layer | Service | Cost |
|---|---|---|
| Auth | Instance Principal + cross-tenancy IAM | Free |
| Registry | OCI Container Registry (OCIR) | Free (500 MB) |
| Compute | Container Instance CI.Standard.A1.Flex ARM | Free tier |
| Secrets | OCI Vault | Free tier |
| Edge | OCI API Gateway | Free (1M req/mo) |
| Monitoring | OCI Logging + Metrics + ONS alarms | Free tier |
Tool Inventory — 69 Tools, 22 Services
| Category | Tools | Count |
|---|---|---|
| Health & Tenancy | server_health, get_tenancy_info, list_regions | 3 |
| Compute | list_compute_instances, list_compute_shapes, get_compute_instance | 3 |
| Object Storage | get_object_storage_namespace, list_buckets, list_objects, get_bucket_details | 4 |
| Identity & IAM | list_compartments, list_users, list_groups, list_policies | 4 |
| Compartment Tree | get_compartment_tree, resolve_compartment_by_name | 2 |
| Networking | list_vcns, list_subnets, list_security_lists, list_route_tables | 4 |
| Block & File Storage | list_block_volumes, list_file_systems | 2 |
| Resource Search | search_resources | 1 |
| Database | list_autonomous_databases, list_db_systems | 2 |
| Monitoring & Alarms | list_metric_namespaces, query_metrics, list_alarms, get_alarm_status, list_alarm_history | 5 |
| Logging | list_log_groups, list_logs, search_logs | 3 |
| Usage / Cost | get_usage_summary | 1 |
| Vault & Secrets | list_vaults, list_secrets | 2 |
| NSG & Load Balancers | list_network_security_groups, list_load_balancers | 2 |
| Compute Extended | list_images, list_boot_volumes, list_instance_configurations | 3 |
| Networking Extended | list_internet_gateways, list_nat_gateways, list_service_gateways, list_drgs | 4 |
| OKE & Containers | list_clusters, list_node_pools, list_container_instances, list_container_repos | 4 |
| Functions | list_applications, list_functions, get_function | 3 |
| Events & Notifications | list_event_rules, list_notification_topics, list_notification_subscriptions | 3 |
| DNS | list_dns_zones, list_dns_zone_records, list_steering_policies | 3 |
| Budgets | list_budgets, get_budget | 2 |
| Audit | list_audit_events | 1 |
| API Gateway | list_api_gateways, list_api_deployments | 2 |
| Bastion | list_bastions, list_bastion_sessions | 2 |
| MySQL & NoSQL | list_mysql_db_systems, list_nosql_tables | 2 |
| DevOps | list_devops_projects | 1 |
| Telemetry | get_metrics_summary | 1 |
| TOTAL | 69 |
* tools support compartment_scope: single | recursive | tenancy
Docker Deployment
# Build ARM64 image (matches OCI free tier A1.Flex shape)
export OCIR_NAMESPACE=$(oci artifacts container configuration get-namespace \
--compartment-id $OCI_COMPARTMENT_ID --query 'data.namespace' --raw-output)
./scripts/push_to_ocir.sh
# Deploy infrastructure
cd infra
cp terraform.tfvars.example terraform.tfvars # fill in your values
terraform init
terraform apply
Terraform provisions the full ARCSEM stack in one apply:
- Container Instance (ARM64, private subnet)
- API Gateway (public HTTPS endpoint)
- NSG (port 8000 from API Gateway subnet only)
- Log Group + Monitoring alarm
Multi-Tenant SaaS (Roadmap)
The server is being extended to a multi-tenant hosted platform. Users connect their OCI tenancy via one cross-tenancy IAM policy — no API keys are ever stored.
Onboarding flow (coming):
1. User registers at okoci.dev (email + tenancy OCID)
2. System generates their tenant ID
3. User runs one IAM policy in their tenancy:
Allow dynamic-group <okoci-dg-ocid> to read all-resources in tenancy
4. System probes and confirms access
5. User receives API key for the MCP endpoint
See docs/Main/ARCHITECTURE.md for the full SaaS architecture.
Connecting OCI Generative AI Agent
- Push image to OCIR and run
terraform apply - In OCI Console: Generative AI > Agents > Create agent
- Add tool: Custom > Model Context Protocol
- Set Remote MCP Server URL to
terraform output mcp_server_url - Authentication: Instance Principal
Authentication
Instance Principal (OCI hosted — recommended): Automatic, keyless. The Container Instance assumes the dynamic group role.
Config file (local development):
Falls back to ~/.oci/config automatically.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
OCI_COMPARTMENT_ID |
Yes | — | Compartment OCID for queries |
OCI_REGION |
No | us-phoenix-1 |
OCI region |
LOG_LEVEL |
No | INFO |
Loguru log level |
OCI_MCP_TELEMETRY |
No | local |
local or off |
Roadmap
Current — v2.5 (Single-Tenant)
- [x] 69 tools across 22 OCI services
- [x] STDIO transport — Claude Desktop, Cursor, VS Code
- [x] HTTP transport — Docker, Container Instance
- [x] ARCSEM stack — full Terraform IaC
- [x] ARM64 Docker image — OCI free tier compatible
- [x] API Gateway — public HTTPS, private CI
v3.0 — Multi-Tenant SaaS
- [ ] Per-request OCIAuthManager (cross-tenancy signer)
- [ ] Tenant registry (OCI Autonomous DB)
- [ ] API key service (issuance, rotation, revocation)
- [ ] Landing page + sign-up flow
- [ ] JWT auth policy on API Gateway
- [ ] Per-tenant rate limiting
- [ ] Usage dashboard
v3.5 — NVIDiOCI Inference Integration
- [ ] MCP tool:
route_inference()— call NVIDiOCI gateway from MCP context - [ ] OCI state snapshot passed to inference request
- [ ] NVIDIA NIM + Oracle GenAI routing
- [ ] Structured deploy plan output format
v4.0 — OkOCI Deploy CLI
- [ ] CLI consumes NVIDiOCI deploy plan JSON
- [ ] Provisions OCI resources via Terraform + OCI SDK
- [ ] Website, API, container deployment targets
- [ ] Rollback support
- [ ] Plugs into existing ARCSEM stack
F4 — Write Operations (parallel track)
- [ ] Write tools with confirmation + rollback
- [ ] start/stop compute instances
- [ ] create/delete buckets
- [ ] scale OKE node pools
Security
- Instance Principal auth — no credentials stored or transmitted
- Cross-tenancy IAM — user controls access, revokes by deleting one policy
- Private subnet — Container Instance has no public IP
- API Gateway — single public ingress, CORS locked to gateway hostname
- NSG — port 8000 accessible only from API Gateway subnet
- OCI Vault — secrets never in environment variables in production
- Telemetry — local JSONL only, no data leaves the host
Contributing
See CONTRIBUTING.md. For questions: denn.stewartjr@gmail.com
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。