# Custom SQL Tools Come to ORDS MCP

ORDS 26.3 brought [Custom SQL Tools](https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.3/orddg/custom-sql-tools.html) to the ORDS MCP server. You can now build your own read and write MCP tools against the Oracle Database using the SQL and PL/SQL you already know (and maybe even already have). Administrators define each tool’s SQL or PL/SQL and inputs; AI clients discover and invoke the named operation.

I’m working on a full-length post about an ORDS MCP Server for Oracle E-Business Suite (EBS) that I built, but I wanted to first write about how useful it is going to be.

I use MCP servers throughout my workday:

- I use the Jira and MS Outlook Email MCP servers along with GitHub to pick up and complete development tasks.
- I use the QuickBooks MCP server to manage my company invoicing, tax preparation, etc.
- I use the MS Outlook Calendar MCP server to manage calendars across several clients.

Providing modern AI agents with secure access to your data turns chat into actions. When agents can combine tools across systems, the benefits grow. For example, I ask Codex to copy last month’s QuickBooks invoices and populate the hours in the new invoices using the current billing period’s time entries from my APEX time entry system (via an OCI MCP server). With ORDS Custom SQL Tools, I can make on-premises Oracle Database functionality available to AI clients through ORDS too, using SQL and PL/SQL.

**ORDS MCP Custom SQL Tools allow me to**:

- Reuse an existing ORDS standalone deployment, upgraded to 26.3 and configured for MCP.
- Build tools using SQL and PL/SQL.
- Reuse existing security rules and business logic in database policies, views, and PL/SQL.

For an EBS site, once your implementation establishes the correct EBS security context, you can quickly add tools using code that enforces existing access rules, including Multi-Org Access Control (MOAC).

**Talking of security:** ORDS validates access tokens from an identity provider such as Microsoft Entra ID. Roles or scopes control access to MCP database pools and can also restrict individual tools. Your database code and policies control what users can do with the data, using features such as VPD or Oracle Deep Data Security where supported and configured.

> For me, this is the exciting part: the SQL, PL/SQL, and business logic we have spent years building can now support a new way of working. Start with one useful task you already know how to do in PL/SQL, and make it available as an MCP tool.
