使用说明
主控程序
创建MCP服务器
安全Mongo MCP服务器
这是一个安全的MongoDB MCP(模型上下文协议)服务器,允许使用API密钥身份验证查询MongoDB。
特性
- API密钥验证
- 列出允许的数据库中的集合
- 查找具有过滤器和限制的文档
- 可配置的MongoDB URI、数据库和限制
需求
- Python 3.9+
- 本地或远程运行的MongoDB
安装
git clone https://github.com/<your-username>/secure-mongo-mcp-server.git
cd secure-mongo-mcp-server
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt