MCP server for compressor surge prediction
Project description
Surge Predictor MCP Server
这是一个 MCP (Model Context Protocol) 服务器,用于根据压缩机的进口参数(压力、温度、转速)预测喘振点的压比。它封装了一个基于 PySR 训练的机器学习模型,可以被任何支持 MCP 协议的客户端(如 Kimi Playground)调用。
安装
由于这是一个通过 uvx 运行的 MCP 服务器,你无需手动安装。客户端(如魔搭平台)会自动通过 uvx 从 PyPI 拉取并运行。
使用说明
部署后,你可以通过自然语言向支持 MCP 的 AI 助手提问,例如:
“压缩机进口压力 8.5 MPa,温度 35°C,转速 为1 (100%额定转速),预测一下喘振点压比是多少?”
助手会自动调用本服务并返回结果。
工具列表
本服务器提供以下工具:
predict_surge: 根据压力、温度、转速预测喘振点压比。- 参数:
pressure(float): 进口压力 (MPa)temperature(float): 进口温度 (°C)speed(float): 转速 (实际转速/额定转速 0-1)
- 返回:
- (float): 预测的喘振点压比。
- 参数:
开发与构建
如果你想在本地修改或构建此项目:
- 克隆仓库(如果适用)。
- 确保已安装 Python 3.10 或更高版本。
本地开发
- 确保 Python ≥ 3.10。
- 克隆本仓库并进入目录。
- 执行以下命令完成环境设置并启动服务:
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -e . python -m surge_predictor_mcp.server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surge_predictor_mcp-0.1.0.tar.gz.
File metadata
- Download URL: surge_predictor_mcp-0.1.0.tar.gz
- Upload date:
- Size: 434.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75dfd06a26b5b447349c52699d4cd674d8402186e087fe233693809f6edd599e
|
|
| MD5 |
0101c3b279ab703d34c2998bfcfc77c9
|
|
| BLAKE2b-256 |
1bac990eadf5f3755128de1bdc99bda5764969e5cf2c08621dc48c6c14354f81
|
File details
Details for the file surge_predictor_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: surge_predictor_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 442.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e452765210851c6f9e85d437a9059f75d13ee22e13bcc46c76b1f890cdfe8821
|
|
| MD5 |
d34acba8be90869c1367095ea6345ad1
|
|
| BLAKE2b-256 |
63e539202ec65576ef33cd7bf63b7ae271834906a2b5bf9661e108a037dad994
|