What You’ll Build
By the end of this quickstart, you’ll have:- A working MCP server connected to your MCP client (like Cline or Cursor)
- The ability to execute OCI CLI commands through your AI assistant
- A foundation for exploring other Oracle MCP servers
Install uv
The For more installation options, visit the uv installation guide.
uv tool is a fast Python package installer and runner. Install it using the official installer:Install Python 3.13
Install Python 3.13 using
uv:Most Oracle MCP servers require Python 3.13 or later. The
uv tool will automatically manage Python versions for you.Configure OCI Authentication (Optional)
If you plan to use OCI-related servers (like
Replace
oci-api-mcp-server, oci-compute-mcp-server, etc.), you’ll need to authenticate with Oracle Cloud Infrastructure.Setting up OCI CLI authentication
Setting up OCI CLI authentication
- Install the OCI CLI
- Authenticate using session tokens:
us-phoenix-1 with your preferred region and <your-tenancy-name> with your OCI tenancy name.- This creates a session token and configuration file at
~/.oci/config
For detailed authentication options including API key-based authentication, see the Installation page.
Configure Your MCP Client
Now configure your MCP client to connect to the Oracle MCP server. Below are examples for popular clients.
Cline (VS Code Extension)
Cline (VS Code Extension)
- Install the Cline VS Code Extension
- Click the MCP Servers button in the Cline panel
- Select the Installed tab and click Configure MCP Servers
-
Add the following to your
cline_mcp_settings.json:
- Save the file and verify the server appears with a green toggle in the Installed tab
Cursor
Cursor
You can configure MCP servers either globally or per-project:Project Configuration: Create Verify installation in Cursor Settings → MCP tab → Installed Servers
.cursor/mcp.json in your project directoryGlobal Configuration: Create ~/.cursor/mcp.json in your home directoryAdd the following configuration:Replace
DEFAULT with your OCI profile name if you configured a different profile during authentication. You can view your profiles with cat ~/.oci/config on macOS/Linux.Test Your Server
Now let’s verify everything is working! Open your MCP client and try these commands:Example 1: Get help for an OCI commandExample 2: List compartmentsExample 3: Check compute resourcesIf the server is working correctly, your AI assistant will use the MCP tools to execute these commands and return results.
Alternative: HTTP Streaming Mode
Instead of STDIO transport, you can run MCP servers in HTTP streaming mode for remote access:Next Steps
Explore Other Servers
Discover 22 different Oracle MCP servers for databases, compute, networking, and more
Container Deployment
Learn how to run MCP servers using Podman or Docker containers
Local Development
Set up a development environment to customize and extend MCP servers
Client Configuration
Detailed configuration examples for all supported MCP clients
Troubleshooting
Server not appearing in my client
Server not appearing in my client
- Check that your JSON configuration is valid (no trailing commas, proper quotes)
- Restart your MCP client after saving the configuration
- Check the client logs for connection errors
- Verify
uvis installed and in your PATH:uv --version
Authentication errors
Authentication errors
- Verify your OCI session hasn’t expired:
oci session validate - Re-authenticate if needed:
oci session authenticate --profile-name DEFAULT --region <region> --auth security_token - Check your
~/.oci/configfile exists and has valid credentials - Ensure the profile name in your MCP config matches your OCI config
Python version errors
Python version errors
Most Oracle MCP servers require Python 3.13+. Verify with:If 3.13 isn’t installed, run:
