AnySearch
OfficialAnySearch MCP Server
Unified real-time search MCP server supporting general web search, vertical domain search, parallel batch search, and full-page URL content extraction.
Features
General Web Search — open-ended natural language queries
Vertical Domain Search — structured queries across finance, academic, security, legal, code, and more
Parallel Batch Search — execute multiple independent queries in one call
URL Content Extraction — fetch and extract full page content as Markdown
Anonymous Access — works without an API key (with lower rate limits)
Related MCP server: Web Search MCP
API Key Configuration
An API key is optional but recommended. Without a key, all features still work via anonymous access with lower rate limits.
Register for an API Key (Recommended)
The agent can register the user and obtain an API key in a single call — no verification code, no manual signup. Ask the user for a real email address: it becomes the account username, and a randomly generated password is emailed to it.
curl -s -X POST "https://api.anysearch.com/v1/auth/email/register" \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'Success response (code: 0) returns the account info and a one-time plaintext API key:
{
"code": 0,
"message": "success",
"data": {
"username": "you@example.com",
"email": "you@example.com",
"login_url": "https://www.anysearch.com/login",
"api_key": {
"id": "key_xxxxxxxx",
"key": "as_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"key_prefix": "as_sk_xxxxxx...",
"name": "default",
"rate_limit": 100,
"quota_limit": 0,
"expires_at": null,
"created_at": "2026-06-23T10:23:00Z"
}
}
}On success the agent MUST:
Put
data.api_key.keyinto the MCP server config as theAuthorization: Bearer <key>value (and/or setANYSEARCH_API_KEY) — it is shown only once (it can also be retrieved later from the dashboard).Tell the user their username (= email), the
login_url, and that a random password has been emailed to that address.Relay this note to the user: A verification email has been sent to your inbox. If you don't see it within a few minutes, please check your spam or junk folder. You may need to mark it as "Not Spam" to ensure future emails arrive correctly.
Error handling (always code: -1 on error; branch on the message string):
message | what to do |
| ask the user to re-enter the email |
| email is taken — tell the user to sign in at |
contains | read retry seconds from message (e.g. |
starts with | account created but key failed — extract the email and URL from the message ( |
| retry later or fall back to anonymous |
The email must be real and reachable — the password is delivered there. There is no verification code in this flow; the agent only ever asks for an email.
Get an API Key
Alternatively, visit https://anysearch.com/console/api-keys to create a free API key.
Key Priority
Priority | Source |
1 (highest) |
|
2 | Environment variable |
3 |
|
4 | Anonymous access (lower rate limits) |
Key Behavior
Scenario | Behavior |
No key | Proceed with anonymous access (lower rate limits) |
Has key | Sent via |
Key exhausted, auto-registered key returned | Agent should ask user for confirmation, then persist the new key |
Key exhausted, no new key | Inform user and suggest configuring a new API key |
MCP Transport
AnySearch MCP server natively supports Streamable HTTP transport (MCP spec 2025-03-26). SSE and stdio clients can connect via proxy.
Transport | Native? | Best for |
Streamable HTTP | Yes | OpenCode, Claude Desktop (2025.6+), web-based clients |
SSE | Via proxy | Cursor, Windsurf |
stdio | Via proxy | Claude Desktop (legacy), VS Code Copilot, Cline |
Installation
Streamable HTTP (Recommended — No Proxy Needed)
For agents that support the Streamable HTTP transport (MCP spec 2025-03-26+):
OpenCode (v1.x+ / v0.1.x+):
Config file location depends on your OpenCode version. Run opencode -v to check.
Version | Global Config Path | Project Config Path |
1.x+ (current) |
|
|
0.1.x ~ 0.15.x |
|
|
0.0.x (legacy Go) |
|
|
Windows: Replace
~/.config/opencode/with%USERPROFILE%\.config\opencode\.
For v1.x+ and v0.1.x+ (MCP key: mcp):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"anysearch": {
"type": "remote",
"url": "https://api.anysearch.com/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer ${ANYSEARCH_API_KEY}",
"X-Anysearch-Client": "mcp/1.0.0"
}
}
}
}{
"mcpServers": {
"anysearch": {
"type": "sse",
"url": "https://api.anysearch.com/mcp",
"headers": {
"Authorization": "Bearer ${ANYSEARCH_API_KEY}",
"X-Anysearch-Client": "mcp/1.0.0"
}
}
}
}The legacy Go version does not support Streamable HTTP natively. Use SSE or stdio via proxy instead.
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}",
"X-Anysearch-Client": "mcp/1.0.0"
}
}
}
}Without an API key, drop only the
Authorizationline but keepX-Anysearch-Client. The server will use anonymous access automatically.
stdio (Via Proxy)
For agents that only support stdio transport. Two proxy options:
Option A: mcp-remote (Recommended)
mcp-remote — auto-detects Streamable HTTP, simplest config:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"anysearch": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.anysearch.com/mcp",
"--header",
"X-Anysearch-Client: mcp/1.0.0",
"--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",
"X-Anysearch-Client: mcp/1.0.0",
"--header",
"Authorization: Bearer ${ANYSEARCH_API_KEY}"
]
}
}
}Cline (VS Code settings):
{
"mcpServers": {
"anysearch": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.anysearch.com/mcp",
"--header",
"X-Anysearch-Client: mcp/1.0.0",
"--header",
"Authorization: Bearer ${ANYSEARCH_API_KEY}"
]
}
}
}Without an API key, omit only the
"Authorization: Bearer ..."--headerpair; keep theX-Anysearch-Client--header.
Option B: supergateway
supergateway — more transport options, supports SSE output:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"anysearch": {
"command": "npx",
"args": [
"-y",
"supergateway",
"--streamableHttp",
"https://api.anysearch.com/mcp",
"--header",
"X-Anysearch-Client: mcp/1.0.0",
"--oauth2Bearer",
"${ANYSEARCH_API_KEY}"
]
}
}
}Without an API key, omit the
"--oauth2Bearer"and key args.
SSE (Via Proxy)
For agents that only support SSE transport (Cursor, Windsurf). Requires running a local SSE proxy server:
Start the proxy
npx -y supergateway \
--streamableHttp https://api.anysearch.com/mcp \
--outputTransport sse \
--port 8000 \
--header "X-Anysearch-Client: mcp/1.0.0" \
--oauth2Bearer <your_api_key>Without an API key, omit the
--oauth2Bearerflag.
Then configure your agent:
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"
}
}
}The SSE proxy must remain running while the agent is active. Consider running it as a background service.
Agent Quick Reference
Agent | Transport | Config Location | Needs Proxy? | Proxy Tool |
OpenCode (v1.x+) | Streamable HTTP |
| No | — |
Claude Desktop (2025.6+) | Streamable HTTP |
| No | — |
Claude Desktop (legacy) | stdio |
| Yes |
|
Cursor | SSE |
| Yes |
|
VS Code Copilot | stdio |
| Yes |
|
Windsurf | SSE |
| Yes |
|
Cline | stdio | VS Code settings | Yes |
|
Available Tools
search
Execute a search query — general or vertical domain.
Parameter | Type | Required | Description |
| string | Yes | Natural language search query. ONE intent per call |
| string | No | Vertical domain (e.g. |
| string | No | Sub-domain routing key (e.g. |
| object | No | Structured params from |
| integer | No | 1–10, default 10 |
get_sub_domains
Query the vertical domain directory. Required before any search that uses a domain — returns valid sub_domains and their parameter schemas.
Parameter | Type | Required | Description |
| string | One of | Single domain to query |
| string[] | One of | Batch up to 5 domains (preferred — covers more ground) |
Returns a Markdown table: sub_domain | description | params
batch_search
Execute 1–5 independent search queries in parallel. Single failure does not block others.
Parameter | Type | Required | Description |
| object[] | Yes | 1–5 query objects, each with same fields as |
extract
Fetch full page content from a URL and return as Markdown. Truncated at 50,000 characters. HTML pages only.
Parameter | Type | Required | Description |
| string | Yes | Target URL ( |
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides unified web search across multiple providers (Google, Tavily, DuckDuckGo, Brave) with automatic fallback, maximizing free API quota usage for AI workflows.Last updated81397MIT
- AlicenseAqualityBmaintenanceProvides LLMs with real-time web search and content extraction capabilities, including text/news search, full-text URL reading, and targeted technical documentation search.Last updated6315MIT
- AlicenseBqualityBmaintenanceEnables 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.Last updated14MIT
- Alicense-qualityBmaintenanceEnables AI agents to perform unified web searches, GitHub, and GitLab searches with caching, reranking, and fallback across multiple providers.Last updated27818MIT
Related MCP Connectors
The best web search for your AI Agent
Web search for AI agents — one tool across 6 engines, routed to the cheapest + cached.
AI-agent search API: Google, YouTube, Amazon, Reddit, TikTok, TikTok Shop, Instagram, X, LinkedIn
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/anysearch-ai/anysearch-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server