M

MCP-Oracle 数据库交互器

@anpy-j/mcp-oracle
Hosted
4 Stars 3.5k 次浏览 anpy-j 更新于 2026-08-23

一种模型上下文协议服务器,使克劳德能够通过自然语言查询访问和交互Oracle数据库。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "mcp-server-oracle": {
      "args": [
        "mcp-server-oracle"
      ],
      "command": "uvx",
      "env": {
        "ORACLE_CONNECTION_STRING": "username/password@hostname:password/service_name"
      }
    }
  }
}

可用工具 (3 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

list_tables

Get a list of all tables in the oracle databaseArgs: None

该工具无需必填参数,直接调用即可

describe_table

Get a description of a table in the oracle databaseArgs: table_name (string): The name of the table to describe

该工具无需必填参数,直接调用即可

reqd_query

Execute SELECT queries to read data from the oracle databaseArgs: query (string): The SELECT query to execute

该工具无需必填参数,直接调用即可

服务介绍

mcp-server-oracle

Model Context Protocol 服务器,用于访问 Oracle

Python 3.12

演示

https://github.com/user-attachments/assets/dc4e377b-4efb-43e6-85fa-93ed852fe21f

快速开始

要在 Claude Desktop 应用程序中尝试此功能,请将以下内容添加到您的 claude 配置文件中:

json
{
"mcpServers": {
"mcp-server-oracle": {
"command": "uvx",
"args": [
"mcp-server-oracle"
],
"env": {
"ORACLE_CONNECTION_STRING": "username/password@hostname:password/service_name"
}
}
}
}

前提条件

  • UV(包管理器)
  • Python 3.12+
  • Claude Desktop

安装

Claude Desktop 配置

将服务器配置添加到您的 Claude Desktop 配置文件中:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

贡献

  1. mcp-server-oracle 仓库进行 fork
  2. 创建你的特性分支
  3. 提交你的更改
  4. 推送到该分支
  5. 打开一个 Pull Request

许可证

本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。

相关 MCP 服务