内存存储 MCP 服务器
使用 Puppeteer 提供网络搜索功能的模型上下文协议 (MCP) 服务器。
特征
通过 Google 实现网页搜索功能
结构化 JSON 结果
轻量级、无状态设计
轻松与支持 MCP 的系统集成
Related MCP server: Brave Deep Research MCP
安装
克隆存储库:
git clone https://github.com/yourusername/mcp-server.git cd mcp-server安装依赖项:
npm install构建项目:
npm run build
配置
使用以下环境变量在项目根目录中创建一个.env文件:
# Puppeteer configuration
PUPPETEER_EXECUTABLE_PATH=/path/to/chrome
PUPPETEER_HEADLESS=true
# Server settings
PORT=3000
用法
启动服务器:
npm start
该服务器将对 MCP 客户端开放。通过 MCP 使用的示例:
{
"tool": "search_web",
"arguments": {
"query": "example search"
}
}
发展
构建项目
npm run build
运行测试
npm test
代码检查
npm run lint
格式化
npm run format
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。