MedifinderMCP - 药品库存查询服务器
提供安全、标准化的系统组件通信协议,支持基于位置的药品搜索与库存查询。
快速入门
-
克隆仓库: git clone https://github.com/yourusername/medifinder-mcp.git cd medifinder-mcp
-
创建虚拟环境并安装依赖: python -m venv venv source venv/bin/activate # Windows 使用 venv\Scripts\activate pip install -r requirements.txt
-
配置环境变量(创建 .env 文件): DB_HOST=localhost DB_PORT=5432 DB_NAME=medifinderbot DB_USER=your_user DB_PASSWORD=your_password
-
初始化数据库: psql -U postgres CREATE DATABASE medifinderbot; CREATE USER your_user WITH PASSWORD 'your_password'; GRANT ALL PRIVILEGES ON DATABASE medifinderbot TO your_user;
-
启动服务器: python main.py
-
测试工具和资源: 安装 MCP CLI 工具:pip install mcp[cli] 运行开发模式:python -m mcp dev main.py
更多详情请参考 README 文档。