Integrate SearXNG MCP server for advanced web search with filtering, pagination, and customization capabilities
The SearXNG MCP Server is a specialized implementation that bridges the Model Context Protocol (MCP) with the powerful search capabilities of SearXNG, an open-source metasearch engine. By leveraging SearXNG's robust API, this server enhances AI applications by providing comprehensive web searching functionalities, including query execution, pagination support, and advanced filtering mechanisms like time range, language selection, and safe search.
SearXNG MCP Server offers a unique, standardized interface for connecting various AI tools to external data sources. This interoperability is crucial in enabling developers to build sophisticated AI workflows that integrate diverse back-end services without needing deep technical expertise.
The SearXNG MCP Server seamlessly integrates the following core functionalities:
Web Search:
Pagination Controls:
Time Filtering:
Language Selection:
Safe Search Filters:
safesearch
parameters—ranging from none (0
) to strict (2
).These capabilities provide robustness and flexibility in fulfilling diverse search-related requirements necessary for advanced AI applications.
The SearXNG MCP Server adheres strictly to the standards defined by the Model Context Protocol (MCP). It ensures compatibility with multiple MCP clients, including popular choices like Claude Desktop. The server leverages the MCP protocol's standardized endpoints and parameters to facilitate efficient communication between AI applications and external search engines.
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
Below is a compatibility matrix showing the support for different MCP clients:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
To set up and utilize the SearXNG MCP Server, follow these steps:
Installation Command:
npx -y @smithery/cli install @ihor-sokoliuk/server-searxng --client claude
MCP Configuration:
In your MCP configuration file (claude_desktop_config.json
), specify the following snippet for command and environment variables.
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y",
"@smithery/server-searxng"
],
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}
A company could deploy the SearXNG MCP Server to provide employees with a unified search interface across various internal and external databases. By integrating this server via Claude Desktop, users can execute targeted searches using natural language queries, enhancing productivity and access to relevant information.
In content moderation applications, the SearXNG MCP Server ensures that all web-sourced content is filtered according to strict criteria. Integration with Continue allows for automated filtering based on user-defined safesearch settings, ensuring that only safe and accurate results are presented.
The SearXNG MCP Server seamlessly integrates with popular AI clients such as Claude Desktop and Continue through standard API endpoints and well-documented protocols. This ensures that developers can easily implement and manage these integrations without modifying the underlying search engine logic.
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y",
"@smithery/server-searxng"
],
"env": {
"SEARXNG_URL": "YOUR_SEARXNG_INSTANCE_URL"
}
}
}
}
The server’s performance is optimized for responsive and accurate search results, with robust support across various operating environments. The table below outlines the key compatibility details:
Feature | Notes |
---|---|
Language Support | Multilingual queries supported; choose from a wide range of languages. |
Safe Search Levels | 3 levels: None (0), Moderate (1), Strict (2). Customize as needed. |
Compatibility with MCP Clients | Fully compatible with Claude Desktop, Continue and Cursor. |
For advanced setup, developers can configure the server to enhance security and performance. The environment variable SEARXNG_URL
is critical for specifying where the SearXNG instance is hosted.
{
"env": {
"SEARXNG_URL": "http://localhost:8080",
"Safesearch Level": "1" // Optional; can be set in the configuration as well.
}
}
To get started, you can use Smithery’s CLI tool to automatically install the server:
npx -y @smithery/cli install @ihor-sokoliuk/server-searxng --client claude
Include the necessary configurations in your MCP client configuration file to make sure it is correctly set up.
SearXNG offers a more comprehensive aggregation of various public search engines while maintaining privacy by not sending user data. This feature set makes SearXNG a preferred choice for developers needing versatile yet secure web search capabilities.
safesearch
threshold during installation without modifying code?Yes, you can configure the safesearch
level directly in your MCP server configuration file or environment variable settings. This allows for dynamic adjustments based on specific needs.
Absolutely! You can extend language support by adding more entries in SearXNG’s configuration and redeploying the server. This flexibility is one of the strengths of using an open-source solution like SearXNG.
Run basic queries from your MCP client to ensure that results are being fetched as expected. You can also check logs for any potential issues during execution and verification.
Contributors are welcome to contribute new features, bug fixes, or improvements through pull requests on the official GitHub repository. To ensure smooth contributions, please follow our guidelines found in the CONTRIBUTING.md
file within the project.
The SearXNG MCP Server is part of a broader MCP ecosystem designed to support a wide range of AI applications and tools. Developers can find additional resources, documentation, and the latest updates on the official Model Context Protocol (MCP) website and community forums.
By integrating the SearXNG MCP Server, developers gain access to a powerful toolset for building sophisticated search functionalities within their AI workflows, enhancing the capabilities of their applications in ways that are both flexible and secure.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
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