#16509·LibreChat

[Enhancement]: Give YAML MCP servers database identities for ACL

Author: FlorianFiebigCreated Sep 29, 2026Updated Sep 29, 2026
Labels✨ enhancement

What features would you like to see added?

An MCP server declared under mcpServers: in librechat.yaml should support the same sharing and per-user/group visibility as a UI-created server. YAML should remain the source of truth for its connection settings.

Today, YAML servers live only in the registry cache. They have no MCPServer document or _id, so features that need a resource ID cannot use ACLs:

Feature UI-created server YAML server
Share with users or groups Available Share button absent
Restrict visibility ACL VIEW Visible to everyone with global MCP use permission
Effective permissions From ACL Falls back to VIEW (1)
Single-server GET/PATCH/DELETE Finds the document Returns 404

We had to build and maintain a custom Node script that reads the YAML config and creates servers through the API just to use ACLs. That adds avoidable work to config-managed deployments.

More details

MCPServersInitializer registers YAML servers with addServer(..., 'CACHE'). The DB path in ServerConfigsDB creates the document and owner grant. The cache tier's getAll() has no userId to filter by; the client needs dbId for sharing and effective permissions. The name-based resource routes also look up a DB document, so they return 404 for YAML servers.

The desired behavior is:

  • Persist a stable identity for each YAML server, including config-only process servers (stdio), while keeping YAML connection settings read-only in the UI and API.
  • Allow authorized users to share YAML servers and scope their visibility through ACLs.
  • Preserve today's visibility for existing configurations with no server-specific grants.

Open decisions: who owns these documents; what happens to ACLs when a YAML server is renamed or removed; whether UI-added grants survive restart; and whether YAML should declare initial per-server grants so access policy can be versioned too. The existing interface.mcpServers permission flags are global and do not provide per-server scoping.

Which components are impacted by your request?

  • General
  • UI
  • Other (MCP registry / access control)

Pictures

None.

Code of Conduct

  • I agree to follow this project's Code of Conduct