Skip to main content
Glama
nesar

lattice-mcp-server

by nesar

lattice-mcp-server

一个 MCP 服务器,向任何 LLM 智能体提供科学工具——来自格点 QCD 的热的强相互作用物质的热力学。按照与 spectra-mcp-servergaia-mcp-server 相同的模式构建;multiagent-client-demo 中的多智能体客户端可以不加修改地驱动这些服务器中的任何一个。

科学背景

将核物质加热到约 156 MeV(~2 × 10¹² K)以上,强子就会溶解成夸克-胶子等离子体。这并非猜测:它是格点 QCD 的第一性原理结果,在地球上的 RHIC 和 LHC 重离子碰撞中被重现,而宇宙本身也在大爆炸后约 10 μs 时随着冷却经历了这一转变。这里的工具计算的是在交叉过渡处交汇的两种描述:

  • QCD 物质的状态方程——已发表的连续极限外推 (2+1) 味格点结果的参数化(Bazavov 等人,HotQCD 合作组,PRD 90, 094503 (2014)),

  • 强子共振气体(HRG)——由 ~1200 个强子和共振态组成的无相互作用气体(QMHRG2020 列表),这是一种禁闭相描述,一旦夸克被解放,它就必然失效。

虚线 HRG 曲线从格点曲线分离之处就是退禁闭:

QCD equation of state vs hadron resonance gas

所有计算均使用 LatticeQCD AnalysisToolboxpip install latqcdtools)完成,这是 HotQCD 合作组的公开分析软件包。捆绑在 data/ 中的强子列表来自该仓库(MIT 许可证)。

Related MCP server: Mol-MCP

工具

工具

功能

describe_qcd_thermodynamics()

物理背景、有效范围、参考文献——先调用它

compute_qcd_eos(output_dir, ...)

格点状态方程:T 网格上的 p/T⁴、ε/T⁴、s/T³、迹反常、c_s² → CSV

compute_hrg_thermodynamics(output_dir, ...)

由强子共振气体计算相同列 → CSV

plot_eos(eos_file, output_dir, hrg_file=None)

经典的 ε/T⁴、3p/T⁴、(3/4)s/T³ 图,含交叉过渡带、理想气体极限、可选 HRG 叠加

plot_speed_of_sound(eos_file, output_dir, ...)

c_s²(T),含最软点 + 迹反常面板

compute_charge_cumulants(output_dir, ...)

HRG 重子数磁化率 χ₂ᴮ、χ₄ᴮ(重离子涨落可观测量)→ CSV

plot_charge_cumulants(cumulants_file, output_dir)

χₙᴮ(T) 以及峭度比 χ₄ᴮ/χ₂ᴮ 与强子气体预期的对比

compute_running_coupling(output_dir, ...)

双圈 α_s(μ):渐近自由 → CSV + PNG

有两个约定值得复制到任何科学 MCP 服务器中:

  1. 每个工具都返回 {status, files, message, metadata}ArtifactResult)。

  2. 数组在工具之间以文件路径传递,绝不通过智能体的上下文窗口。

安装

conda create -n lattice-tutorial python=3.12 -y
conda activate lattice-tutorial
pip install -e ".[dev]"
pytest

已经有其他服务器的 spectra-tutorial 环境了?可以复用它:pip install latqcdtools,然后始终从这个仓库的根目录启动此服务器(以及 pytest)——所有教程服务器都导出名为 toolsmcp_server 的包,所以不要将其中多个 pip install -e 到同一个环境;从仓库根目录运行可使本地包优先。

运行服务器

python -m mcp_server --transport streamable-http --port 8002

客户端连接到 http://127.0.0.1:8002/mcp。按照约定使用端口 8002,这样此服务器可以与 spectra (8000)、gaia (8001) 和 bbn (8003) 并行运行。使用 Ctrl+C 停止。

要从 Claude Code、Claude Desktop 应用、Codex、Cursor 或任何其他 MCP 客户端使用此服务器,请参阅 docs/mcp-clients.md——已签入的 .mcp.json 已将其接入 Claude Code。

可以问智能体的问题

“强子物质在什么温度下熔化?计算格点 QCD 状态方程和强子共振气体,将它们叠加,然后告诉我 在哪里以及为什么它们不一致。”

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables LLM applications to query and visualize data from Bosch/Buderus heat pumps via ems-ESP, including temperatures, statistics, and heat curves through natural language.
    9
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Provides computational chemistry tools for LLMs, enabling molecular operations like SMILES processing and geometry manipulation via a modular agent and tool system.
    9
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server for computational materials science that enables AI assistants to generate LAMMPS simulations, parse outputs, analyze nematic order, detect plastic rearrangements, and estimate viscosity through 12 specialized tools.
    12
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Provide real-time data querying and visualization by integrating Tako with your agents. Generate o…

  • Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.

  • Precision math engine for AI agents. 203 exact methods. Zero hallucination.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nesar/lattice-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server