3.5 Starting and Managing the SQLcl MCP Server
The SQLcl MCP Server is designed to be launched and managed automatically through an MCP client application.
Note:
If you already use GitHub Copilot in VS Code, you can readily access the SQLcl MCP Server through SQL Developer for VS Code. No configuration is necessary as SQL Developer for VS Code automatically sets up the server for Copilot. You can simply create a database connection and begin asking questions with Copilot.
To use the server with SQL Developer for VS Code and Copilot, see Starting and Managing the SQLcl MCP Server in Oracle SQL Developer for VS Code User's Guide
The following topics provide specific instructions for configuring two popular MCP clients.
3.5.1 Configuring Claude Desktop
Follow these steps to configure Claude Desktop for SQLcl MCP Server. After configuration, Claude Desktop automatically manages the SQLcl MCP Server, allowing you to perform Oracle Database operations through your conversations with Claude.
Example 3-1 Add the TNS_ADMIN environment
variable when using tnsnames.ora for database connections
{
"mcpServers": {
"sqlcl": {
"command": "PATH/bin/sql",
"args": ["-mcp"],
"env" : {"TNS_ADMIN" : "/PATH"}
}
}
}
Verify the configuration.
Click Search and tools in the prompt box. You see the SQLcl MCP Server tools listed and enabled. If necessary, restart Claude Desktop for changes to take effect.