網頁搜尋 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!
伺服器配置
{
"mcpServers": {
"web-search": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--pskill9--web-search--web-search",
"node ./build/index.js"
],
"env": {}
}
}
}