mcp-web-search
MCP 网页搜索服务器
一个提供网页搜索功能的 模型上下文协议(MCP)服务器,可部署在 Render 上。
使用官方 MCP SDK 以 Python 构建,支持 SSE(服务器发送事件) 传输,以最大限度地兼容 AIPI、Claude Desktop 等 MCP 客户端。
提供的工具
工具 | 描述 |
| 搜索网页。返回标题、URL 和描述。 |
| 从任意 URL 获取并提取文本内容。 |
Related MCP server: MCP Search & Fetch
🚀 部署到 Render(分步指南)
1. 将此仓库推送到 GitHub
cd mcp-web-search
git init
git add .
git commit -m "Initial commit"
# create a repo on github.com, then:
git remote add origin https://github.com/YOUR_USERNAME/mcp-web-search.git
git push -u origin main2. 在 Render 上创建新的 Web 服务
前往 render.com → 新建 → Web 服务
连接你的 GitHub 仓库(
mcp-web-search)Render 将自动检测
render.yaml— 点击 应用在 Render 仪表板中设置环境变量:
变量 | 必填 | 描述 |
| 推荐 | 在 serper.dev 免费获取 — 每月 2,500 次免费查询(Google 结果) |
| 可选 | 设置为任意密钥字符串以保护你的服务器 |
点击 创建 Web 服务 — Render 将自动构建并部署。
你的服务器 URL 将是:https://mcp-web-search.onrender.com(或类似地址)
🔌 连接到 AIPI
在 AIPI 的"添加自定义 MCP"对话框中,粘贴此配置:
{
"mcpServers": {
"web-search": {
"type": "sse",
"url": "https://YOUR-SERVICE.onrender.com/sse"
}
}
}将 YOUR-SERVICE 替换为你实际的 Render 服务名称(例如 mcp-web-search-j73g)。
其他 MCP 客户端
适用于任何支持 SSE 传输的 MCP 客户端:
Claude Desktop(claude_desktop_config.json):
{
"mcpServers": {
"web-search": {
"type": "sse",
"url": "https://YOUR-SERVICE.onrender.com/sse"
}
}
}🔍 搜索提供商
提供商 | 需要密钥 | 质量 | 限制 |
Serper.dev | 是(免费) | ⭐⭐⭐⭐⭐ | 每月 2,500 次免费查询(Google 结果) |
DuckDuckGo | 否 | ⭐⭐⭐ | 无限(备用) |
在 Render 环境变量中设置 SERPER_API_KEY 以使用 Serper。如果缺少该密钥,服务器将自动回退到 DuckDuckGo。
🧪 本地测试
pip install -r requirements.txt
SERPER_API_KEY=your_key python server.py健康检查:
curl http://localhost:3000/服务器默认运行在 3000 端口。设置 PORT 环境变量可更改端口。
⚠️ 免费套餐说明
Render 的免费套餐在闲置 15 分钟后会休眠(冷启动约 30 秒)。 升级到**入门套餐(每月 7 美元)**以保持始终在线。
This server cannot be installed
Maintenance
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
- AlicenseNot gradedqualityDmaintenanceProvides web search and page fetch capabilities using a browser-based approach, enabling LLMs to search DuckDuckGo, Google, or Yandex and retrieve rendered HTML from URLs.3MIT
- AlicenseNot gradedqualityBmaintenanceProvides web search and page fetching capabilities using Ollama's API.MIT
- AlicenseNot gradedqualityCmaintenanceSelf-hosted web search and page fetch service using SearXNG metasearch and Scrapling browser rendering, exposing MCP tools for direct agent use.MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables web searching using the Serper API for Google search results, with optional web page content fetching.2MIT
Related MCP Connectors
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Read any web page as clean Markdown for AI agents: fetch, search, metadata, links. SSRF-safe.
The best web search for your AI Agent
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/Komplex23/mcp-web-search'
If you have feedback or need assistance with the MCP directory API, please join our Discord server