jde-readonly-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
jde-readonly-mcp
Read-only Model Context Protocol (MCP) server for inspecting JD Edwards EnterpriseOne schemas, tables, and User Defined Object (UDO) definitions on Oracle Database.
Designed for legacy ERP discovery and operations support where AI agents need structured read access without risking production mutations.
Architecture
flowchart LR
Agent["MCP Client / AI Agent"] -- "stdio (JSON-RPC)" --> Server["FastMCP Server"]
Server --> Guard["SQL & Identifier Guard"]
Guard --> Tools["JDE Read-Only Tools"]
Tools --> Audit["JSONL Audit Log (metadata only)"]
Tools --> Oracle["OracleReadOnlyClient<br/>SET TRANSACTION READ ONLY<br/>timeout + rollback"]
Oracle --> DB[("Oracle Database<br/>(Dedicated RO User)")]
Tools --> Redact["Secret Redactor (UDO XML)"]Related MCP server: legacy-db-mcp
Available Tools (v1)
Tool | Purpose | Safeguards |
| Run a single read-only | SQL AST/token guard, row cap ( |
| Inspect columns, Oracle data types, nullability, and comments from | Identifier validation, schema allow-list, bind variables only. |
| Discover accessible tables in a schema using an optional | Identifier validation, schema allow-list, bind variables, row cap. |
| Fetch UDO XML metadata (for example orchestrations) from the configured UDO metadata table. | Identifier validation, schema allow-list, bind variables, automatic secret redaction on XML/JSON fields. |
Defense-in-Depth Security Model
Application-level guards are never a substitute for database permissions. This server enforces multiple independent layers:
SQL & identifier guard (
guard.py): allows only single-statementSELECTorWITHqueries; strips comments and string literals before scanning; blocks DML/DDL/DCL keywords,FOR UPDATErow locking, Oracle 12c+ inline PL/SQL (WITH FUNCTION/WITH PROCEDURE), and dangerous packages (DBMS_*,UTL_*,OWA_*,CTX_DDL,HTTPURITYPE).Database transaction guard (
oracle_client.py): every execution runs inside an explicitSET TRANSACTION READ ONLYtransaction, setscall_timeout(milliseconds), tags the Oracle session (MODULE,ACTION,CLIENT_IDENTIFIER), fetches at mostlimit + 1rows, and unconditionally executesROLLBACKinfinally.Schema allow-list (
config.py): optionalJDE_ALLOWED_SCHEMASrestricts metadata tools to explicitly approved schemas (for examplePRODDTA,PRODCTL,SY920).Secret redaction (
redact.py): masks likely password, token, API key, and private key values inside UDO XML/JSON payloads before returning them to the model.Metadata-only audit log (
audit.py): appends structured JSONL entries (timestamp, tool, status, SQL, row count, duration) and never writes query result rows or credentials.
See SECURITY.md for the full threat model and a least-privilege Oracle account template.
Installation
Requires Python 3.11+.
Install from PyPI:
pip install jde-readonly-mcp
# With OS credential store support (Windows Credential Manager, macOS Keychain, Linux Secret Service):
pip install "jde-readonly-mcp[keyring]"Or install the latest version directly from GitHub:
pip install "git+https://github.com/jesusmendoza-dev/jde-readonly-mcp.git"With OS credential store support:
pip install "jde-readonly-mcp[keyring] @ git+https://github.com/jesusmendoza-dev/jde-readonly-mcp.git"Or install from a local clone:
git clone https://github.com/jesusmendoza-dev/jde-readonly-mcp.git
cd jde-readonly-mcp
pip install .
# With OS credential store support:
pip install ".[keyring]"Configuration
Configure the server through environment variables:
Variable | Required | Default | Description |
| Yes | - | Oracle Easy Connect DSN (e.g. |
| Yes | - | Dedicated read-only Oracle user. |
| Conditional | - | Oracle password. Required unless |
| Conditional | - | Keyring service name used to resolve the password for |
| No | - | Default schema for metadata tools (e.g. |
| No | (unrestricted) | Comma-separated schema allow-list (e.g. |
| No |
| Default row limit for |
| No |
| Hard upper bound on rows returned per call. |
| No |
| Oracle call timeout in seconds. |
| No |
| Session tag written to Oracle |
| No | (disabled) | Path to append-only JSONL audit log (e.g. |
| No |
| UDO metadata table name used by |
Example MCP Client Configuration
{
"mcpServers": {
"jde-readonly": {
"command": "jde-readonly-mcp",
"env": {
"JDE_DB_DSN": "db-host.example.internal:1521/JDEPDB",
"JDE_DB_USER": "JDE_RO_AGENT",
"JDE_KEYRING_SERVICE": "jde-readonly-mcp",
"JDE_DEFAULT_SCHEMA": "PRODDTA",
"JDE_ALLOWED_SCHEMAS": "PRODDTA,PRODCTL,SY920,DD920",
"JDE_AUDIT_LOG_PATH": "./audit/queries.jsonl"
}
}
}
}Testing
For local development, install in editable mode with test dependencies:
pip install -e ".[dev]"Unit tests run without an Oracle instance using fake database clients and temporary audit files:
PYTHONPATH=src python -m unittest discover -s tests -vOr with pytest:
pytest -vRoadmap
v1 (current): Oracle read-only query, schema/table discovery, UDO XML inspection with secret redaction, SQL guards, JSONL audit logging, and unit test suite.
v2 (planned): Read-only JD Edwards AIS / Orchestrator REST discovery tools (allow-listed
BROWSE/COUNT/ scheduler inspection endpoints over HTTPS, with no orchestration execution).
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only finance and operations controls for AI agents with evidence and safe next actions.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Security layer for AI agents: Retrieve for controlled SQL reads, Guard for allow/deny writes.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to safely inspect Oracle Database schemas, objects, and PL/SQL source with a strict read-only guard, without ever modifying data.MIT
- AlicenseAqualityCmaintenanceLets an LLM explore a cryptic legacy ERP schema in plain language through a semantic layer (table listing, column descriptions, published dictionary) and run single read-only SELECT queries that return capped results. Enforces safety at the database engine level: only reads are authorized, sensitive columns are masked to NULL, queries are aborted after a few seconds, and every call is written to an append-only audit log.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform secure, read-only Oracle data queries, cross-table reconciliation, and workflow bottleneck monitoring through natural-language access, with semantic dictionaries, automatic masking, and no Oracle client required.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely discover database schemas and execute read-only SQL queries through guardrailed tools that block mutations and clamp result sizes.MIT