MCP Server For Oracle Database
Project description
OracleDB MCP Server
Overview
- This project will install
MCP - Model Context Protocol Server, that provides configured Oracle Database Table/Columns as context to LLM's. - Using this we can enable LLMs to interact with Oracle Database, Generate SQL Statements and Return Results using LLM prompts.
Installation
- Install package
pip install oracledb_mcp_server
- Create .env in a folder with minimum value of
Oracle DB Connection String. Sample file available here - Test
oracledb_mcp_serverserver usinguv run oracledb_mcp_serverfrom the above folder.
Claud Desktop
- Configuration details for 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" } } } }
Configuration
- List of available environment variables
DEBUG: Enable debug logging (optional default is False)COMMENT_DB_CONNECTION_STRING: Oracle DB connection String for comments. (required)DB_CONNECTION_STRING: Oracle DB connection String for execution of queries. (required)TABLE_WHITE_LIST: White Listed table names in list format ["table1", "table2"] (required)COLUMN_WHITE_LIST: White Listed table-column names in list format ["table.column1", "table.column2"] (required)QUERY_LIMIT_SIZE: Default value is 10 records if not provided(optional default is 10)
Interceptor
npx @modelcontextprotocol/inspector uv --directory "D:\\MyDev\\mcp\\oracledb_mcp_server" run -m oracledb_mcp_server
Contributing
Contributions are welcome.
Please feel free to submit a Pull Request.
License
This project is licensed under the terms of the MIT license.
Demo
Github Stars
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oracledb_mcp_server-0.1.0.tar.gz
(10.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oracledb_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: oracledb_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56aaf56fb40420c787bc947a195da2e13c4cc8e587a3598cee5372ff2a1cac08
|
|
| MD5 |
32324833fb91f67e1014f8cd42b0c409
|
|
| BLAKE2b-256 |
ba170fe813205bd46c063e9a897784bd34be968d9ca0fd7d77d3c35b1ddeab6a
|
File details
Details for the file oracledb_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oracledb_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b11c789046f4f0251c4305c0dc8e73864285978a63562c8b0eb5f91c952f6c27
|
|
| MD5 |
7c58f68c3c7a2b5380d9aca3483c73a9
|
|
| BLAKE2b-256 |
04ef1879322b6c4cb78cc5f544e5cfd721c5e96774bda5e3a6eb39a00481a1e4
|