Skip to main content

SearXNG MCP Server implemented in Python with proxy support

Project description

项目

功能

  • 网络搜索:一般查询、新闻、文章,带翻页。
  • 翻页:控制检索哪一页的结果。
  • 时间过滤:按时间范围(日、月、年)过滤结果。
  • 语言选择:按首选语言过滤结果。
  • 安全搜索:控制搜索结果的内容过滤级别。
  • 代理支持(暂时支持http代理,socks5代理未测试)

tools

  • searxng_web_search

访问 searxng Inputs:

  • query (string): The search query. This string is passed to external search services.
  • pageno (number, optional): Search page number, starts at 1 (default 1)
  • time_range (string, optional): Filter results by time range - one of: "day", "month", "year" (default: none)
  • language (string, optional): Language code for results (e.g., "en", "fr", "de") or "all" (default: "all")
  • safesearch (number, optional): Safe search filter level (0: None, 1: Moderate, 2: Strict) (default: instance setting)
  • web_url_read

Read and convert the content from a URL to markdown Inputs:

  • url (string): The URL to fetch and process

技术参数

  • python 3.11
  • 框架使用 FastMCP
  • dist 为打包输出目录
  • python 工具:uv

运行参数

  • SEARXNG_URL : searxng 服务器地址
  • PROXY_TYPE : 代理类型(代理开关,不填写时候,不启用代理,填写时候,启用代理。http 为 http 代理,socks5 为 socks5 代理)
  • PROXY_HOST : 代理地址,socks5 代理填写 127.0.0.1
  • PROXY_PORT : 代理端口, socks5 代理填写 1080
  • PROXY_URL : 代理地址, http 代理填写 http://127.0.0.1:10809(暂时不支持代理登录,优先考虑本地代理)

测试

使用

uvx  --from mcp-searxng-python mcp_searxng_python --help
{
  "searxng": {
    "command": "uvx",
    "args": [
      "--from",
      "mcp-searxng-python",
      "mcp_searxng_python",
      "stdio"
    ],
    "env": {
      "SEARXNG_URL": "",
      "PROXY_TYPE": "HTTP",
      "PROXY_URL": "http://127.0.0.1:7892"
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_searxng_python-0.1.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_searxng_python-0.1.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_searxng_python-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_searxng_python-0.1.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for mcp_searxng_python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 769701a84f564a3376a2d9e24479aa0ad5002d70a07ad82ed61363e93b90fe48
MD5 e1bd9c3249f4c1ca40525dfe831448eb
BLAKE2b-256 fb98d8c5b569d061d962ac92a26669e46d6706b0709c961492b9667914f90960

See more details on using hashes here.

File details

Details for the file mcp_searxng_python-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_searxng_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a275870e134f4116159afc2410d399b9e67abc1b0db7d37e8d3ed46f2d22236c
MD5 883bd889a1bfb7e7c102161bd29fb05a
BLAKE2b-256 b3e05e22a7a1bbabda28b9bfba07f6a6ad2265deb4bae6ed2ee847299506ed63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page