网页搜索 MCP 服务器
概览
什么是网络搜索?
网络搜索是指使用搜索引擎在互联网上查找信息的过程。它允许用户输入查询并接收相关结果的列表。由pskill9开发的网络搜索工具,称为### web-search,提供了一个独特的功能:它使用户能够使用谷歌的搜索引擎进行搜索,而无需API密钥。这使得任何想要在线查找信息的人都可以轻松访问和使用。
网络搜索的特点
- 无需API密钥:用户可以在没有获取API密钥麻烦的情况下进行搜索,使其更加用户友好。
- 免费访问:该工具可供公众使用,允许任何人免费利用其功能。
- 谷歌搜索集成:利用谷歌强大的搜索算法提供准确和相关的搜索结果。
- 用户友好的界面:设计简单易用,使所有技术水平的用户都能访问。
- 开源:该项目托管在GitHub上,允许开发者贡献、分叉和改进该工具。
如何使用网络搜索
- 访问工具:导航到GitHub上的web-search仓库。
- 克隆或下载:您可以使用Git克隆仓库或下载ZIP文件到本地计算机。
- 运行应用程序:按照仓库中提供的说明设置并运行应用程序。
- 输入您的查询:使用搜索框输入您的查询并按回车。
- 查看结果:浏览显示的结果,这些结果由谷歌提供支持。
常见问题解答
使用web-search需要费用吗?
不,web-search完全免费使用。
使用该工具需要注册或登录吗?
进行搜索不需要注册或登录。
我可以为web-search项目贡献吗?
可以!该项目是开源的,欢迎贡献。您可以分叉仓库并提交拉取请求。
我可以执行什么类型的查询?
您可以执行任何类型的查询,通常可以在谷歌中输入的,包括文本搜索、问题等。
我可以进行的搜索数量有限制吗?
使用web-search工具进行的搜索数量没有限制。
详情
Web Search MCP Server
A Model Context Protocol (MCP) server that enables free web searching using Google search results, with no API keys required.
Features
- Search the web using Google search results
- No API keys or authentication required
- Returns structured results with titles, URLs, and descriptions
- Configurable number of results per search
Installation
- Clone or download this repository
- Install dependencies:
npm install
- Build the server:
npm run build
- Add the server to your MCP configuration:
For VSCode (Claude Dev Extension):
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/web-search/build/index.js"]
}
}
}
For Claude Desktop:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/web-search/build/index.js"]
}
}
}
Usage
The server provides a single tool named search
that accepts the following parameters:
{
"query": string, // The search query
"limit": number // Optional: Number of results to return (default: 5, max: 10)
}
Example usage:
use_mcp_tool({
server_name: "web-search",
tool_name: "search",
arguments: {
query: "your search query",
limit: 3 // optional
}
})
Example response:
[
{
"title": "Example Search Result",
"url": "https://example.com",
"description": "Description of the search result..."
}
]
Limitations
Since this tool uses web scraping of Google search results, there are some important limitations to be aware of:
-
Rate Limiting: Google may temporarily block requests if too many searches are performed in a short time. To avoid this:
- Keep searches to a reasonable frequency
- Use the limit parameter judiciously
- Consider implementing delays between searches if needed
-
Result Accuracy:
- The tool relies on Google's HTML structure, which may change
- Some results might be missing descriptions or other metadata
- Complex search operators may not work as expected
-
Legal Considerations:
- This tool is intended for personal use
- Respect Google's terms of service
- Consider implementing appropriate rate limiting for your use case
Contributing
Feel free to submit issues and enhancement requests!
Server配置
{
"mcpServers": {
"web-search": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--pskill9--web-search--web-search",
"node ./build/index.js"
],
"env": {}
}
}
}