SearXNG MCP Server
Provides web search capabilities through a SearXNG instance, allowing for queries across various categories such as news, images, videos, and science with support for language, time range, and safe search filtering.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SearXNG MCP Serversearch for the latest AI news from the past week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: SearXNG MCP Server
Quick Start
Prerequisites
Node.js 18 or higher
A running SearXNG instance
ngrok (for public sharing)
Installation
npm installConfiguration
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:portRunning Locally
npm startSharing Publicly with ngrok
Install ngrok if you haven't already:
npm install -g ngrokStart the MCP server:
npm startIn another terminal, expose it via ngrok:
ngrok http 3000Use 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 weekDevelopment
Project Structure
.
āāā index.js # Main MCP server implementation
āāā package.json # Dependencies and scripts
āāā README.md # This fileTesting
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:55001Check 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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityCmaintenanceProvides web search capabilities using SearxNG, allowing AI assistants like Claude to search the web with a privacy-respecting metasearch engine.Last updated110MIT
- AlicenseAqualityBmaintenanceEnables privacy-respecting web searches through SearXNG metasearch engine with customizable parameters like language, time range, categories, and engines. Supports safe search levels, pagination control, and basic authentication for secure search operations.Last updated12MIT
- Flicense-qualityDmaintenanceEnables AI agents to perform privacy-respecting web searches through SearXNG, with support for multiple search engines, categories, and advanced filtering options.Last updated24
- AlicenseAqualityDmaintenanceEnables web search, image search, and news search through a self-hosted SearXNG instance. Provides privacy-focused meta-search capabilities aggregating results from multiple search engines.Last updated31MIT
Related MCP Connectors
Web search, news, page retrieval, sitemaps, and trending topics through Search1API.
x402-gated web search gateway. Tools: search, search_enriched.
The best web search for your AI Agent
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/franktheglock/public-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server