Jaqpot MCP服务器
用于Jaqpot平台集成的模型上下文协议(MCP)服务器。该服务器允许LLM与Jaqpot API交互,用于机器学习模型预测和发现。
特性
- 模型预测:使用Jaqpot模型和Jaqpot python-sdk执行预测
- 模型搜索:按描述和功能搜索和发现模型
- 认证:使用客户端密钥和机密对API进行安全访问
- MCP集成:完全符合模型上下文协议,实现无缝LLM集成
安装
先决条件
- 安装 紫外线:
curl -LsSf https://astral.sh/uv/install.sh | sh- 使用uv安装Python 3.10+:
uv python install 3.10- 配置您的Jaqpot API凭据:
- 从获取您的API密钥和机密 Jaqpot平台 - 将它们设置为环境变量(请参阅配置部分)
安装服务器
# Clone the repository
git clone https://github.com/ntua-unit-of-control-and-informatics/jaqpot-mcp-server.git
cd jaqpot-mcp-server
# Install with uv
uv sync配置
MCP客户端配置
将服务器添加到MCP客户端配置中。对于Claude Desktop,添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"jaqpot": {
"type": "stdio",
"command": "uv",
"args": [
"--directory", "/path/to/jaqpot-mcp-server",
"run", "server.py"
],
"env": {
"JAQPOT_API_KEY": "your-api-key",
"JAQPOT_API_SECRET": "your-api-secret"
}
}
}
}替换 /path/to/jaqpot-mcp-server 使用克隆存储库的实际路径。
替代方案:直接执行Python
{
"mcpServers": {
"jaqpot": {
"type": "stdio",
"command": "python",
"args": ["/path/to/jaqpot-mcp-server/server.py"],
"env": {
"JAQPOT_API_KEY": "your-api-key",
"JAQPOT_API_SECRET": "your-api-secret"
}
}
}
}用法
运行服务器
# With uv (recommended)
uv run server.py
# Or directly with Python
python server.py测试安装
运行示例用法脚本:
uv run python examples/usage_example.pyMCP工具可用
1. jaqpot_predict
使用Jaqpot模型进行预测。
参数:
model_id(int):Jaqpot模型的IDdataset(列表):预测输入数据
2. jaqpot_search_models
按条件搜索模型。
参数:
query(str):搜索查询page(int,可选):分页页码size(int,可选):每页结果数
3. jaqpot_get_model_info
获取特定型号的详细信息。
参数:
model_id(int):Jaqpot模型的ID
发展
地方发展
- 克隆存储库并安装依赖项:
git clone https://github.com/ntua-unit-of-control-and-informatics/jaqpot-mcp-server.git
cd jaqpot-mcp-server
uv sync --dev- 设置环境变量:
export JAQPOT_API_KEY="your-api-key"
export JAQPOT_API_SECRET="your-api-secret"- 运行服务器:
uv run server.py测试
运行示例用法:
uv run python examples/usage_example.py许可证
看 许可证 文件。
