Skip to main content
Glama
sagar1012

oracle-sqlplus-mcp

by sagar1012

oracle-sqlplus-mcp

Ein MCP-Server (Model Context Protocol) für Oracle Database, der sqlplus als Verbindungs-Backend verwendet. Es sind keine Oracle Instant Client Node.js-Bindings erforderlich – lediglich eine funktionierende sqlplus-Binärdatei.


Voraussetzungen

  • sqlplus muss installiert und im PATH verfügbar sein (wird mit Oracle Instant Client oder dem vollständigen Oracle-Client mitgeliefert)

  • Node.js 18+


Related MCP server: oracle-db-mcp

Installation

npm install -g oracle-sqlplus-mcp
# or run directly with npx (no install needed):
npx oracle-sqlplus-mcp

Format des Verbindungs-Strings

username/password@host:port/servicename

Beispiele:

scott/tiger@localhost:1521/ORCL
myuser/mypass@192.168.1.10:1521/XEPDB1
admin/secret@db.example.com:1521/PROD

Claude Desktop-Konfiguration

Fügen Sie dies zu Ihrer claude_desktop_config.json hinzu:

{
  "mcpServers": {
    "oracle": {
      "command": "npx",
      "args": ["-y", "oracle-sqlplus-mcp"],
      "env": {
        "ORACLE_CONNECTION": "username/password@host:port/servicename"
      }
    }
  }
}

Optionale Umgebungsvariablen

Variable

Standard

Beschreibung

ORACLE_CONNECTION

(erforderlich)

Vollständiger Verbindungs-String

SQLPLUS_PATH

sqlplus

Pfad zur sqlplus-Binärdatei, falls nicht im PATH

QUERY_TIMEOUT_MS

30000

Abfrage-Timeout in Millisekunden

Beispiel für einen benutzerdefinierten sqlplus-Pfad

{
  "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"
      }
    }
  }
}

Verfügbare Tools

Tool

Beschreibung

test_connection

Testet die Konnektivität und gibt die Oracle-Version zurück

list_schemas

Listet alle Schemas mit Tabellenanzahl auf

list_tables

Listet Tabellen auf, optional gefiltert nach Schema oder Namensmuster

describe_table

Zeigt Spalten, Datentypen, Nullable-Status und Primärschlüssel an

get_table_sample

Ruft Beispielzeilen aus einer Tabelle ab

execute_query

Führt eine beliebige SELECT-Abfrage aus

execute_ddl

Führt DDL/DML aus (INSERT, UPDATE, DELETE, CREATE, etc.)

list_procedures

Listet gespeicherte Prozeduren, Funktionen und Pakete auf


Beispiel-Prompts

  • "Teste die Oracle-Verbindung"

  • "Liste alle Schemas in der Datenbank auf"

  • "Zeige mir die Tabellen im SCOTT-Schema"

  • "Beschreibe die Tabelle EMPLOYEES"

  • "Hole 5 Beispielzeilen aus HR.EMPLOYEES"

  • "Führe diese Abfrage aus: SELECT * FROM departments WHERE department_id < 50"

  • "Liste alle gespeicherten Prozeduren im HR-Schema auf"


Fehlerbehebung

sqlplus: command not found

Setzen Sie SQLPLUS_PATH auf den vollständigen Pfad Ihrer sqlplus-Binärdatei.

ORA-12541: TNS:no listener

Überprüfen Sie Host, Port und ob der Oracle-Listener läuft.

ORA-01017: invalid username/password

Überprüfen Sie die Anmeldedaten. Format des Verbindungs-Strings: user/pass@host:port/service.

SP2-0306: Invalid option

Stellen Sie sicher, dass die sqlplus-Version den -S Silent-Modus unterstützt (alle modernen Versionen tun dies).

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A production-grade Node.js MCP server for Oracle Database with HTTP transport, enabling SQL query execution, table listing, schema retrieval, and natural language to SQL conversion via MCP tools.
    14
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for accessing Oracle databases, enabling schema exploration, query execution, and performance analysis.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive MCP server for SQL Server database operations, enabling CRUD operations, schema exploration, and stored procedure execution through natural language.
    8
    MIT

View all related MCP servers

Related MCP Connectors

  • GibsonAI MCP server: manage your databases with natural language

  • Official Microsoft MCP Server to query Microsoft Entra data using natural language

  • MCP server for managing Prisma Postgres.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sagar1012/oracle-sqlplus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server