MCP server for Baltamatica (北太天元) scientific computing engine
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"baltamatica-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# baltamatica.mcp [](https://pypi.org/project/baltamatica-mcp/) [](LICENSE) [](https://modelcontextprotocol.io) [](https://www.baltamatica.com) > 🔗 让 AI 代理(Claude Code / Cursor / Codex)直接驱动国产科学计算软件 **北太天元(Baltamatica)** 进行交互式数值计算。 --- ## 📖 项目简介 **baltamatica.mcp** 是一个基于 [Model Context Protocol (MCP)](https://modelcontextprotocol.io) 的开源服务,为大语言模型提供与北太天元科学计算内核之间的双向通信桥梁。 通过本项目,AI 代理可以: - 🧮 **执行代码**:直接在北太天元中运行 `.m` 脚本或单行表达式,并取回控制台输出 - 📊 **读取变量**:获取工作区中矩阵、向量、结构体、元胞等变量的值(BEX 后端二进制全保真) - ✍️ **写入变量**:把标量/向量/矩阵注入工作区(`set_variable`) - 🔍 **查询状态**:列出当前工作区中所有变量的名称、类型和维度 - 📂 **管理脚本**:运行本地 `.m` 脚本文件 - 🧹 **清空工作区**:重置计算环境 **当前状态**:两套后端均可用。 - **CLI 后端**:通过北太天元命令行入口执行代码,用 `.mat` 状态文件在多次 MCP 调用之间保持工作区变量。支持全部 6 个工具。 - **BEX 后端**:在北太天元 GUI 进程内运行的 C 桥接(JSON-over-TCP),支持 `execute_code`、`run_script`、`list_variables`、`get_variable`、`set_variable`、`clear_workspace`: - `get_variable` 对数值/逻辑数组(实数**和复数**、任意大小)走 base64 二进制全保真回传,对字符/字符串/结构体/元胞走结构化 JSON; - `set_variable` 用 `bxAddVariable` 把标量/向量/矩阵注入工作区; - `execute_code` / `run_script` 用 `evalc` 捕获控制台输出并解析 `BALTAMATICA_ARTIFACT=` 文件产物; - 桥接生命周期健壮(可靠 `stop`、Ctrl-C 恢复、`background` 模式),并可触发 GUI Figure 弹窗(但北太天元本身无图形导出函数,见下)。 --- ## 🏗️ 系统架构 项目提供两套后端。**CLI 后端**通过北太天元命令行入口执行代码,用 `.mat` 状态文件保持工作区变量,无需编译,适合快速上手。**BEX 后端**是一个在北太天元 GUI 进程内运行的 C 桥接,走 **JSON-over-TCP**,提供进程内低延迟长连接、二进制变量传输和变量注入。两者暴露相同的 MCP 工具集。 ``` ┌──────────────────────────────────────────────────────────┐ │ AI Agent (Claude Code / Cursor / Codex) │ └─────────────────────────┬────────────────────────────────┘ │ MCP Protocol (stdio) ▼ ┌──────────────────────────────────────────────────────────┐ │ Python MCP Server (balta…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.