Skip to main content

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): 预测的喘振点压比。

开发与构建

如果你想在本地修改或构建此项目:

  1. 克隆仓库(如果适用)。
  2. 确保已安装 Python 3.10 或更高版本。

本地开发

  1. 确保 Python ≥ 3.10。
  2. 克隆本仓库并进入目录。
  3. 执行以下命令完成环境设置并启动服务:
    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
    pip install -e .
    python -m surge_predictor_mcp.server
    

Metadata

Release files for surge-predictor-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for surge-predictor-mcp 0.1.0
File Size Uploaded
surge_predictor_mcp-0.1.0.tar.gz 434.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for surge-predictor-mcp 0.1.0
File Interpreter ABI Platform
surge_predictor_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 876.6 kB

Release files / surge_predictor_mcp-0.1.0.tar.gz

Download URL surge_predictor_mcp-0.1.0.tar.gz
Size 434.4 kB
Tags Source
SHA-256 checksum
How to use checksums
75dfd06a26b5b447349c52699d4cd674d8402186e087fe233693809f6edd599e
BLAKE2b-256 checksum
How to use checksums
1bac990eadf5f3755128de1bdc99bda5764969e5cf2c08621dc48c6c14354f81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / surge_predictor_mcp-0.1.0-py3-none-any.whl

Download URL surge_predictor_mcp-0.1.0-py3-none-any.whl
Size 442.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e452765210851c6f9e85d437a9059f75d13ee22e13bcc46c76b1f890cdfe8821
BLAKE2b-256 checksum
How to use checksums
63e539202ec65576ef33cd7bf63b7ae271834906a2b5bf9661e108a037dad994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page