Skip to main content
Glama
sagar1012

oracle-sqlplus-mcp

by sagar1012

oracle-sqlplus-mcp

sqlplus를 연결 백엔드로 사용하는 Oracle Database용 MCP(Model Context Protocol) 서버입니다. Oracle Instant Client Node.js 바인딩이 필요 없으며, 작동하는 sqlplus 바이너리만 있으면 됩니다.


필수 조건

  • sqlplus가 설치되어 있고 PATH에서 사용 가능해야 합니다 (Oracle Instant Client 또는 전체 Oracle 클라이언트에 포함됨)

  • Node.js 18 이상


Related MCP server: oracle-db-mcp

설치

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

연결 문자열 형식

username/password@host:port/servicename

예시:

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

Claude Desktop 설정

claude_desktop_config.json에 추가하세요:

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

선택적 환경 변수

변수

기본값

설명

ORACLE_CONNECTION

(필수)

전체 연결 문자열

SQLPLUS_PATH

sqlplus

PATH에 없는 경우 sqlplus 바이너리 경로

QUERY_TIMEOUT_MS

30000

밀리초 단위의 쿼리 타임아웃

사용자 지정 sqlplus 경로 예시

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

사용 가능한 도구

도구

설명

test_connection

연결을 테스트하고 Oracle 버전을 반환

list_schemas

테이블 개수와 함께 모든 스키마 나열

list_tables

스키마 또는 이름 패턴으로 필터링하여 테이블 나열

describe_table

열, 데이터 유형, Null 허용 여부, 기본 키 표시

get_table_sample

테이블에서 샘플 행 가져오기

execute_query

모든 SELECT 쿼리 실행

execute_ddl

DDL/DML 실행 (INSERT, UPDATE, DELETE, CREATE 등)

list_procedures

저장 프로시저, 함수, 패키지 나열


예시 프롬프트

  • "Oracle 연결 테스트"

  • "데이터베이스의 모든 스키마 나열"

  • "SCOTT 스키마의 테이블 보여줘"

  • "EMPLOYEES 테이블 설명해줘"

  • "HR.EMPLOYEES에서 샘플 행 5개 가져와"

  • "다음 쿼리 실행: SELECT * FROM departments WHERE department_id < 50"

  • "HR 스키마의 모든 저장 프로시저 나열"


문제 해결

sqlplus: command not found

SQLPLUS_PATH를 sqlplus 바이너리의 전체 경로로 설정하세요.

ORA-12541: TNS:no listener

호스트, 포트 및 Oracle 리스너가 실행 중인지 확인하세요.

ORA-01017: invalid username/password

자격 증명을 확인하세요. 연결 문자열 형식: user/pass@host:port/service.

SP2-0306: Invalid option

sqlplus 버전이 -S 자동 모드를 지원하는지 확인하세요 (모든 최신 버전은 지원합니다).

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