MCP Server for working with large Oracle databases
MCP Server for working with large Oracle databases
A powerful Model Context Protocol (MCP) server that provides contextual database schema information for large Oracle databases, enabling AI assistants to understand and work with databases containing thousands of tables.
The MCP Oracle DB Context server solves a critical challenge when working with very large Oracle databases: how to provide AI models with accurate, relevant database schema information without overwhelming them with tens of thousands of tables and relationships.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| get_table_schema | Get detailed schema information for a specific table including columns, data types, nullability, and relationships. Example: Can you show me the schema for the EMPLOYEES table? |
| get_tables_schema | Get schema information for multiple tables at once. More efficient than calling get_table_schema multiple times. Example: Please provide the schemas for both EMPLOYEES and DEPARTMENTS tables. |
| search_tables_schema | Search for tables by name pattern and retrieve their schemas. Example: Find all tables that might be related to customers and show their schemas. |
| rebuild_schema_cache | Force a rebuild of the schema cache. Use sparingly as this is resource-intensive. Example: The database structure has changed. Could you rebuild the schema cache? |
| get_database_vendor_info | Get information about the connected Oracle database version and schema. Example: What Oracle database version are we running? |
| search_columns | Search for tables containing columns that match a specific term. Useful when you know what data you need but aren't sure which tables contain it. Example: Which tables have columns related to customer_id? |
| get_pl_sql_objects | Get information about PL/SQL objects like procedures, functions, packages, triggers, etc. Example: Show me all stored procedures that start with 'CUSTOMER_' |
| get_object_source | Retrieve the source code for a PL/SQL object. Useful for debugging and understanding database logic. Example: Can you show me the source code for the CUSTOMER_UPDATE_PROC procedure? |
| get_table_constraints | Get all constraints (primary keys, foreign keys, unique constraints, check constraints) for a table. Example: What constraints are defined on the ORDERS table? |
| get_table_indexes | Get all indexes defined on a table, helpful for query optimization. Example: Show me all indexes on the CUSTOMERS table. |
| get_dependent_objects | Find all objects that depend on a specified database object. Example: What objects depend on the CUSTOMER_VIEW view? |
| get_user_defined_types | Get information about user-defined types in the database. Example: Show me all custom types defined in the schema. |
| get_related_tables | Get all tables that are related to a specified table through foreign keys, showing both incoming and outgoing relationships. Example: What tables are related to the ORDERS table? |
| run_sql_query | Execute a SQL query and return the results in a formatted table. Example: Can you run this query for me? SELECT * FROM EMPLOYEES WHERE DEPARTMENT_ID = 10 |
{
"mcpServers": {
"db-context": {
"command": "uvx",
"args": ["mcp-cli"],
"env": {
"ORACLE_CONNECTION_STRING": "your-value",
"TARGET_SCHEMA": "your-value",
"CACHE_DIR": "your-value",
"THICK_MODE": "your-value",
"ORACLE_CLIENT_LIB_DIR": "your-value",
"READ_ONLY_MODE": "your-value",
"DEPARTMENT_ID": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| ORACLE_CONNECTION_STRING | Configuration value read at startup. | Optional |
| TARGET_SCHEMA | Configuration value read at startup. | Optional |
| CACHE_DIR | Filesystem location the server is allowed to use. | Optional |
| THICK_MODE | Configuration value read at startup. | Optional |
| ORACLE_CLIENT_LIB_DIR | Filesystem location the server is allowed to use. | Optional |
| READ_ONLY_MODE | Configuration value read at startup. | Optional |
| DEPARTMENT_ID | Configuration value read at startup. | Optional |
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.