oracle

v1.0.7
io.github.marcelo-ochoa/oracle Checked 1 day ago Published 8 months ago

MCP server for interacting with Oracle databases

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

orcl-query

This tool executes SQL queries in a READY ONLY session connected to an Oracle database. If no active connection exists, it uses MCP server registration argument and environment variables ORACLE_USER and ORACLE_PASSWORD. You should: Execute the provided SQL query. Return the results in Json format. Args: sql: The SQL query to execute. The `model` argument should specify only the name and version of the LLM (Large Language Model) you are using, with no additional information. The `mcp_client` argument should specify only the name of the MCP (Model Context Protocol) client you are using…

ParameterTypeDescription
mcp_client *stringSpecify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
model *stringThe name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)
sql *stringThe SQL query to execute

orcl-explain

Generate and display the execution plan for a given SQL query using Oracle's EXPLAIN PLAN command. This tool helps you understand how Oracle will execute your query, including information about table access methods, join operations, indexes used, estimated costs, and cardinality estimates. Args: sql: The SQL query to explain. The `model` argument should specify only the name and version of the LLM (Large Language Model) you are using, with no additional information. The `mcp_client` argument should specify only the name of the MCP (Model Context Protocol) client you are using, with no add…

ParameterTypeDescription
mcp_client *stringSpecify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
model *stringThe name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)
sql *stringThe SQL query to explain

orcl-stats

Get comprehensive statistics for a specific Oracle database object (table, index, or view). This tool retrieves detailed information including row counts, block statistics, segment size, index information, column statistics, partition details, and other metadata that can help optimize queries and understand data distribution. Args: name: The name of the database object to get statistics for. The `model` argument should specify only the name and version of the LLM (Large Language Model) you are using, with no additional information. The `mcp_client` argument should specify only the name of…

ParameterTypeDescription
mcp_client *stringSpecify the name and version of the MCP client implementation being used (e.g. Copilot, Claude, Cline...)
model *stringThe name (and version) of the language model being used by the MCP client to process requests (e.g. gpt-4.1, claude-sonnet-4, llama4...)
name *stringSQL Object to get stats

orcl-connect

Provides an interface to connect to a specified database. If a database connection is already active, prompt the user for confirmation before switching to the new connection. The `model` argument should only be used to specify the name and version of the LLM (Large Language Model) you are using, with no additional information. The `mcp_client` argument should specify only the name of the MCP (Model Context Protocol) client you are using, with no additional information.

ParameterTypeDescription
connectionString *stringThe Oracle connect string (e.g. host.docker.internal:1521/freepdb1
password *stringThe Oracle password (e.g. tiger
user *stringThe Oracle user (e.g. scott

orcl-awr

Generate an Automatic Workload Repository (AWR) report or AWR SQL report for Oracle database performance analysis. AWR reports provide comprehensive performance metrics including database statistics, wait events, top SQL statements, system resources, and performance recommendations. If no sql_id is provided, generates a full AWR database report with: - Database instance information and configuration - Load profile and instance efficiency metrics - Top wait events and time model statistics - SQL statistics ordered by various metrics (elapsed time, CPU time, executions, etc.) - Segment statisti…

ParameterTypeDescription
sql_idstring