LibreChat
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
What is LibreChat?
LibreChat is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enhanced chatgpt clone: features agents, mcp, deepseek, anthropic, aws, openai, responses api, azure, groq, o1, gpt-5, mistral, openrouter, vertex ai, gemini, artifacts, ai model switching, message se...
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anth
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx librechatConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use LibreChat
LibreChat is a self-hosted, open-source AI chat platform that acts as a unified interface for dozens of AI providers — OpenAI, Anthropic, Azure, Google Vertex, AWS Bedrock, DeepSeek, Mistral, Groq, and more — all in one web application. It is an official MCP client, meaning you can plug any MCP server into LibreChat and have your AI agents use those tools natively inside conversations. Beyond MCP, it includes a built-in code interpreter, DALL-E image generation, file analysis, web search, and a plugin ecosystem, making it a full-featured alternative to ChatGPT Plus for teams that need data privacy and model flexibility.
Prerequisites
- Docker and Docker Compose installed (recommended deployment path)
- Node.js 18+ if running without Docker
- MongoDB instance (included in the Docker Compose stack)
- API keys for at least one AI provider (e.g. OPENAI_API_KEY, ANTHROPIC_API_KEY)
- An MCP-compatible server you wish to connect (LibreChat itself is the MCP client)
Clone the LibreChat repository
Clone the official repo to get the Docker Compose files and example configuration.
git clone https://github.com/danny-avila/LibreChat.git
cd LibreChatCopy and configure the environment file
Copy the example .env file and add your AI provider API keys and any other required settings.
cp .env.example .env
# Edit .env and set values like:
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...
# MONGO_URI=mongodb://mongodb:27017/LibreChatStart LibreChat with Docker Compose
Bring up the full stack including MongoDB and the LibreChat web application. The first startup downloads images and may take a few minutes.
docker compose up -dAccess the web interface
Open your browser to http://localhost:3080 and create an admin account on first launch.
# Open browser at:
http://localhost:3080Configure MCP servers inside LibreChat
In the LibreChat admin panel, navigate to the MCP Servers section and add the command, args, and any environment variables for each MCP server you want to expose to agents.
Create an Agent that uses MCP tools
In the Agents section, create a new agent, select the MCP tools you want to enable, and start a conversation to test the integration.
LibreChat Examples
Client configuration
LibreChat acts as the MCP client. This snippet shows how to add an MCP server entry in librechat.yaml (the runtime config file) so LibreChat agents can use it.
{
"mcpServers": {
"librechat": {
"command": "npx",
"args": ["librechat"]
}
}
}Prompts to try
Prompts that demonstrate LibreChat's multi-model switching, code interpreter, and MCP tool usage inside the chat interface.
- "Switch to Claude 3.5 Sonnet and summarize the attached PDF document"
- "Use the code interpreter to analyze this CSV file and plot a bar chart of monthly revenue"
- "Generate an image of a futuristic city skyline at sunset using DALL-E"
- "Search the web for the latest news on AI regulation in the EU and summarize the top three stories"
- "Using the connected GitHub MCP server, list all open pull requests in my repository that are more than 7 days old"Troubleshooting LibreChat
Docker containers start but the UI shows a blank page or 502 error
The LibreChat app container may still be initializing. Wait 30-60 seconds and refresh. Check logs with 'docker compose logs librechat' to see startup progress. Ensure the MONGO_URI in .env matches the MongoDB service name in docker-compose.yml.
MCP server tools are not appearing in the agent tool list
Verify the MCP server command is correct and executable within the LibreChat container environment. Node.js and the target package must be available inside the container. Test the MCP server command manually inside the container with 'docker exec -it librechat bash'.
AI provider API calls fail with authentication errors
Double-check that your API keys are set in the .env file without extra spaces or quotes. After changing .env, restart the stack with 'docker compose down && docker compose up -d' so the new environment variables are loaded.
Frequently Asked Questions about LibreChat
What is LibreChat?
LibreChat is a Model Context Protocol (MCP) server that enhanced chatgpt clone: features agents, mcp, deepseek, anthropic, aws, openai, responses api, azure, groq, o1, gpt-5, mistral, openrouter, vertex ai, gemini, artifacts, ai model switching, message search, code interpreter, langchain, dall-e-3, opena It connects AI assistants to external tools and data sources through a standardized interface.
How do I install LibreChat?
Follow the installation instructions on the LibreChat GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with LibreChat?
LibreChat works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is LibreChat free to use?
Yes, LibreChat is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
LibreChat Alternatives — Similar Communication Servers
Looking for alternatives to LibreChat? Here are other popular communication servers you can use with Claude, Cursor, and VS Code.
Slack
★ 86.1kEnables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
Note Gen
★ 11.9kA cross-platform Markdown AI note-taking software.
DeepChat
★ 5.8k🐬DeepChat - A smart assistant that connects powerful AI to your personal world
WhatsApp MCP
★ 5.7kConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without
Apple
★ 3.1kEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
Md2WeChat
★ 2.3kMarkdown to WeChat CLI | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、AI 配图 、批量发布
Browse More Communication MCP Servers
Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up LibreChat in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use LibreChat?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.