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