Claude's integration with Oracle Autonomous Transaction Processing (ATP) opens up powerful possibilities for database management and AI-assisted development. Rather than manually writing complex SQL queries, managing schemas, or analyzing database performance, we can now leverage Claude's natural language capabilities to interact with our ATP instance directl, all while keeping our credentials secure on our machine.
In this post, we will walk through the step-by-step process of connecting Claude Code (the VS Code extension) to Oracle ATP on macOS, enabling seamless database queries and interactions through the Model Context Protocol (MCP). By the end, we will have a fully functional AI-powered database management environment running entirely in VS Code.
Part 1: Install VS Code Extensions
Step 1.1: Open VS Code
Launch Visual Studio Code on your Mac.
Step 1.2: Open Extensions Marketplace
Press Cmd+Shift+X or click the Extensions icon on the left sidebar (it looks like 4 squares).
We see a search box at the top that says "Search Extensions in Marketplace".
Step 1.3: Install Claude Code Extension
In the search box, type: claude
You'll see Claude Code by Anthropic
Click the Install button
Wait for it to finish (shows "Installed" when done)
Step 1.4: Install SQL Developer Extension
- In the search box, type:
Oracle sql developer - You'll see Oracle SQL Developer by Oracle
- Click the Install button
- Wait for it to finish
Step 1.5: Restart VS Code
After both extensions install:
- Close VS Code completely (Cmd+Q)
- Reopen VS Code
You should now see:
- Claude Code icon in the left sidebar (looks like a Claude logo)
- SQL Developer icon in the left sidebar (looks like a database)
Now let's understand how these tools work together:
How the Architecture Works
- In VS Code → Type in Claude Code: "Show me all employees"
- Claude Code Extension → Sends our request to Claude Code CLI
- Claude Code CLI → Routes through MCP Protocol
- MCP Protocol → Translates our English request to SQL
- SQLcl MCP Server → Takes the SQL, looks up our saved connection
- Saved Credentials → Unlocks our Oracle wallet
- Oracle ATP → Executes the query, sends results back
- Results come back through all layers → Claude explains them to us in VS Code
Now let's install everything. Follow these steps in order.
Follow the below blog post for initial setup of Brew, Java and sqlcl. The Initial setup remains same.
How to Connect Claude Desktop App to Oracle ATP using MCP Server on MacOS
claude --versionRegister SQLcl as MCP Server