LibreChat MCP Setup: Connect MCP Servers to LibreChat

LibreChatOpen sourcestdioSSEStreamable HTTPOfficial site

What it is

An open-source, self-hostable ChatGPT-style web app supporting many model providers, agents, and multi-user deployments.

How MCP works in LibreChat

LibreChat is a server-side MCP client. Admins declare servers in librechat.yaml over stdio, SSE, or streamable-http, and they become available as agent tools.

Config file location

librechat.yaml defines servers under a top-level mcpServers key (type defaults to stdio when a command is given).

Add your first server

A good first server is Playwright MCP — Microsoft's browser automation server. It runs locally over stdio via npx, needs no API key, and gives the agent a real browser to drive. Here is the verified LibreChat config:

mcpServers:
  playwright:
    type: stdio
    command: npx
    args:
      - "@playwright/mcp@latest"

Restart or reload LibreChat after saving, then confirm the server's tools show up. Swap in any other server from the directory using the same structure.

Transports & platforms

Transportsstdio, SSE, Streamable HTTP
PlatformsWeb, Linux, macOS, Windows
LicenseOpen source
VendorLibreChat

FAQ

Does LibreChat support MCP?

Yes. LibreChat works as an MCP client over stdio, SSE, Streamable HTTP. LibreChat is a server-side MCP client. Admins declare servers in librechat.yaml over stdio, SSE, or streamable-http, and they become available as agent tools.

Where is the LibreChat MCP config?

librechat.yaml defines servers under a top-level mcpServers key (type defaults to stdio when a command is given). The verified example above shows the exact structure it expects.

Which MCP servers work with LibreChat?

Any server that speaks a transport LibreChat supports (stdio, SSE, Streamable HTTP). Browse the MCP server directory on this site to find databases, browser automation, API integrations, and dev tools, then add them using the config format above.

Keep exploring