Overview
Cursor is an AI-first code editor built on VS Code that natively supports the Model Context Protocol. By connecting Cursor to Oracle MCP Servers, you can leverage OCI services directly within your development workflow.Prerequisites
Before configuring Cursor, ensure you have completed:- Quick Start setup
- OCI Authentication (for OCI servers)
- Installed
uvand Python 3.13
Configuration Locations
Cursor supports two configuration scopes:Project Configuration
For tools specific to a project, create.cursor/mcp.json in your project directory. This makes MCP servers available only within that specific project.
Use case: Project-specific OCI resources, development compartments, or testing environments.
Global Configuration
For tools you want across all projects, create~/.cursor/mcp.json in your home directory. This makes MCP servers available in all Cursor workspaces.
Use case: Commonly used OCI services, shared infrastructure, or organization-wide resources.
Configuration
Standard Configuration (stdio)
Create or edit yourmcp.json file (either .cursor/mcp.json for project-level or ~/.cursor/mcp.json for global).
macOS/Linux
<profile_name> with the OCI CLI profile you set up during authentication.
Windows
Windows configuration follows the same pattern as macOS/Linux. The main difference is path formatting and environment variable syntax. Refer to the Installation guide for Windows-specific examples.
Podman Configuration
To run Oracle MCP Servers in containers using podman:HTTP Streaming Configuration
If you’re running an MCP server as a standalone HTTP service:- Start the server:
- Configure Cursor:
Cursor uses
http as the transport type for HTTP streaming, unlike some other clients that use streamableHttp.Setup Steps
Create Configuration File
Create your
mcp.json file in the appropriate location:- Project:
.cursor/mcp.jsonin your project root - Global:
~/.cursor/mcp.jsonin your home directory
Add Server Configuration
Add your desired Oracle MCP Server configuration(s) to the file using the examples above.
Save Configuration
Save the
mcp.json file. Cursor will automatically detect and load the configuration.Verification
Check Installed Servers
- Open Cursor Settings (Cmd+, on macOS or Ctrl+, on Windows/Linux)
- Navigate to the MCP tab
- Check the Installed Servers section
- Verify your Oracle MCP Servers appear in the list
Test the Connection
Try using Cursor’s AI features to interact with OCI:- Ask Cursor to list your OCI compartments
- Request information about compute instances
- Query OCI resources in your tenancy
Configuration Priority
When both project and global configurations exist:- Project configuration (
.cursor/mcp.json) takes precedence for that project - Global configuration (
~/.cursor/mcp.json) applies to all other projects - Servers with the same name in project config override global config
Example: Mixed Configuration
Global (~/.cursor/mcp.json):
.cursor/mcp.json):
PROJECT_SPECIFIC OCI profile and has access to both API and DBTools servers.
Troubleshooting
Server Not Appearing in Settings
- Verify the JSON syntax is valid (use a JSON validator)
- Ensure the file is named exactly
mcp.json - Check file permissions (must be readable by Cursor)
- Restart Cursor after creating/modifying the configuration
Connection Failures
- Verify
uvis installed and accessible in your PATH - Check that the OCI profile exists:
cat ~/.oci/config - Ensure OCI authentication is properly configured
- Review server logs by setting
FASTMCP_LOG_LEVELtoDEBUG
Authentication Errors
- Verify the OCI profile name matches your configuration
- Check if your OCI session token has expired
- Refresh authentication:
oci session authenticate --profile-name <profile_name>
Multiple Servers
You can configure multiple Oracle MCP Servers in the same configuration file:Next Steps
Explore Available Servers
Discover all Oracle MCP Servers you can connect to
Authentication Guide
Learn more about OCI authentication
