Best for
- Developers needing to build or customize an AI chat interface.
- Teams looking to leverage MCP tools to enhance model capabilities.
- Developers familiar with the Hugging Face ecosystem seeking quick deployment.
Chat UI is a powerful open-source chat interface focused on OpenAI-compatible APIs, with built-in MCP tool support. It is suitable for developers needing to quickly build custom AI chat fronts, but attention must be paid to API key management and external dependency risks.
Chat UI is a chat interface for large language models, built with SvelteKit and powering HuggingChat. It only supports OpenAI-compatible APIs, configured via environment variables. Chat UI can connect to various OpenAI-compatible endpoints such as Hugging Face Inference Providers, llama.cpp, Ollama, OpenRouter, etc. It also integrates MCP (Model Context Protocol) tools, allowing models to call external tools. This MCP server provides MCP support for Chat UI, enabling it to act as an MCP client.
To use this MCP server, you need to clone the Chat UI repository and configure environment variables.
git clone https://github.com/huggingface/chat-uicd chat-ui.env.local, set OPENAI_BASE_URL and OPENAI_API_KEY. For example:OPENAI_BASE_URL=https://router.huggingface.co/v1
OPENAI_API_KEY=hf_xxxnpm installnpm run dev -- --openNote: MCP server support is not a standalone installation; it is built into Chat UI. You do not need to install a separate MCP server package.