
Oracle
io.github.marcelo-ochoaPublished by GitHub account marcelo-ochoav1.0.7Updated Oct 24, 2026
MCP server for interacting with Oracle databases
Overview
Lets an assistant inspect Oracle Database schemas and run read-only SQL queries, explain plans, table statistics, and AWR reports.
- What you can do
- Provides read-only access to an Oracle Database. Tools include orcl-query for read-only SQL in a READ ONLY transaction, orcl-explain for explain plans, orcl-stats for table statistics in the current schema, orcl-awr for Automatic Workload Repository reports, and orcl-connect to reconnect with new credentials. It also exposes table schema resources with column names and data types discovered from Oracle metadata.
- When to use it
- Useful when an assistant needs to explore an Oracle schema, run read-only queries, or review execution plans and AWR performance reports without a separate SQL client. It fits database inspection and troubleshooting workflows rather than write operations.
- Requirements
- Runs locally over stdio, typically via the npm package or a Docker image. Needs network access to an Oracle Database and a SQLNet connection string in host:port/service_name or host:port:SID form. Credentials come from the ORACLE_USER and ORACLE_PASSWORD environment variables or the orcl-connect tool. orcl-explain and orcl-awr need SELECT_CATALOG_ROLE, and orcl-awr also needs execute on DBMS_WORKLOAD_REPOSITORY.
Installation
In SourceWeft
- Open Oracle in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Oracle Database
A Model Context Protocol server that provides read-only access to Oracle Database. This server enables LLMs to inspect database schemas, execute and explain read-only queries.
Components
Tools
-
orcl-query
- Execute read-only SQL queries against the connected Oracle Database
- Input:
sql(string): The SQL query to execute - All queries are executed within a READ ONLY transaction
-
orcl-explain
- Explain plan SQL queries against the connected Oracle Database
- Input:
sql(string): The SQL query to execute - Requires GRANT SELECT_CATALOG_ROLE TO your_user;
-
orcl-stats
- Get statistics for a given table on current connected schema
- Input:
name(string): The table name - Table owner is equal to USER SQL function returning value
-
orcl-connect
- Reconnect using new credentials
- Input:
connectionString(string): SQLNet connect string for example host.docker.internal:1521/freepdb1 - Input:
user(string): Username for example scott - Input:
password(string): Password, for example tiger
Example: orcl-connect host.docker.internal:1521/freepdb1 hr hr_2025
- orcl-awr
- Automatic Workload Repository (AWR) with optional sql_id, requires SELECT_CATALOG_ROLE and grant execute on DBMS_WORKLOAD_REPOSITORY package
- Input:
sql_id(string): (optional) SQL id to get the AWR report for an specific query, if null full last generated AWR report
Resources
The server provides schema information for each table in the Oracle Database current connected user:
- Table Schemas (
oracle://USER/<table>/schema)- JSON schema information for each table
- Includes column names and data types
- Automatically discovered from Oracle Database metadata
Change Log
See Change Log for the history of changes.
Demos
See Demos for usage examples with Claude Desktop, Docker AI, Gemini CLI, and Antigravity Code Editor.
Oracle AWR in action
See Oracle AWR in action for an example of an AWR report generated using the orcl-awr tool, followed by an analysis of the top SQL statements.
The Oracle server uses environment variables or the orcl-connect tool for secure credential management:
ORACLE_USER: Oracle username (optional if usingorcl-connect)ORACLE_PASSWORD: Oracle password (optional if usingorcl-connect)
Connection String
The connection string should contain only the host, port, and service/SID information (without embedded credentials). Providing it as a command-line argument is optional. If omitted at startup, you must use the orcl-connect tool to establish a connection before using other functionality.
Supported connection string formats:
host:port/service_namehost:port:SID
Building
Docker:
Usage with Claude Desktop
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:
Docker
- When running Docker on macOS, use
host.docker.internalif the Oracle Database is running on the host network (e.g., localhost) - Credentials are passed via environment variables
ORACLE_USERandORACLE_PASSWORD
Note: You can still provide the connection string as a final argument if you want to connect automatically on startup: "args": [..., "mochoa/mcp-oracle", "host.docker.internal:1521/freepdb1"].
Sources
As usual the code of this extension is at GitHub, feel free to suggest changes and make contributions, note that I am a beginner developer of React and TypeScript so contributions to make this UI better are welcome.
Compared to SQLcl MCP server
Using SQLcl Docker extension you could register a connection using:
after that using this registration:
Just replace above Demo prompts instead of "orcl-query" tool use "run-sql".
📜 License
This project is licensed under the Apache License, Version 2.0 for new contributions, with existing code under MIT - see the LICENSE file for details.
Source: src/oracle/README.md at commit bd2ce8f
Tools
0Version history
1- v1.0.7LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.