OracleDB MCP Server
OracleDB MCP サーバー
概要
このプロジェクトでは、構成された Oracle データベース テーブル/列を LLM のコンテキストとして提供する
MCP - Model Context Protocol Serverをインストールします。これを使用すると、LLM が Oracle データベースと対話し、SQL 文を生成し、LLM プロンプトを使用して結果を返すことができるようになります。
Related MCP server: MCP Oracle Server
インストール
パッケージをインストールする
pip install oracledb_mcp_serverOracle DB Connection Stringの最小値を含むフォルダに.envを作成します。サンプルファイルはこちらから入手できます。上記のフォルダーから
uv run oracledb_mcp_serverを使用してoracledb_mcp_serverサーバーをテストします。
クロードデスクトップ
Claud Desktop の設定詳細
{ "mcpServers": { "oracledb_mcp_server":{ "command": "uv", "args": ["run","oracledb_mcp_server"], "env": { "DEBUG":"True", "COMMENT_DB_CONNECTION_STRING":"oracle+oracledb://USERNAME:PASSWORD@IP:PORT/?service_name=SERVICENAME", "DB_CONNECTION_STRING":"oracle+oracledb://USERNAME:PASSWORD@IP:PORT/?service_name=SERVICENAME", "TABLE_WHITE_LIST":"ACCOUNTS,CUS_ACC_RELATIONS,CUSTOMERS", "COLUMN_WHITE_LIST":"ACCOUNTS.ACC_AAD_ID,CUS_ACC_RELATIONS.CAR_CUS_ID,CUS_ACC_RELATIONS.CAR_AAD_ID,CUSTOMERS.CUS_ID" } } } }
構成
利用可能な環境変数のリスト
DEBUG: デバッグログを有効にする(オプション、デフォルトはFalse)COMMENT_DB_CONNECTION_STRING: コメント用の Oracle DB 接続文字列。(必須)DB_CONNECTION_STRING: クエリ実行用の Oracle DB 接続文字列。(必須)TABLE_WHITE_LIST: ホワイトリストに登録されたテーブル名のリスト形式 ["table1", "table2"] (必須)COLUMN_WHITE_LIST: ホワイトリストに登録されたテーブル列名(リスト形式 ["table.column1", "table.column2"])(必須)QUERY_LIMIT_SIZE: 指定されていない場合のデフォルト値は 10 レコードです (オプションのデフォルトは 10)
インターセプター
npx @modelcontextprotocol/inspector uv --directory "D:\\MyDev\\mcp\\oracledb_mcp_server" run -m oracledb_mcp_server貢献
貢献を歓迎します。
お気軽にプルリクエストを送信してください。
ライセンス
このプロジェクトは、MIT ライセンスの条件に基づいてライセンスされます。
デモ

Githubスター
This server cannot be deployed
Maintenance
Related MCP Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
- mcpOAuthcom.gibsonai
GibsonAI MCP server: manage your databases with natural language
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.-- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables Claude to access and interact with Oracle databases through natural language queries.32MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables large language models to access database metadata and perform cross-engine data querying across diverse database ecosystems.1654Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides contextual Oracle database schema information, enabling AI assistants to understand and work with large databases containing thousands of tables.2MIT