使用说明
内存存储MCP服务器
一种使用Puppeteer提供网络搜索功能的模型上下文协议(MCP)服务器。
特性
- 通过谷歌的网络搜索功能
- 结构化JSON结果
- 轻量级和无状态设计
- 易于与启用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许可证获得许可-请参阅 许可证 文件以获取详细信息。