oracle-sqlplus-mcp
An MCP server that connects to Oracle databases using sqlplus, enabling SQL queries, schema exploration, and DDL/DML execution through natural language.
README
oracle-sqlplus-mcp
An MCP (Model Context Protocol) server for Oracle Database using sqlplus as the connection backend. No Oracle Instant Client Node.js bindings required — just a working sqlplus binary.
Prerequisites
- sqlplus must be installed and available in
PATH(comes with Oracle Instant Client or full Oracle client) - Node.js 18+
Installation
npm install -g oracle-sqlplus-mcp
# or run directly with npx (no install needed):
npx oracle-sqlplus-mcp
Connection String Format
username/password@host:port/servicename
Examples:
scott/tiger@localhost:1521/ORCL
myuser/mypass@192.168.1.10:1521/XEPDB1
admin/secret@db.example.com:1521/PROD
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"oracle": {
"command": "npx",
"args": ["-y", "oracle-sqlplus-mcp"],
"env": {
"ORACLE_CONNECTION": "username/password@host:port/servicename"
}
}
}
}
Optional Environment Variables
| Variable | Default | Description |
|---|---|---|
ORACLE_CONNECTION |
(required) | Full connection string |
SQLPLUS_PATH |
sqlplus |
Path to sqlplus binary if not in PATH |
QUERY_TIMEOUT_MS |
30000 |
Query timeout in milliseconds |
Custom sqlplus path example
{
"mcpServers": {
"oracle": {
"command": "npx",
"args": ["-y", "oracle-sqlplus-mcp"],
"env": {
"ORACLE_CONNECTION": "scott/tiger@192.168.1.10:1521/ORCL",
"SQLPLUS_PATH": "C:\\oracle\\instantclient_21_9\\sqlplus.exe",
"QUERY_TIMEOUT_MS": "60000"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
test_connection |
Test connectivity and return Oracle version |
list_schemas |
List all schemas with table counts |
list_tables |
List tables, optionally filtered by schema or name pattern |
describe_table |
Show columns, data types, nullable, primary keys |
get_table_sample |
Fetch sample rows from a table |
execute_query |
Run any SELECT query |
execute_ddl |
Run DDL/DML (INSERT, UPDATE, DELETE, CREATE, etc.) |
list_procedures |
List stored procedures, functions, packages |
Example Prompts
- "Test the Oracle connection"
- "List all schemas in the database"
- "Show me tables in the SCOTT schema"
- "Describe the EMPLOYEES table"
- "Get 5 sample rows from HR.EMPLOYEES"
- "Run this query: SELECT * FROM departments WHERE department_id < 50"
- "List all stored procedures in the HR schema"
Troubleshooting
sqlplus: command not found
Set SQLPLUS_PATH to the full path of your sqlplus binary.
ORA-12541: TNS:no listener
Check host, port, and that Oracle listener is running.
ORA-01017: invalid username/password
Verify credentials. Connection string format: user/pass@host:port/service.
SP2-0306: Invalid option
Ensure sqlplus version supports -S silent mode (all modern versions do).
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.