Privacy-focused MCP server integrating SearXNG for customizable meta searches
The SearXNG MCP Server is a specialized MCP (Model Context Protocol) implementation that integrates with SearXNG to provide privacy-focused meta search capabilities. It enables AI applications, including tools like Claude Desktop, Continue, Cursor, and others, to perform efficient and secure searches through multiple engines, combining the power of various search providers into a unified interface.
The SearXNG MCP Server offers several core features that significantly enhance its compatibility with AI applications:
The architecture of the SearXNG MCP Server is designed with the Model Context Protocol (MCP) in mind. Each client (AI applications like Claude Desktop, Continue, Cursor, etc.) interacts through specific MCP commands that enable it to access search functionalities provided by the server. The protocol flow and data architecture are meticulously implemented to ensure seamless integration.
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
This diagram illustrates the flow from an AI application (Client) sending requests through the MCP protocol to the SearXNG MCP Server, which then interacts with various data sources/tools.
Installing the SearXNG MCP Server is straightforward and can be done using the following commands:
npm install -g @kevinwatt/mcp-server-searxng
This command installs the SearXNG MCP Server as a global npm package, allowing you to run it directly from your system.
Add MCP Server in Dive Desktop:
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/mcp-server-searxng"
]
}
}
}
Save Configuration to Install MCP Server:
This server plays a crucial role in several AI workflows, providing seamless integration and enhancing the user experience across various applications:
In this scenario, an AI researcher uses SearXNG MCP Server to automate the process of gathering information from multiple sources. They define complex queries with specific categories (e.g., "science" or "news"), time ranges, and filtering options to ensure that only relevant results are returned. The automated assistant then processes these findings to generate summaries or insights.
A company's help desk utilizes the SearXNG MCP Server to address customer inquiries more efficiently. By integrating this server into their ticketing system, they can automatically route queries to different search engines based on urgency and complexity. The results are then analyzed by an AI assistant, which provides answers in a structured format.
The SearXNG MCP Server is designed to be compatible with various MCP clients, including:
This compatibility ensures that the server can seamlessly interact with a wide range of AI applications without requiring extensive customization or configuration.
The SearXNG MCP Server has been thoroughly tested and is compatible with various environments and configurations. Here’s a quick glance at its performance:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This table highlights the specific features supported by each MCP client, illustrating where full support is available and in what capacity.
Advanced users can customize their SearXNG MCP Server setup to meet specific requirements or enhance security:
Custom User-Agent: Modify SEARXNG_USER_AGENT
for requests.
SEARXNG_USER_AGENT="CustomBot/1.0"
Environment Variables:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"SEARXNG_INSTANCES": "http://localhost:8080,https://searx.example.com",
"SEARXNG_USER_AGENT": "CustomBot/1.0"
}
}
}
}
Start Development Server:
git clone https://github.com/kevinwatt/mcp-server-searxng.git
cd mcp-server-searxng
npm install
npm run build
npm start
How does this server protect user privacy? The SearXNG MCP Server ensures that no tracking or profiling is done on users, maintaining high levels of privacy through its implementation.
What search engines are supported by default? By default, it supports popular search engines like Google, DuckDuckGo, and Bing, but additional engines can be configured as needed.
Can this server be used with older AI applications? The compatibility matrix indicates that only certain features are fully supported by some clients. However, basic search functions should work across most MCP clients.
How does the safe search filtering mechanism work? Safe search levels can be set to 0 for no restriction, 1 for moderate restrictions, and 2 for strict restrictions based on user preferences.
Is the server easy to set up with SearXNG? Yes, you need a running SearXNG instance first. The README provides detailed steps to start it using Docker or manually configuring settings.
Contributing to the SearXNG MCP Server is straightforward and can be done by anyone interested in enhancing its features or fixing bugs. Here are some guidelines:
Cloning the Repository:
git clone https://github.com/kevinwatt/mcp-server-searxng.git
Running the Development Server: Navigate into the cloned directory and run:
npm run build
npm start
For more information on Model Context Protocol (MCP) and its ecosystem, refer to:
These resources provide in-depth details about the protocol and server implementation.
This comprehensive documentation covers key aspects of the SearXNG MCP Server, emphasizing its role as a privacy-focused meta search solution that enhances AI application integration.
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