npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

oracle-sqlplus-mcp

v1.0.2

Published

Oracle Database MCP Server using sqlplus

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/[email protected]:1521/XEPDB1
admin/[email protected]: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/[email protected]: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).