
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@studious-xiaoyu/oracle-link
Advanced tools
一个基于 MCP(Model Context Protocol)的 Oracle 数据库“只读查询”服务器(Node.js/TypeScript),允许 MCP 客户端安全地执行 SELECT 查询。
依赖安装:
npm install
在 src/config.ts 中直接填写数据库连接与默认行数:
export const oracleConfig = {
username: 'your_username',
password: 'your_password',
connectString: 'localhost:1521/your_service_name',
defaultMaxRows: 100
}
npx -y tsx src/index.ts
默认以 stdio 传输运行,便于在 Claude/Inspector 中作为命令接入;也可扩展为 HTTP 传输。
执行 SELECT 查询并返回结果
参数:
sql: 要执行的 SELECT 查询语句(允许 SELECT 或 WITH 开头)max_rows: 返回的最大行数(可选,默认 100;未限制时自动追加 FETCH FIRST {max_rows} ROWS ONLY)列出当前用户或指定 owner 的所有表名,并返回数量
参数:
owner: 可选,指定 schema/owner 名(建议使用大写)返回:
success: 是否成功count: 表数量tables: 表名数组message: 文本信息查询指定表的详细元数据
参数:
table_name: 表名(建议使用大写)owner: 可选,schema/owner 名(建议使用大写)返回:
success: 是否成功table: 表名comment: 表注释columns: 列定义(名称/类型/长度/精度/可空/默认/列注释)primaryKey: 主键列uniqueConstraints: 唯一约束及其列foreignKeys: 外键(约束名、列、引用的表和列)indexes: 索引(名称、唯一性、列)oracle-link/
├── src/index.ts # MCP 服务器入口(stdio)
├── src/oracle.ts # Oracle 只读查询封装
├── package.json # Node 项目配置与脚本
├── tsconfig.json # TypeScript 配置
└── README.md # 说明文档
command: "npx"
args: ["-y", "@studious-xiaoyu/oracle-link"]
env:
ORACLE_USERNAME: "scott"
ORACLE_PASSWORD: "tiger"
ORACLE_CONNECT_STRING: "localhost:1521/xe"
DEFAULT_MAX_ROWS: "100"
claude_desktop_config.json 的 mcpServers 中添加:{
"mcpServers": {
"oracle-link": {
"command": "npx",
"args": ["-y", "@studious-xiaoyu/oracle-link"],
"env": {
"ORACLE_USERNAME": "scott",
"ORACLE_PASSWORD": "tiger",
"ORACLE_CONNECT_STRING": "localhost:1521/xe",
"DEFAULT_MAX_ROWS": "100"
}
}
}
}
name: "oracle-link"
type: "stdio"
command: "npx"
args: ["-y", "@studious-xiaoyu/oracle-link"]
env:
ORACLE_USERNAME: "scott"
ORACLE_PASSWORD: "tiger"
ORACLE_CONNECT_STRING: "localhost:1521/xe"
ORACLE_USERNAME、ORACLE_PASSWORD、ORACLE_CONNECT_STRING、ORACLE_PRIVILEGE(可选)提供连接信息。url 覆盖连接,例如:
oracle://scott:tiger@localhost:1521/xe?maxRows=100oracle://sys:sys_password@localhost:1521/xe?privilege=SYSDBA&maxRows=100oracle_query:sql、max_rows(默认 DEFAULT_MAX_ROWS)、url(可选)。oracle_list_tables:owner(可选)、url(可选)。oracle_describe_table:table_name、owner(可选)、url(可选)。npx -y @studious-xiaoyu/oracle-link 或 node dist/index.js。FAQs
Oracle MCP Query Server (Node.js) - Read-only SELECT via MCP
The npm package @studious-xiaoyu/oracle-link receives a total of 93 weekly downloads. As such, @studious-xiaoyu/oracle-link popularity was classified as not popular.
We found that @studious-xiaoyu/oracle-link demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.