Connect agentic systems to web search using MCP-searxng with customizable SearXNG URLs
MCP-searxng is an MCP server designed to facilitate seamless integration between AI applications and external search systems, leveraging the capabilities of SearXNG. This server acts as a bridge, allowing AI applications such as Claude Desktop, Continue, Cursor, and others to query and receive search results from SearXNG through a standardized Model Context Protocol (MCP). By using MCP-searxng, developers can ensure consistent interaction between their AI applications and the vast array of data repositories provided by searXNG.
MCP-searxng is built with robust features that enable seamless communication between AI applications and search systems. Key capabilities include:
search(query: str)
method allows users to query SearXNG for specific information, ensuring real-time access to a wide range of web content.The architecture of MCP-searxng is designed to be both efficient and adaptable. The server leverages the Model Context Protocol (MCP) to standardize interactions between AI applications and external tools, ensuring consistent performance across different environments. The implementation details involve setting up the necessary environment variables, configuring the MCP client, and integrating the server's main application.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
To get started using MCP-searxng, you can choose one of the following methods:
{
"mcpServers": {
"searxng": {
"command": "uvx",
"args": [
"mcp-searxng"
]
}
}
}
Clone the repository and add the server configuration to your MCP client:
{
"mcpServers": {
"searxng": {
"command": "uv",
"args": [
"--project",
"/absolute/path/to/MCP-searxng/",
"run",
"/absolute/path/to/MCP-searxng/mcp-searxng/main.py"
]
}
}
}
Set the environment variable SEARXNG_URL
to the URL of your SearXNG server (default is http://localhost:8080
).
Run your MCP client, and you should be able to search with SearXNG.
MCP-searxng can significantly enhance various AI workflows by providing robust search capabilities. Here are two realistic use cases:
Integration Example:
search(query: str)
method to retrieve relevant results from SearXNG.Integration Example:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
MCP-searxng is optimized for performance and ensures compatibility with various AI applications. It supports both full integration and tool-only configurations, providing flexibility to meet specific needs.
For advanced users, you can customize the server’s environment settings and command-line arguments based on your requirements. Here's an example configuration snippet:
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-searxng"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Additionally, ensure you secure your environment variables and avoid exposing sensitive information.
uvx
for quick setup, or clone the repository and specify paths in your JSON configuration.examples
directory.Contributors interested in enhancing or contributing to MCP-searxng can follow our contribution guidelines. If you're new to contributions, start by reviewing existing issues on GitHub, signing up for an account, and following our coding standards.
Explore additional MCP-related tools and resources available within the ecosystem:
This comprehensive documentation positions MCP-searxng as a valuable tool for integrating SearXNG search capabilities into AI applications, emphasizing its core features and AI workflow benefits.
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