Oracle Database

Oracle Database

Query an Oracle database directly: list tables, describe columns and run read-only SQL. Installs read-only; credentials are held encrypted rather than in the connection string.

7 天免费 · 无需信用卡 · EU 托管

问 Oracle 任何事

通过 AnythingMCP 对 Oracle Database 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 Oracle
Oracle Database · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 Oracle Database。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 Oracle Database

Oracle 指南

面向主流 AI 客户端的逐步设置。

配置 Oracle Database

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

Setup

  1. Create a user with only CREATE SESSION and the SELECTs it needs:
    CREATE USER amcp_reader IDENTIFIED BY "change-me";
    GRANT CREATE SESSION TO amcp_reader;
    GRANT SELECT ON sales.orders TO amcp_reader;
    -- or, for a whole schema, a read-only role you maintain
    
  2. Set ORACLE_HOST, ORACLE_PORT (1521), ORACLE_DATABASE — the service name (e.g. ORCLPDB1), not the SID — plus ORACLE_USER and ORACLE_PASSWORD.

The node-oracledb driver needs to be in thin mode or have Instant Client available. Thin mode covers Oracle 12.1 and newer with no client install; an older server needs Instant Client on the AnythingMCP host.

Oracle folds unquoted identifiers to UPPER CASE. A table created as Orders without quotes is ORDERS, and WHERE table_name = 'Orders' matches nothing. The describe tool compares against the value you pass verbatim, so pass it upper-cased unless the table was created with quotes.

Oracle has no LIMIT. Use FETCH FIRST 100 ROWS ONLY (12c and newer) or WHERE ROWNUM <= 100.

How a database connector behaves

  • It installs read-only. The engine rejects anything that is not a read until you flip the switch in the connector's settings. That is a guard rail, not a security boundary: give the connection a database role that is itself read-only, and the guard rail never has to matter.
  • Credentials live in the encrypted authConfig, not in the connection string. ORACLE_USER and ORACLE_PASSWORD are stored encrypted and spliced into the DSN at call time; the host and database name are stored in the plaintext baseUrl column.
  • Results are capped at 1000 rows. A query that would return more comes back truncated with a flag. Aggregate in SQL rather than in the agent.
  • A statement runs exactly as written. There is no query rewriting and no automatic LIMIT — an unbounded scan on a large table is a real unbounded scan on your production database. Say LIMIT.

Reachable from where?

  • On AnythingMCP Cloud the server must accept connections from the public internet, which for a production database usually means it should not. Point the connector at a read replica, or self-host AnythingMCP inside the network.
  • Self-hosted, add the host to SSRF_ALLOWED_HOSTS: the outbound guard blocks private address space by default, and 10.0.0.5 is exactly the shape it is there to block.

你的 AI 距离 Oracle Database 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。