Steel Brain

io.github.dryow1由 GitHub 账号 dryow1 发布v1.1.0更新于 Nov 2, 2026

Trade-verified steel grade properties, substitution verdicts, and mill-cert guidance for AI agents.

发布方自己的服务:BrainDog

已验证Streamable HTTP可网页运行

概览

AI 生成的概览

Steel Brain 为助手提供经行业验证的钢材牌号知识:性能、替代判定与质保书指引,可通过远程 HTTP 或本地 stdio 使用。

可以做什么
  • 查询钢材牌号的性能、化学成分、形态、用途与可焊性,并解析别名
  • 判断一种牌号能否在机加工、焊接结构或承压应用中替代另一种牌号,给出结论与理由
  • 查询某牌号与用途适用的质保书类型及需核对的字段
  • 对知识库中不存在的牌号明确返回“未收录”,而非猜测
适用场景
当助手需要回答钢材牌号、材料替代或质保书相关问题,而凭猜测作答风险较高时使用,例如比较 4140 退火态与预硬态,或船用场景下 316L 与 304L。覆盖范围仅限 23 个牌号与 39 条替代规则。
运行要求
远程方式:将支持 streamable HTTP 的 MCP 客户端指向公开端点,无需 API 密钥。本地方式:需安装 Python 及项目依赖,以 stdio 模块方式运行。另有 REST API 使用 X-API-Key 请求头。
安装前请注意
远程端点设有共享的每日调用上限,可用性无法保证。答案来自有限的知识库(23 个牌号、39 条规则、4 份质保书指南),仅供参考,不能替代工程审核。REST API 需要 API 密钥,MCP 工具则不需要。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Steel Brain,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.dryow1%2Fsteel-brain/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "steel-brain": {
      "type": "http",
      "url": "https://api.steelbrain.dev/mcp"
    }
  }
}

README

Steel Brain

An MCP server providing steel domain knowledge to AI agents — grade properties, substitution verdicts, and mill-cert guidance, delivered as MCP tools your agent can call.

Also available as a REST API at https://api.steelbrain.dev.


MCP server

Steel Brain is a Model Context Protocol server. It exposes three MCP tools, over remote streamable HTTP (no install) or local stdio:

MCP ToolWhat it does
grade_lookupProperties, chemistry, forms, applications, weldability for a steel grade. Aliases resolved (4140 = 42CrMo4 = SCM440; S355 = ST52).
substitution_checkGiven from_grade, to_grade, application, returns a verdict (valid / conditional / invalid) with reasoning on whether one grade can substitute another.
cert_guideWhich mill certificate applies for a grade + use case (EN 10204 3.1/3.2, class certs ABS/DNV/LR/BV/NK) and what to check.

Remote (no install, free)

Point any MCP client that supports streamable HTTP at:

https://api.steelbrain.dev/mcp
{  "mcpServers": {    "steel-brain": { "type": "http", "url": "https://api.steelbrain.dev/mcp" }  }}

Claude Code: claude mcp add --transport http steel-brain https://api.steelbrain.dev/mcp

No API key needed. There is a shared daily cap to keep the server healthy.

Local (stdio)

pip install -r requirements.txtpython -m steel_brain.mcp_server

Starts the MCP server on stdio transport, ready for any MCP client (Claude Desktop, Claude Code, or any MCP-compatible agent).

Example MCP client config

{  "mcpServers": {    "steel-brain": {      "command": "python",      "args": ["-m", "steel_brain.mcp_server"]    }  }}

Built with the official MCP SDK (mcp package), registering three tools via the standard MCP tool interface.


Why Steel Brain

LLMs guess at steel. They will tell you 4140 annealed can stand in for 4140 pre-hardened, and scrap the job. Steel Brain answers from a human-verified knowledge base built by a working steel trader, and returns an honest "not in knowledge base" rather than a confident guess.

The valuable part is the substitution and cert logic:

  • 4140RB to 4140QT (annealed vs pre-hardened): invalid, same alloy, opposite heat-treat
  • 316L to 304L for marine: invalid, different corrosion class
  • EH36 to S355 structural: valid one way, conditional the other
  • Seamless vs ERW for pressure service: never interchangeable

Coverage

23 grades across carbon, alloy, stainless. Round bar, hollow bar, plate, pipe. 39 substitution rules, 4 cert guides.

REST API (alternative to MCP)

Same knowledge over REST at https://api.steelbrain.dev :

curl "https://api.steelbrain.dev/v1/grade/4140QT" -H "X-API-Key: YOUR_KEY"curl "https://api.steelbrain.dev/v1/substitution?from_grade=316L&to_grade=304L&application=machined" -H "X-API-Key: YOUR_KEY"

Free tier at launch. Contact: [email protected]

Honesty by design

  • Grade properties: published-standard ranges (ASTM/EN/JIS/API/ABS), labelled as such.
  • Substitution + cert logic: trade-verified, dated rulings from a working trader.
  • Unknown grades: honest "not in knowledge base," never fabricated.

Development

One-command local test setup:

make test

or directly:

bash scripts/test.sh

This creates a .venv (via python3 -m venv .venv) if it doesn't exist yet, installs requirements.txt into it, sets SB_SERVE_UNVERIFIED=1 (needed so the test suite can exercise unverified KB entries), and runs pytest. Works on macOS and Linux. Extra arguments are passed through to pytest, e.g. bash scripts/test.sh tests/test_gate2.py -v.

python -m pytest tests/    # 15 tests (10 acceptance + 5 domain-safety guards)

License

Code: MIT (see LICENSE). Knowledge base (kb/): proprietary (see NOTICE).

来源:README.md,提交 27598ed

工具

3

grade_lookup

Look up a steel grade: properties, chemistry, forms, applications, weldability. Aliases accepted (e.g. 4140 = 42CrMo4 = SCM440).

输入参数grade必填

substitution_check

Check if one steel grade can substitute another for a given application (machined / welded-structural / pressure). Returns verdict + reasoning from verified trade rules.

输入参数to_grade必填from_grade必填application必填

cert_guide

Which mill cert type applies for a grade + use case (e.g. EH36 shipbuilding), and what fields to check on the cert.

输入参数grade必填use_case必填

版本历史

2
  1. v1.1.0最新Sep 25, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Brain 集成