Skip to main content
Glama
anysearch-ai

AnySearch

Official
by anysearch-ai

AnySearch MCP 服务器

统一的实时搜索 MCP 服务器,支持通用网页搜索、垂直领域搜索(23 个领域)、并行批量搜索以及全页 URL 内容提取。

功能特性

  • 通用网页搜索 — 开放式自然语言查询

  • 垂直领域搜索 — 跨 23 个领域的结构化查询(金融、学术、安全、法律、代码等)

  • 并行批量搜索 — 单次调用最多支持 5 个独立查询

  • URL 内容提取 — 获取并提取完整页面内容为 Markdown 格式

  • 匿名访问 — 无需 API 密钥即可使用(速率限制较低)

Related MCP server: Scout

API 密钥配置

API 密钥是可选的,但建议使用。如果没有密钥,所有功能仍可通过匿名访问使用,但速率限制较低。

获取 API 密钥

访问 https://anysearch.com/console/api-keys 创建免费的 API 密钥。

密钥优先级

优先级

来源

1 (最高)

--api_key 命令行参数 / Authorization 请求头

2

环境变量 ANYSEARCH_API_KEY

3

.env 文件 (ANYSEARCH_API_KEY=<key>)

4

匿名访问(速率限制较低)

密钥行为

场景

行为

无密钥

继续使用匿名访问(速率限制较低)

有密钥

通过 Authorization: Bearer <key> 请求头发送,速率限制较高

密钥耗尽,返回自动注册密钥

智能体应询问用户确认,然后持久化保存新密钥

密钥耗尽,无新密钥

通知用户并建议配置新的 API 密钥

MCP 传输协议

AnySearch MCP 服务器原生支持 Streamable HTTP 传输(MCP 规范 2025-03-26)。SSE 和 stdio 客户端可通过代理连接。

传输协议

原生支持?

适用场景

Streamable HTTP

OpenCode, Claude Desktop (2025.6+), 基于 Web 的客户端

SSE

通过代理

Cursor, Windsurf

stdio

通过代理

Claude Desktop (旧版), VS Code Copilot, Cline

安装

Streamable HTTP(推荐 — 无需代理)

对于支持 Streamable HTTP 传输的智能体(MCP 规范 2025-03-26+):

OpenCode (~/.opencode/config.json 或项目 opencode.json):

{
  "mcp": {
    "anysearch": {
      "type": "streamable-http",
      "url": "https://api.anysearch.com/mcp",
      "headers": {
        "Authorization": "Bearer ${ANYSEARCH_API_KEY}"
      }
    }
  }
}

Claude Desktop (2025.6+, claude_desktop_config.json):

{
  "mcpServers": {
    "anysearch": {
      "type": "streamable-http",
      "url": "https://api.anysearch.com/mcp",
      "headers": {
        "Authorization": "Bearer ${ANYSEARCH_API_KEY}"
      }
    }
  }
}

如果没有 API 密钥,请省略 headers 部分。服务器将自动使用匿名访问。

stdio(通过代理)

对于仅支持 stdio 传输的智能体。有两种代理选项:

选项 A: mcp-remote (推荐)

mcp-remote — 自动检测 Streamable HTTP,配置最简单:

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "anysearch": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.anysearch.com/mcp",
        "--header",
        "Authorization: Bearer ${ANYSEARCH_API_KEY}"
      ]
    }
  }
}

VS Code Copilot (.vscode/mcp.json):

{
  "servers": {
    "anysearch": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.anysearch.com/mcp",
        "--header",
        "Authorization: Bearer ${ANYSEARCH_API_KEY}"
      ]
    }
  }
}

Cline (VS Code 设置):

{
  "mcpServers": {
    "anysearch": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.anysearch.com/mcp",
        "--header",
        "Authorization: Bearer ${ANYSEARCH_API_KEY}"
      ]
    }
  }
}

如果没有 API 密钥,请省略 "--header""Authorization: Bearer ..." 参数。

选项 B: supergateway

supergateway — 提供更多传输选项,支持 SSE 输出:

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "anysearch": {
      "command": "npx",
      "args": [
        "-y",
        "supergateway",
        "--streamableHttp",
        "https://api.anysearch.com/mcp",
        "--oauth2Bearer",
        "${ANYSEARCH_API_KEY}"
      ]
    }
  }
}

如果没有 API 密钥,请省略 "--oauth2Bearer" 和密钥参数。

SSE(通过代理)

对于仅支持 SSE 传输的智能体(Cursor, Windsurf)。需要运行本地 SSE 代理服务器:

启动代理

npx -y supergateway \
  --streamableHttp https://api.anysearch.com/mcp \
  --outputTransport sse \
  --port 8000 \
  --oauth2Bearer <your_api_key>

如果没有 API 密钥,请省略 --oauth2Bearer 标志。

然后配置您的智能体:

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "anysearch": {
      "type": "sse",
      "url": "http://localhost:8000/sse"
    }
  }
}

Windsurf (~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "anysearch": {
      "serverUrl": "http://localhost:8000/sse"
    }
  }
}

SSE 代理必须在智能体运行时保持开启。建议将其作为后台服务运行。

智能体快速参考

智能体

传输协议

配置文件位置

需要代理?

代理工具

OpenCode

Streamable HTTP

opencode.json

Claude Desktop (2025.6+)

Streamable HTTP

claude_desktop_config.json

Claude Desktop (旧版)

stdio

claude_desktop_config.json

mcp-remote

Cursor

SSE

.cursor/mcp.json

supergateway

VS Code Copilot

stdio

.vscode/mcp.json

mcp-remote

Windsurf

SSE

mcp_config.json

supergateway

Cline

stdio

VS Code 设置

mcp-remote

可用工具

执行搜索查询 — 通用或垂直领域搜索。

参数

类型

必填

描述

query

string

搜索查询。对于垂直搜索,请遵循 list_domains 中的 query_format

domain

string

垂直领域 (例如 finance, academic, security)

sub_domain

string

子领域路由键 (例如 finance.us_stock)。垂直搜索必填

sub_domain_params

object

每个子领域 schema 的额外参数

content_types

string[]

过滤器: web, news, code, doc, academic, data, image, video, audio

zone

string

cnintl。当子领域标记 zone=CN 时必填

max_results

integer

1–100, 默认 10

freshness

string

day, week, month, year

list_domains

查询垂直领域目录。在进行垂直搜索前必须调用,以发现可用的子领域及其查询格式。

参数

类型

必填

描述

domain

string

二选一

要查询的单个领域

domains

string[]

二选一

批量查询最多 5 个领域

返回一个 Markdown 表格: sub_domain | description | query_format | params_schema | zone

并行执行 2–5 个独立搜索查询。单个失败不会阻塞其他查询。

参数

类型

必填

描述

queries

object[]

1–5 个查询对象,每个对象具有与 search 相同的字段

extract

从 URL 获取完整页面内容并以 Markdown 格式返回。截断为 50,000 个字符。仅限 HTML 页面。

参数

类型

必填

描述

url

string

目标 URL (http://https://)

决策流程

User query
  |
  +-- Has structured identifiers? (Stock:/CVE:/DOI:/IATA:/patent etc.)
  |     YES -> 1) list_domains -> discover sub_domain & query_format
  |             2) search with domain + sub_domain + zone
  |
  +-- Multiple independent intents?
  |     YES -> batch_search
  |
  +-- Need deeper content than snippets?
  |     YES -> extract the URL
  |
  +-- Otherwise -> search (general)

垂直搜索约束

在进行垂直搜索之前,您必须调用目标领域的 list_domains 并遵循以下规则:

  1. query_format — 查询字符串的精确格式(例如原始股票代码,而非自然语言)

  2. params_schema — 可选额外参数的 JSON schema

  3. zone — 如果为 CN,则必须在搜索调用中设置 zone: "cn"

  4. sub_domain 选择 — 将用户意图匹配到最合适的子领域描述

支持的领域

code tech fashion travel home ecommerce gaming film music finance academic legal business ip security education health religion geo environment energy ugc

示例

通用搜索

{ "query": "quantum computing breakthroughs 2025", "max_results": 5, "freshness": "month" }

垂直搜索 (股票)

{ "query": "AAPL", "domain": "finance", "sub_domain": "finance.us_stock", "max_results": 5 }

批量搜索

{
  "queries": [
    { "query": "AAPL", "domain": "finance", "sub_domain": "finance.us_stock" },
    { "query": "python async http client", "domain": "code", "sub_domain": "code.general" }
  ]
}

提取 URL

{ "url": "https://en.wikipedia.org/wiki/Quantum_computing" }

安全说明

  • 搜索查询、提取的 URL 和 API 密钥会被发送到 https://api.anysearch.com

  • 除非您信任该提供商,否则请勿用于包含敏感信息(密码、个人数据、商业机密)的查询

  • 避免在聊天中直接粘贴 API 密钥 — 请使用环境变量或 .env 文件

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
19dResponse time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Provides LLMs with real-time web search and content extraction capabilities, including text/news search, full-text URL reading, and targeted technical documentation search.
    3
    23
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Enables AI agents to perform comprehensive search across 27 search engines including web, academic, code, community, package managers, video, images, podcasts, and maps, with multi-modal support, caching, and security features.
    14
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to perform unified web searches, GitHub, and GitLab searches with caching, reranking, and fallback across multiple providers.
    4
    58
    19
    MIT

View all related MCP servers

Related MCP Connectors

  • The best web search for your AI Agent

  • LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.

  • Web search for AI agents — one tool across 6 engines, routed to the cheapest + cached.

View all MCP Connectors

Latest Blog Posts

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/anysearch-ai/anysearch-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server