WC

wjc9011/comsol_multiphysics_mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1012 stars 92 forks 质量 83 趋势 29MIT

MCP服务器用于通过AI代理实现COMSOL多物理模拟自动化。

概览

MCP服务器用于通过AI代理实现COMSOL多物理模拟自动化。 构建一个完整的 COMSOL MCP 服务器,使 AI 代理(如 Claude、opencode)能够通过 MCP 协议进行多物理仿真: 1. 创建、加载、保存、版本控制 2.- 块、圆柱、球体、布尔运算 3.- 热传递、流体流动、静电学、固体力学 4.- 自动网格、静止/时间相关研究 5.- 评估表达式,导出图 6.- 嵌入式指南 + PDF 语义搜索 - (版本 5.x 或 6.x) - (非 Windows 商店版本) - (MPh/COMSOL 要求) 采用透硅过孔(TSV)对硅芯片进行三维热分析。 :60×60×5微米芯片,5微米直径TSV孔,10×10微米热源 :client_script/create_chip_tsv_final.py :温度从环境温度上升,热通量为1 MW/m²

概述(AI 翻译)

MCP服务器用于通过AI代理实现COMSOL多物理模拟自动化。

英文 |中文

星级历史

出版与引用

描述COMSOL-MCP的研究论文发表于《神经计算》杂志:

张奈音和王俊超,《COMSOL-MCP:用于人工智能辅助多物理仿真的开源模型上下文协议接口》,《神经计算》,第703卷,文章134481,2026年。

出版商页面:ScienceDirect

如果COMSOL-MCP对您的研究有贡献,请引用该论文:

引用指导

  • 在提及COMSOL-MCP方法、架构、能力或评估时,请引用论文。
  • 如果您使用或修改该软件,请同时引用论文和该仓库。使用GitHub的Cite this repository菜单,该菜单由CITATION.cff支持。
  • 为了可重复性,确定所使用的具体发布标签或提交,并在数据/代码可用性声明中包含仓库 URL 和访问日期。

项目目标

构建一个完整的 COMSOL MCP 服务器,使 AI 代理(如 Claude、opencode)能够通过 MCP 协议进行多物理仿真:

  1. 模型管理 - 创建、加载、保存、版本控制

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

COMSOL MCP Server

MCP Server for COMSOL Multiphysics simulation automation via AI agents.

English | 中文

Star History

Publication and Citation

The research paper describing COMSOL-MCP is available in Neurocomputing:

Naiyin Zhang and Junchao Wang, “COMSOL-MCP: An open-source model context protocol interface for AI-assisted multiphysics simulation,” Neurocomputing, vol. 703, article 134481, 2026.

Publisher page: ScienceDirect

If COMSOL-MCP contributes to your research, please cite the paper:

@article{Zhang2026COMSOLMCP,
  title   = {COMSOL-MCP: An Open-Source Model Context Protocol Interface for AI-Assisted Multiphysics Simulation},
  author  = {Zhang, Naiyin and Wang, Junchao},
  journal = {Neurocomputing},
  volume  = {703},
  pages   = {134481},
  year    = {2026},
  doi     = {10.1016/j.neucom.2026.134481},
  url     = {https://doi.org/10.1016/j.neucom.2026.134481}
}

Citation guidance

  • Cite the paper when referring to the COMSOL-MCP method, architecture, capabilities, or evaluation.
  • If you use or modify the software, cite both the paper and the repository. Use GitHub’s Cite this repository menu, which is backed by CITATION.cff.
  • For reproducibility, identify the exact release tag or commit used and include the repository URL and access date in your data/code availability statement.

Project Goal

Build a complete COMSOL MCP Server enabling AI agents (like Claude, opencode) to perform multiphysics simulations through the MCP protocol:

  1. Model Management - Create, load, save, version control
  2. Geometry Building - Blocks, cylinders, spheres, boolean operations
  3. Physics Configuration - Heat transfer, fluid flow, electrostatics, solid mechanics
  4. Meshing & Solving - Auto mesh, stationary/time-dependent studies
  5. Results Visualization - Evaluate expressions, export plots
  6. Knowledge Integration - Embedded guides + PDF semantic search

Requirements

  • COMSOL Multiphysics (version 5.x or 6.x)
  • Python 3.10+ (NOT Windows Store version)
  • Java runtime (required by MPh/COMSOL)

Installation

# Clone repository
git clone https://github.com/wjc9011/COMSOL_Multiphysics_MCP.git
cd COMSOL_Multiphysics_MCP

# Install dependencies
python -m pip install -e .

# Test server
python -m src.server

Building PDF Knowledge Base

# Install additional dependencies
pip install pymupdf chromadb sentence-transformers

# Build knowledge base
python scripts/build_knowledge_base.py

# Check status
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "comsol": { "command": "python", "args": ["-m", "src.server"], "cwd": "/path/to/COMSOL_Multiphysics_MCP" } } }