SearXNG MCP Server
Enables web search capabilities via a SearXNG instance, allowing for filtered searches across categories like news, images, and science. It supports multi-language queries, time-range filtering, and safe search options to provide formatted results with metadata.
README
SearXNG MCP Server
A Model Context Protocol (MCP) server that provides web search capabilities using SearXNG.
Features
- š Web search using your SearXNG instance
- šÆ Category filtering (general, news, images, videos, science, etc.)
- š Multi-language support
- ā° Time range filtering
- š”ļø Safe search options
- š Formatted results with titles, URLs, snippets, and metadata
Quick Start
Prerequisites
- Node.js 18 or higher
- A running SearXNG instance
- ngrok (for public sharing)
Installation
npm install
Configuration
The server uses the SearXNG instance at http://192.168.1.44:55001 by default. You can override this with the SEARXNG_URL environment variable:
export SEARXNG_URL=http://your-searxng-instance:port
Running Locally
npm start
Sharing Publicly with ngrok
-
Install ngrok if you haven't already:
npm install -g ngrok -
Start the MCP server:
npm start -
In another terminal, expose it via ngrok:
ngrok http 3000 -
Use the ngrok URL in your MCP client configuration
Usage in LM Studio
For Local Use
Add this to your LM Studio MCP settings:
{
"mcpServers": {
"searxng": {
"command": "node",
"args": ["C:\\Users\\claym\\Desktop\\public mcp\\index.js"],
"env": {
"SEARXNG_URL": "http://192.168.1.44:55001"
}
}
}
}
For Public/Shared Use (via ngrok)
When sharing with others, they can use this configuration:
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": ["-y", "searxng-mcp-server@latest"]
}
}
}
Note: For the npx version to work, you'll need to publish this to npm first.
Available Tools
web_search
Search the web using SearXNG.
Parameters:
query(required): The search querycategories(optional): Search categories - "general", "news", "images", "videos", "science", etc. Default: "general"language(optional): Language code like "en", "es", "fr". Default: "en"time_range(optional): Filter by time - "day", "week", "month", "year". Default: all timesafesearch(optional): Safe search level - 0 (off), 1 (moderate), 2 (strict). Default: 0
Example:
Search for "latest AI news" in the news category from the past week
Development
Project Structure
.
āāā index.js # Main MCP server implementation
āāā package.json # Dependencies and scripts
āāā README.md # This file
Testing
You can test the server using any MCP-compatible client like:
- LM Studio
- Claude Desktop
- Other MCP clients
Troubleshooting
Connection Issues
If you can't connect to SearXNG:
- Verify your SearXNG instance is running:
curl http://192.168.1.44:55001 - Check firewall settings
- Ensure the URL is correct in the configuration
No Results
If searches return no results:
- Test the same query directly in SearXNG web interface
- Try different categories or remove filters
- Check SearXNG logs for errors
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.