Skip to content

Feature request : read-only mode for the built-in MCP server #33323

Closed

Description

@Aluriak

Is your feature request related to a problem? Please describe.

Context

We run OpenMetadata as the data catalogue of a data platform, and expose its built-in MCP server to an internal LibreChat deployment. Users reach it with their own OpenMetadata identity (OIDC token forwarded as a bearer), so catalogue permissions apply as expected.

We are trying a systematic approach on MCP servers integrated in our AI stack regarding what an agent can and cannot do. One important point is that all MCP are duplicated, in a RO and RW version, with a side-goal being teaching users to seek for that information if not present.

Describe the solution you'd like

A server-side setting that restricts the MCP tool catalogue to read tools, something like OPENMETADATA_MCP_READ_ONLY=true, and the ability to deploy at least 2 MCP servers on the same openmetadata instance.

On our side, we would then create two MCP server links, one for the ReadOnly and one for the ReadWrite.

The MCP server exposes read and write tools in the same catalogue. Your own tool reference already labels them (search_metadata and get_entity_details as Read, create_glossary, create_lineage, patch_entity and others as Write) so the distinction exists conceptually. What is missing is a way to register only the Read ones.

Describe alternatives you've considered

An equivalent toggle in the MCP server configuration exposed at /api/v1/system/mcp/config.

Would still need two MCP servers to co-exists with different paths and config.

Or maybe a flag that we may enforce (librechat-side) that would indicate to mcp to ignore and reject any write operation for the request ?

Additional context

We are aware that a user without edit rights cannot actually modify anything: the write tool is registered, the call reaches OpenMetadata, and the permission check rejects it. That is correct behaviour and we are not asking to change it.

Three reasons we would still want the catalogue itself restricted:

  • defence in depth : a tool that is not registered cannot be called at all. A tool that is registered but rejected relies on the permission check being correct on every path. For a catalogue that documents sensitive data, the stronger guarantee is worth having.

  • agent behaviour : LLM agents tends to retry, and an agent that sees patch_entity in its catalogue and gets a permission error will often try a different argument shape, then another, before giving up, burning context and producing confusing output all the way. We have seen agent loops of this kind hit our framework's recursion limit. Not exposing the tool avoids the whole scenario and provides clarity for both agents and end users.

  • clarity for end users : Our users choose which tools an assistant may use when they build it. Being able to offer a plainly read-only catalogue lets us say "this one only reads" and have it be structurally true, rather than "this one can write, but probably not for you".

  • teaching good practice in agentic work : this is finally our biggest goal, we want to teach users that agents are not magic. One important step for this is to demystify the capabilities of agents, which are too often unclear about their own capabilities (especially when automatically linked to user's right via OIDC for example)

Pre-submission checklist

  • I searched for duplicate feature requests.

Activity

  1. added
    enhancement
    on Sep 15, 2026
  2. pmbrull commented on Oct 22, 2026

    @pmbrull
    Member

    you can use the MCP by either impersonating a user or a bot, both of them having their own RBAC. adding an extra layer should not be necessary as agents won't do more than their user/bot is allowed to do

  3. Aluriak commented on Oct 22, 2026

    @Aluriak
    Author

    So, if I understand correctly, your suggestion is to create two accounts for each user (one read-only and one read-write) and have them switch between the two depending on their needs ? I find this rather cumbersome, especially in an environment with many users.

    For reference, several MCP servers provide a dedicated read-only mode, such as mcp-glpi (GLPI_READ_ONLY) and mcp-clickhouse (CLICKHOUSE_ALLOW_WRITE_ACCESS).

    The rationale is that the ability to write through an MCP server should be independently controllable from the user's permissions in the underlying application. An administrator may want to let users leverage an LLM to search and analyze metadata without allowing it to modify anything, even if those users have write permissions in OpenMetadata itself.

    A read-only mode would make this possible without requiring duplicate accounts or changes to existing roles and policies. It would also allow administrators to enforce a read-only policy at the MCP server level, regardless of the permissions granted to individual users in OpenMetadata.

    Would you consider at least adding a configuration option to disable write operations in the MCP server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    • Status
      Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions