mcp_server_searXNG

mcp_server_searXNG

A privacy-friendly web search MCP server using SearXNG, enabling searches across multiple engines and categories.

Category
Visit Server

README

mcp_server_searXNG

基于MCP技术的网络搜索功能服务器,使用SearXNG搜索引擎实现隐私友好的网络搜索功能。

功能特点

此服务器提供以下主要功能:

  • 通过多个搜索引擎进行网络搜索
  • 支持多种搜索类别(一般、图片、新闻等)
  • 自定义搜索引擎选择
  • 语言筛选
  • 时间范围过滤
  • 搜索结果数量控制

可用工具

  • web_search - 使用SearXNG执行网络搜索
    • 必需参数:
      • query (string): 搜索查询内容
    • 可选参数:
      • categories (array): 搜索类别,例如 ['general', 'images', 'news']
      • engines (array): 搜索引擎,例如 ['google', 'bing', 'duckduckgo']
      • language (string): 搜索语言代码,默认为 "zh"
      • max_results (integer): 最大结果数量,默认为 10
      • time_range (string): 时间范围过滤 ('day', 'week', 'month', 'year')

安装方法

使用 pip 安装

# 安装
pip install mcp-server-searxng==0.2

# 获取最新版本
pip install --upgrade mcp_server_searxng

使用示例

配置为 MCP 服务

在您的 MCP 配置中添加:

"mcpServers": {
  "searxng": {
    "command": "python",
    "args": ["-m", "mcp_server_searxng", "--instance-url=https://your-searxng-instance.com"]
  }
}

调用示例

{
  "name": "web_search",
  "arguments": {
    "query": "气候变化研究",
    "categories": ["general"],
    "engines": ["google"],
    "language": "zh",
    "max_results": 15,
    "time_range": "month"
  }
}

调试

您可以使用 MCP inspector 来调试服务器:

npx @modelcontextprotocol/inspector python -m mcp_server_searxng

实际效果展示

<table> <tr> <td align="center" width="50%"> <img src="https://raw.githubusercontent.com/panxingfeng/mcp_server_searXNG/main/mcp_server_searxng测试.png" width="330" /><br> <em>inspector的测试</em> </td> <td align="center" width="50%"> <img src="https://raw.githubusercontent.com/panxingfeng/mcp_server_searXNG/main/搜索工具测试.gif" width="330" /><br> <em>基于我自己<a href="https://github.com/panxingfeng/chat_mcp">chat_mcp</a>的测试</em> </td> </tr> </table>

许可证

mcp_server_searXNG 使用 MIT 许可证。这意味着您可以自由使用、修改和分发此软件,但需遵守 MIT 许可证的条款和条件。详情请参阅项目仓库中的 LICENSE 文件。

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

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.

Official
Featured