Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-search-preview· OpenAIHugging Face LMArena Search Arena 24K

how can i use mcp tool servers in the openwebui

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro-exp-03-25-grounding’s answer.
  1. User

    how can i use mcp tool servers in the openwebui

  2. Assistant

    To integrate MCP (Model Context Protocol) servers into Open WebUI, you can utilize the MCP Connector, which facilitates seamless communication between Open WebUI and MCP-compatible AI models. Here's how to set it up:

    1. Install the MCP Connector:

    • Method 1: Install from GitHub

      Open your terminal and execute:

      pip install git+https://github.com/ivanuser/open-webui-mcp-connector.git
    
    • Method 2: Install through Open WebUI

      Within Open WebUI:

      1. Navigate to Workspace > Functions.
      2. Click on "Import Function".
      3. Enter the GitHub URL: https://github.com/ivanuser/open-webui-mcp-connector.
      4. Click "Import".

    2. Configure MCP Servers:

    After installation, configure your MCP servers:

    1. In Open WebUI, go to Workspace > Functions.

    2. Locate the "MCP Connector" function and click the edit (pencil) icon.

    3. In the "MCP_SERVERS" field, input your MCP server details in JSON format:

      [
          {
              "name": "MyMCP Server 1",
              "url": "https://mcp.example.com",
              "api_key": "your_api_key_here"
          },
          {
              "name": "MyMCP Server 2",
              "url": "https://another-mcp.example.com",
              "api_key": "another_api_key_here"
          }
      ]
      
    4. Click "Save".

    5. Enable the function by toggling the switch.

    Once configured, MCP server models will appear in the model selection dropdown within Open WebUI, prefixed with "MCP/" (this prefix can be customized in the settings).

    Key Features of the MCP Connector:

    • Connect to multiple MCP servers simultaneously.
    • Support for API key authentication.
    • Automatic model discovery from MCP servers.
    • Support for streaming responses.
    • Robust error handling and timeout management.
    • Debug mode for troubleshooting.

    For more detailed information and troubleshooting, refer to the MCP Connector's GitHub repository[1].

    By following these steps, you can effectively integrate MCP servers into Open WebUI, enhancing its functionality with various AI models.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.