Add MCP servers to LibreChat using Supergateway for seamless Docker-based integration
LibreChat's Brave Search MCP Server is designed to extend your AI application’s capabilities by integrating advanced search engine functionality through Model Context Protocol (MCP). Built on top of Supergateway, it enables seamless communication between your AI agent and the web-based search engines. This server enhances AI workflows by providing relevant, real-time information directly within the AI environment.
The Brave Search MCP Server is a specialized implementation of an MCP server that integrates with search APIs to provide robust querying capabilities. It serves as a bridge between your AI application and powerful search engines like Google or Bing, allowing your agents to perform sophisticated searches and return relevant results instantly.
The Brave Search MCP Server offers several key features that make it an essential tool in enhancing AI applications:
The architecture of the Brave Search MCP Server is designed to adhere to the principles of the Model Context Protocol. Below are the key components:
FROM node:18
WORKDIR /app
RUN npm install -g supergateway @organization/search-api-server
CMD ["npx", "-y", "supergateway", "--stdio", "npx -y @organization/search-api-server", "--port", "8003"]
ENV SEARCH_API_KEY="your-api-key"
Setting up the Brave Search MCP Server involves several straightforward steps:
Directory Structure: Create a new directory for your server:
mkdir mcp/search
Dockerfile: Write and commit a Dockerfile to define the build process.
FROM node:18
WORKDIR /app
RUN npm install -g supergateway @organization/search-api-server
CMD ["npx", "-y", "supergateway", "--stdio", "npx -y @organization/search-api-server", "--port", "8003"]
Update docker-compose.override.yml
:
Configure your service within the override file.
services:
search:
build:
context: ./search
ports:
- "8003:8003"
networks:
- librechat_default
environment:
- SEARCH_API_KEY=your-api-key
librechat.yaml Configuration: Add your MCP server configuration.
mcpServers:
search:
type: sse
url: "http://search:8003/sse"
Brave Search MCP Server can significantly enhance various AI workflows by providing quick, accurate search capabilities. Here are two typical use cases:
Developers often need to quickly access technical documentation and resources while working on projects. By integrating Brave Search into a code editing environment like Visual Studio Code, developers can perform live searches directly within the editor.
Customer support teams can deploy an AI chatbot that leverages search capabilities to provide instant answers from a knowledge base or FAQ section. The chatbot can query the search API and display relevant results to users in real-time.
The Brave Search MCP Server is designed to work seamlessly with various Model Context Protocol (MCP) clients, including Claude Desktop, Continue, Cursor, and others:
Claude Desktop:
Continue:
Cursor:
Brave Search MCP Server supports the following clients and their compatibility status:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Limited Support |
To ensure optimal performance and security, follow these best practices:
How does Brave Search MCP Server enhance AI applications?
What is the role of Supergateway in this server?
Can Brave Search MCP Server be integrated with other APIs besides search engines?
How do I handle API keys in the Brave Search MCP configuration?
What are the supported APIs for the search functionality?
Contributions are welcome! To get started:
To contribute, check the CONTRIBUTING.md
file for detailed steps:
1. Fork the project on GitHub: https://github.com/username/repo/fork
2. Clone your forked copy of the repository: git clone https://github.com/yourname/repo.git
3. Navigate to the main directory and checkout a new branch: cd repo && git checkout -b new-feature-branch
4. Make your changes, ensure tests pass, and commit them.
5. Push to the remote repository: git push origin new-feature-branch
6. Create a pull request from your forked repository.
Explore further resources in the Model Context Protocol (MCP) ecosystem:
graph TD
A[AI Application] -->|MCP Client| B[Bridge (Supergateway)]
B --> C[MCP Server]
C --> D[Search API/Database]
graph TD
A[User Query] --> B[API Gateway (Supergateway)]
B --> C[MCP Server]
C --> D[Search API or Database]
D --> E[Results]
E --> F[Return Results to MCP Client]
By integrating the Brave Search MCP Server into your AI application, you can significantly enhance its functionality and user experience. This server provides powerful search capabilities that are essential for modern AI applications.
This comprehensive documentation positions the Brave Search MCP Server as a valuable tool for developers looking to integrate advanced search functionalities with their AI applications. It covers all necessary technical aspects, use cases, integration details, and contribution guidelines, ensuring clarity and ease of deployment.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods