Oracle Cloud Infrastructure (OCI) MCP Server
A Model Context Protocol (MCP) server that provides access to Oracle Cloud Infrastructure services through a unified interface, optimized for VS Code integration.
Features
🚀 Unified OCI Management Tool
oci-manage
- Comprehensive OCI resource management
Compute: Instances, volumes, shapes, images
Storage: Object storage buckets and objects
Network: VCNs, subnets, security lists, gateways
Database: DB systems, autonomous databases, backups
Monitoring: Alarms, metrics, logs
Identity: Users, groups, policies
Quick Start
1. Installation
2. Build
3. Configure OCI Authentication
Copy the example environment file and configure your OCI credentials:
Edit .env
with your OCI credentials:
4. VS Code Integration
Add to your VS Code settings.json
:
Usage Examples
List Compute Instances
Get Specific Instance Details
Create Object Storage Bucket
List VCNs
Monitor Database Performance
OCI Authentication Setup
1. Create API Key Pair
Log into OCI Console
Go to Profile → User Settings → API Keys
Click "Add API Key"
Generate or upload a key pair
Save the private key file securely
2. Required Information
Tenancy OCID: Found in Profile → Tenancy
User OCID: Found in Profile → User Settings
Key Fingerprint: Generated when creating API key
Private Key Path: Location of your .pem file
Region: Your preferred OCI region
Compartment OCID: Optional default compartment
3. Set File Permissions
Available Services & Actions
Services
compute
- Compute instances and volumesstorage
- Object storage buckets and objectsnetwork
- VCNs, subnets, securitydatabase
- Database systems and autonomous DBsmonitoring
- Alarms, metrics, loggingidentity
- Users, groups, policies
Actions
list
- List resources of specified typeget
- Get details of specific resourcecreate
- Create new resourceupdate
- Update existing resource (where supported)delete
- Delete resource (where supported)start
- Start resource (instances, databases)stop
- Stop resource (instances, databases)
Resource Types
Compute: instances
, volumes
, images
, shapes
Storage: buckets
, objects
Network: vcns
, subnets
, security-lists
, gateways
Database: db-systems
, autonomous-databases
, backups
Monitoring: alarms
, metrics
, logs
Identity: users
, groups
, policies
Development
Project Structure
Available Scripts
npm run build
- Build the projectnpm run dev
- Run in development modenpm run watch
- Run with auto-reloadnpm start
- Run compiled version
Current Implementation
The server currently provides:
✅ MCP protocol integration
✅ OCI credential validation
✅ VS Code tool interface
✅ Basic service structure
🚧 Full OCI SDK integration (in progress)
Troubleshooting
Common Issues
Authentication Errors
Verify OCI credentials are correct
Check private key file permissions (600)
Ensure user has proper IAM policies
Connection Issues
Verify region is correct
Check network connectivity to OCI
Validate compartment access
VS Code Integration
Ensure MCP extension is installed
Check server configuration in settings.json
Verify file paths are absolute
Error Messages
"OCI credentials not configured"
Set required environment variables
Check .env file or VS Code settings
"Cannot use import statement outside a module"
Ensure package.json has
"type": "module"
Verify build completed successfully
Contributing
Fork the repository
Create feature branch
Make changes
Add tests if applicable
Submit pull request
Security
Never commit
.env
files or private keysUse IAM policies to limit permissions
Regularly rotate API keys
Monitor OCI usage and costs
License
MIT License - see LICENSE file for details
Support
For issues:
Check troubleshooting section
Review OCI documentation
Open GitHub issue
Consult OCI community forums
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Enables interaction with Oracle Cloud Infrastructure services through a unified interface. Supports comprehensive OCI resource management including compute instances, storage, networking, databases, and monitoring through natural language commands in VS Code.
Related MCP Servers
- AsecurityAlicenseAqualityThis server provides a convenient API for interacting with Azure DevOps services, enabling AI assistants and other tools to manage work items, code repositories, boards, sprints, and more. Built with the Model Context Protocol, it provides a standardized interface for communicating with Azure DevOpsLast updated -2947MIT License
- -securityAlicense-qualityExecute SQL queries, browse schemas, and analyze Oracle Database performance through an AI-compatible Model Context Protocol server.Last updated -2MIT License
- AsecurityAlicenseAqualityProvides flexible access to Oracle databases for AI assistants like Claude, supporting SQL queries across multiple schemas with comprehensive database introspection capabilities.Last updated -62MIT License
- -securityAlicense-qualityA dedicated server for Oracle Cloud Infrastructure (OCI) Core Services that enables management of compute instances and network operations with LLM-friendly structured responses.Last updated -1MIT License