M

MCP-Oracle 数据库交互器

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

databasessearch

3.3k 查看 · 2026-07-07 更新

简介

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

简介

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

mcp-server-oracle

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

Python 3.12 License: MIT

演示

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 文件。

工具列表

  • 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

服务配置

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

来源