Skip to main content
Glama
ebs-query-mcp

ebs-query-mcp

by abosrie13

ebs-query-mcp

Lets Claude read and work in Oracle E-Business Suite R12 (12.2, 12.1): ask questions in plain language, check setups, and make changes through Oracle's official APIs, always with a test run first and your explicit yes before anything is saved.

It is the on-premise counterpart of the Fusion MCP. Fusion has no database access; EBS does, so this server connects directly to the EBS database with python-oracledb.


What it can do

Read and explain

  • Answer questions with live data ("open POs for supplier X in OU Y", "who approves requisitions above 25,000?").

  • Find where anything is stored: tables, columns, flexfield prompts, foreign keys, concurrent program parameters.

  • Follow concurrent requests and workflow notifications.

Know EBS: ebs_get_hints gives join traps (MOAC, _TL, _F, items per org) and implementation guides for Inventory, Purchasing, Sourcing/iSupplier: the setup order, where each setup is stored, ready-made check queries, required profiles, and common errors with their fixes.

Act (on test/UAT instances; every change = test run -> your yes -> commit)

Area

Saved actions

Users and people

create user (no password; the person sets it in EBS), link user to employee, add responsibility, end-date user, create employee, create location

Responsibilities and profiles

copy a responsibility (menu, request group, exclusions, profiles; optionally assign it), set or remove a profile value

Purchasing

create requisition (Requisition Import), cancel PO, define buyer, create supplier, create supplier site

Inventory

create item from a template, assign item to an org, add a category to a category set, assign item to a category, create locator

Any program

submit / cancel a concurrent request (Replicate Seed Data, Fill Employee Hierarchy, Workflow Background Process ...), respond to your own notifications

Setups with no official API (subinventories, organization parameters, financials/purchasing/receiving options, approval groups, position hierarchies, shipping networks, opening periods) are done in the EBS screens; the MCP checks them afterwards.


Related MCP server: MCP4Acumatica

Team rules (read before installing)

  1. Use a read-only database user for reading (XX_MCP_RO). Ask your DBA to run setup/create_mcp_readonly_user.sql. Avoid giving everyone the APPS password.

  2. Actions only on test/UAT. An instance marked production refuses actions unless allow_on_production: true is set on purpose.

  3. Your passwords stay on your laptop, in ~/.ebs-query/.env. Never send them in chat or commit them. .env and config.yaml are git-ignored.

  4. Client-specific notes stay private: put them in ~/.ebs-query/knowledge/ (see below), not in the shared project.

  5. Every call is logged locally to ~/.ebs-query/audit.jsonl.


Install (about 15 minutes)

0. What you need

  • VPN / network access to your EBS database.

  • From your DBA: host, port, service name of the EBS database, and a read user + password (and for actions on test: the APPS password). No DBA at hand? In EBS: System Administrator > Oracle Applications Manager > Dashboard > Hosts / Database status shows the DB host; port and service are in the database details.

  • Your EBS login name and a responsibility it holds (actions run as you).

1. Tools (once per laptop)

winget install --id astral-sh.uv -e
winget install --id Git.Git -e

uv installs the right Python by itself.

2. Get the project

git clone https://github.com/abosrie13/ebs-mcp.git EBS-MCP
cd EBS-MCP; uv sync

3. Oracle Instant Client (only if needed)

Many EBS databases still use an old password type that the built-in driver cannot handle; the setup wizard tells you if yours does (DPY-3015). Then download Instant Client Basic (19.x), Windows x64 from oracle.com, unzip it to C:\oracle\instantclient_19, and run the wizard again. It finds the folder automatically.

4. Run the setup wizard

uv run ebs-query-mcp-setup

It asks for the instance name, test/production, host, port, service, users and passwords (typed hidden), your EBS login and default responsibility, and an optional default operating unit. It then tests the connection, checks your EBS user and responsibility, writes ~/.ebs-query/config.yaml and .env, and prints the registration command. Run it again to add another instance (DEV, PROD ...); earlier settings are kept with a backup.

5. Register with Claude

Run the command the wizard printed, typically:

claude mcp add --scope user EBS -- "C:\path\to\EBS-MCP\.venv\Scripts\ebs-query-mcp.exe"

(Claude Desktop instead: add the same command under mcpServers in its config file.)

6. Try it, in a new chat

  1. "run ebs_health_check" -> shows your EBS release and user.

  2. "what responsibilities do I have?" -> ebs_my_access.

  3. "list the operating units" -> a live query.

  4. "check the purchasing setup of operating unit X" -> setup hints + checks.

  5. Optional, on test: "copy responsibility X as Y" -> you see a test run first; answer no to leave EBS untouched.


Private knowledge (your own notes, never shared)

Put YAML files in ~/.ebs-query/knowledge/. They merge into the shared topics:

setup_purchasing:
  rules:
    - "At client X approvals use AME, not the position hierarchy."
my_client_notes:
  summary: Things specific to my client
  rules:
    - "Requisitions above 50k need the CFO approval group."

Updating

git pull; uv sync

Then start a new chat so Claude loads the new version. See CHANGELOG.md.

Adding to the shared MCP

  • New action: a YAML entry in src/ebs_query_mcp/registry/ (PL/SQL block using :binds, typed params, outputs, a success rule). Use official APIs only, never direct table writes; test it with dry_run=true on UAT; add it to the table above.

  • New know-how: add rules to src/ebs_query_mcp/knowledge/*.yaml, general and in your own words (no client names, accounts or copied documents).

  • Run uv run pytest before sharing.

Troubleshooting

Message

Meaning / fix

DPY-3015 password verifier

Install Instant Client (step 3) and rerun the wizard.

ORA-12170 / DPY-6005 / timeout

VPN off, or wrong host/port.

ORA-01017

Wrong user or password: rerun the wizard.

ORA-12514

Host/port fine, wrong service name.

"Actions are disabled"

Actions are off for that instance (wizard: allow changes).

"marked production: actions are blocked"

By design. Use a test instance.

"Operating unit access is not allowed"

Run the action with a responsibility that can access that OU (responsibility= and org_id=).

Tools missing / old behaviour in Claude

Start a new chat (and uv sync after updating).

How it works (technical)

Side

How

Read

One guarded SELECT/WITH per call: no DML/DDL/DBMS_*/UTL_*, denied tables, read-only transaction, always rolled back, row caps, sensitive columns redacted (passwords, bank accounts, national ids). CURRENT_SCHEMA = APPS; MOAC context via org_id.

Act

FND_GLOBAL.APPS_INITIALIZE as your EBS user + a responsibility it really holds, MO init, then the API with every value as a bind. ebs_prepare_action builds and can dry-run (execute + rollback); ebs_commit_action(token, confirmed=true) runs it for real with a single-use token (15 min), committing only when the API reports success.

Config

~/.ebs-query/config.yaml (or EBS_MCP_CONFIG), passwords in .env next to it. See config.example.yaml.

Tests: uv run pytest (no database needed).

Available Tools

18 tools
ebs_commit_actionA
Destructive

Step 2 of 2: execute a prepared action and COMMIT (only if the API reports success; otherwise it is rolled back). Requires confirmed=true, which you may set only after the person explicitly said yes to the preview. Tokens are single-use and expire.

Inputs: token (required), confirmed. Returns: object

ebs_describe_flexfieldsB
Read-onlyIdempotent

Map descriptive flexfield columns (ATTRIBUTE1..n) to their business prompts, contexts and value sets -- for a table (e.g. PO_HEADERS_ALL) or a DFF name. Context 'Global Data Elements' applies to every row.

Inputs: context, table_name, flexfield_name. Returns: object

ebs_describe_tableA
Read-onlyIdempotent

Columns, data types, FND column descriptions, keys and registered foreign keys of an EBS table or view (synonyms are followed).

Foreign keys come from FND_FOREIGN_KEYS -- the joins Oracle registered for the table -- so use them to build joins instead of guessing.

Inputs: name (required), include_view_sql. Returns: object

ebs_find_concurrent_programA
Read-onlyIdempotent

Find concurrent programs by user name or short name and show their parameters in argument order -- exactly what submit_concurrent_request needs.

Inputs: term (required), limit, include_parameters. Returns: object

ebs_get_hintsA
Read-onlyIdempotent

EBS know-how: join traps, table maps, and implementation/setup guides (setup order, where each setup is stored, required profiles, common errors). Join topics: moac, translation, date_effective, lookups, flexfields, items, purchasing, payables, receivables_om, gl, concurrent, workflow, users. Setup topics start with setup_ (setup_foundation, setup_inventory_org, setup_items, setup_purchasing, ...). No topic = index of all topics. Read the setup_ topic before doing or checking a setup.

Inputs: topic. Returns: object

ebs_health_checkA
Read-onlyIdempotent

Connect and report EBS release, database, session user and action setup.

check_actions=true also opens the action connection and validates the configured apps user and default responsibility (nothing is changed).

Inputs: check_actions. Returns: object

ebs_list_actionsA
Read-onlyIdempotent

Actions ebs_prepare_action accepts on this instance, with parameters.

Inputs: no named parameters. Returns: object

ebs_list_instancesA
Read-onlyIdempotent

List the configured EBS instances and which one is active.

Inputs: no named parameters. Returns: object

ebs_list_notificationsB
Read-onlyIdempotent

Workflow notifications in a user's worklist (roles included) -- by default the configured apps user. status: OPEN, CLOSED, CANCELED.

Inputs: limit, status, user_name. Returns: object

ebs_list_requestsB
Read-onlyIdempotent

Recent concurrent requests, newest first. Filter by requester, program (user or short name, LIKE) and status_code (E=Error, G=Warning, C=Normal...).

Inputs: days, limit, program, user_name, +1 more. Returns: object

ebs_list_tablesA
Read-onlyIdempotent

Find tables / views / APPS synonyms by name (LIKE pattern, % allowed).

'PO_HEADERS' matches anything containing it. Adds the FND table description when the table is registered in FND_TABLES.

Inputs: pattern (required), limit, owner, include_views. Returns: object

ebs_my_accessA
Read-onlyIdempotent

Active responsibilities (keys and names) of an EBS user -- by default the configured actions.apps_user. Use a key from here as responsibility.

Inputs: user_name. Returns: object

ebs_notification_detailB
Read-onlyIdempotent

A workflow notification: header, message attributes (SEND = info shown to the approver, RESPOND = what the response sets) and the allowed RESULT codes for respond_notification.

Inputs: notification_id (required). Returns: object

ebs_prepare_actionA
Read-only

Step 1 of 2 for any change in EBS. Validates the request and returns a preview, the exact PL/SQL (values as binds) and a single-use token.

action: a built-in (submit_concurrent_request, cancel_concurrent_request, respond_notification), a registered API from ebs_list_actions, or raw_plsql (params: block, binds, outputs) when enabled. responsibility: FND responsibility_key to run under (see ebs_my_access); defaults to the configured one. dry_run=true executes and ROLLS BACK when the action supports it, so the API's own validation shows up now.

Nothing is changed by this call. Show the preview to the person and call ebs_commit_action only after their explicit yes.

Inputs: action (required), org_id, params, dry_run, +2 more. Returns: object

ebs_request_statusC
Read-onlyIdempotent

Phase/status, timings, completion text, arguments, log/output file names and child requests of a concurrent request.

Inputs: request_id (required). Returns: object

ebs_run_queryA
Read-onlyIdempotent

Run ONE read-only SELECT (or WITH ... SELECT) against EBS.

Pass values as :binds ({"po_num": "1234"}), not inline literals. org_id sets the MOAC context so org-striped views (PO_HEADERS, AP_INVOICES) return rows; querying the _ALL table with an ORG_ID filter is preferred. Results are capped at max_rows (default from config); sensitive columns are masked.

Inputs: sql (required), binds, org_id, max_rows. Returns: object

ebs_search_columnsB
Read-onlyIdempotent

Find where something is stored: column names matching term, plus FND column descriptions containing it (e.g. term='need by date').

Inputs: term (required), limit, table_pattern, search_descriptions. Returns: object

ebs_use_instanceB
Read-onlyIdempotent

Switch the session to another configured EBS instance (e.g. UAT, PROD).

Inputs: instance (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 18 tools

    Disambiguation5/5

    The tools partition cleanly into session/health, read-only query and metadata discovery, concurrent request inspection, workflow notification inspection, and two-phase action execution. List-vs-detail pairs (requests/status, notifications/detail) and prepare-vs-commit are explicitly distinguished, so an agent can select the right tool.

    Naming Consistency4/5

    All tools share the ebs_ prefix and mostly use verb_noun forms (list_instances, run_query, describe_table, prepare_action). A few are noun-first (my_access, health_check, request_status, notification_detail), which is a minor deviation but still readable and predictable.

    Tool Count4/5

    18 tools is slightly above the typical 3-15 sweet spot, but the server spans several EBS subdomains: instance management, SQL/metadata discovery, concurrent requests, workflow, and safe actions. Each tool has a distinct role, so the count is justified though somewhat heavy.

    Completeness4/5

    The surface covers instance/session setup, access/health checks, read-only querying, table/column/flexfield discovery, concurrent programs/requests, workflow notifications, and generic prepare/commit actions. Minor gaps remain, such as retrieving concurrent request log/output content, but most core query and action workflows are covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude to interact with Acumatica ERP through a remote MCP server with per-user OAuth, role-based access, and 44 tools for querying and managing ERP data.
      21
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to securely interact with Acumatica ERP 2025 R2 via per-user OAuth, role-based access, and sensitive field redaction, providing 48 tools for data lookup, utility, and schema discovery.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to securely submit, monitor, wait for, and retrieve logs for Oracle E-Business Suite R12 concurrent requests using the Global HRMS Manager responsibility.
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Enables Claude to securely manage EBMS ERP operations—sales orders, purchase orders, products, tasks, and MRP planning—with verified writes and read-only planning.
      11
      MIT