- Home
- MCP servers
- Brave Search
Brave Search
- javascript
19
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can connect an MCP server to LibreChat using the Supergateway bridge so your stdio-based MCP runs as an SSE endpoint. This lets your agent access tools and data sources through a consistent, containerized setup while keeping sensitive details protected via environment variables.
How to use
Connect a remote MCP server via the HTTP/SSE path. The HTTP configuration exposes the MCP server through an SSE endpoint that LibreChat can subscribe to. Use the example below as a reference to configure the server in your setup.
How to install
Prerequisites you need before starting:
-
Docker and Docker Compose installed on your machine.
-
Access to the MCP server you want to integrate (the server must expose an SSE endpoint over HTTP).
Additional configuration and usage notes
Configure the MCP server as an HTTP (SSE) endpoint in LibreChat so the agent can connect to it. The example below shows a typical HTTP configuration entry that points to the SSE URL of the MCP server.
mcpServers:
mcp_server:
type: http
url: "http://mcp-server:8002/sse"
# args can be omitted if there are no additional startup arguments
args: []
Security and best practices
-
Never expose sensitive keys or tokens in code or shared configuration files.
-
Use environment variables for secrets and pass them to containers securely.
-
Isolate services and apply the least privilege principle to container permissions.
-
Regularly update dependencies and monitor for security advisories.
Troubleshooting
If you encounter connection or startup issues, start by checking container logs and network configuration. Look for messages about failed SSE handshakes, port conflicts, or missing environment variables.
Verify that the MCP server is reachable at the configured URL from the LibreChat containers and that the SSE endpoint is exposed on the expected path.
Notes and examples
-
The typical port for Brave Search MCP is 8003. Other MCP servers can reserve ports from 8004 to 8099 for future use.
-
All services should join the librechat_default Docker network so containers can resolve each other by service name.