@mcpcn/mcp-open-web
v1.0.2
Published
MCP server for opening web pages and searching
Downloads
132
Readme
MCP Open Web Server
一个Model Context Protocol (MCP)服务器,提供网页打开和搜索功能。
功能
open_web
使用系统默认浏览器打开指定网址。
参数:
url(string, 必需): 要打开的网址,支持自动添加https://协议
示例:
{
"name": "open_web",
"arguments": {
"url": "https://github.com"
}
}web_search
使用指定搜索引擎搜索关键词。
参数:
query(string, 必需): 要搜索的关键词engine(string, 可选): 搜索引擎,支持baidu、google、bing、sogou、so360,默认为baidu
示例:
{
"name": "web_search",
"arguments": {
"query": "苏超联赛",
"engine": "baidu"
}
}支持的搜索引擎
- 百度 (
baidu): https://baidu.com/s?wd=关键词 - Google (
google): https://www.google.com/search?q=关键词 - Bing (
bing): https://www.bing.com/search?q=关键词 - 搜狗 (
sogou): https://www.sogou.com/web?query=关键词 - 360搜索 (
so360): https://www.so.com/s?q=关键词
安装和运行
- 安装依赖:
npm install- 构建项目:
npm run build- 运行服务器:
npm start开发
监听文件变化并自动重新构建:
npm run dev依赖
@modelcontextprotocol/sdk: MCP SDKopen: 用于打开浏览器的跨平台库
许可证
MIT
