Scientific Computation MCP Server
平台与服务by Aman-Amith-Shastry
该 MCP server 支持用自然语言完成 linear algebra 与 vector calculus 计算,连接 NumPy、SymPy 等计算库,让 scientific computing 更易上手。
什么是 Scientific Computation MCP Server?
该 MCP server 支持用自然语言完成 linear algebra 与 vector calculus 计算,连接 NumPy、SymPy 等计算库,让 scientific computing 更易上手。
README
Scientific Computation MCP
Installation Guide
The server speaks streamable HTTP. Add it from Smithery with the Smithery CLI (Node 20+):
npm install -g smithery@latest
smithery mcp add @aman-amith-shastry/scientific_computation_mcp --client claude
The namespace is lowercase. Smithery's registry lookup is case-sensitive, and the mixed-case spelling resolves to an empty record with no tools rather than failing outright, so a capitalized name looks like a server with no capabilities.
Swap --client cursor for Cursor, or drop --client to add it as a remote Smithery
connection. Restart the client afterwards so it picks up the server.
Running Locally
uv sync
uv run src/main.py
The MCP endpoint is at http://localhost:8081/mcp and a liveness probe at
http://localhost:8081/health. Environment overrides: PORT, HOST, MCP_PATH,
ALLOWED_ORIGINS, LOG_LEVEL.
Deployment
Smithery no longer builds or hosts containers — servers are published either as a URL that Smithery's gateway proxies to, or as an MCPB bundle for local stdio. This server is published by URL, so the container runs on any host that can serve HTTPS.
docker build -t scientific-computation-mcp .
docker run -p 8081:8081 -e PORT=8081 scientific-computation-mcp
Two constraints the host must satisfy:
- One instance. Tensors live in process memory between tool calls, so scaling past a
single replica splits the store and breaks
create_tensor→view_tensorflows. - Sessions must survive. The transport runs stateful (
stateless_http=False) and the tensor store is keyed per MCP session, which is what keeps concurrent users from reading each other's tensors.
Hosting on Render
render.yaml deploys the Dockerfile as a single free-plan web service.
In the Render dashboard: New → Blueprint, then select this repo. Render injects
PORT, terminates TLS, and probes /health; no other configuration is required.
Free instances spin down after 15 minutes without inbound traffic and take roughly a minute to come back. An open MCP session does not prevent this: the streamable-HTTP stream is server-to-client, so an idle session sends nothing inbound and the service sleeps out from under it. Two consequences worth planning around:
- Tensors do not survive a 15-minute gap between tool calls. The store is in process memory, so a spin-down takes the session and its tensors together. Active use keeps the service up, since each tool call is inbound traffic; a long pause mid-analysis does not.
- Publish-time scans can land on a sleeping instance. Smithery scans the URL as
SmitheryBot/1.0, and a cold start can outrun its timeout. Warm/healthfirst.
The free tier also grants 750 instance-hours per workspace per month against a ~730-hour month, so one continuously running free service just fits and a second does not.
Any host that keeps one process always on avoids all of this — the container is plain
HTTP on $PORT with no platform-specific assumptions.
Publishing
curl -sS -o /dev/null -w '%{http_code}\n' https://<your-host>/health
smithery mcp publish "https://<your-host>/mcp" -n @aman-amith-shastry/scientific_computation_mcp
The server takes no user configuration, so no config schema is needed.
Components of the Server
Tools
Tensor storage
create_tensor: Creates a new tensor based on a given name, shape, and values, and adds it to the tensor store. For the purposes of this server, tensors are vectors and matrices.view_tensor: Display the contents of a tensor from the store .delete_tensor: Deletes a tensor based on its name in the tensor store.
Linear Algebra
add_matrices: Adds two matrices with the provided names, if compatible.subtract_matrices: Subtracts two matrices with the provided names, if compatible.multiply_matrices: Multiplies two matrices with the provided names, if compatible.scale_matrix: Scales a matrix of the provided name by a certain factor, in-place by default.matrix_inverse: Computes the inverse of the matrix with the provided name.transpose: Computes the transpose of the inverse of the matrix of the provided name.determinant: Computes the determinant of the matrix of the provided name.rank: Computes the rank (number of pivots) of the matrix of the provided name.compute_eigen: Calculates the eigenvectors and eigenvalues of the matrix of the provided name.qr_decompose: Computes the QR factorization of the matrix of the provided name. The columns of Q are an orthonormal basis for the image of the matrix, and R is upper triangular.svd_decompose: Computes the Singular Value Decomposition of the matrix of the provided name.find_orthonormal_basis: Finds an orthonormal basis for the matrix of the provided name. The vectors returned are all pair-wise orthogonal and are of unit length.change_basis: Computes the matrix of the provided name in the new basis.
Vector Calculus
vector_project: Projects a vector in the tensor store to the specified vector in the same vector spacevector_dot_product: Computes the dot product of two vectors in the tensor stores based on their provided names.vector_cross_product: Computes the cross product of two vectors in the tensor stores based on their provided names.gradient: Computes the gradient of a multivariable function based on the input function. Example call:gradient("x^2 + 2xyz + zy^3"). Do NOT include the function name (like f(x, y, z) = ...`).curl: Computes the curl of a vector field based on the input vector field. The input string must be formatted as a python list. Example call:curl("[3xy, 2z^4, 2y]"").divergenceComputes the divergence of a vector field based on the input vector field. The input string must be formatted as a python list. Example call:divergence("[3xy, 2z^4, 2y]"").laplacianComputes the laplacian of a scalar function (as the divergence of the gradient) or a vector field (where a component-wise laplacian is computed). If a scalar function is the input, it must be input in the same format as in thegradienttool. If the input is a vector field, it must be input in the same manner as thecurl/divergencetools.directional_deriv: Computes the directional derivative of a function in a given directionuBy default, the tool normalizesubefore computing the directional derivative, as specified by theunitparameter.
Visualization
plot_vector_field: Plots a vector field (specified in the same format as in the curl/divergence functions). Currently, only 3d vector fields are supported. A 2d png perspective image of the vector field is returned. By default, the bounds of the graph are from -1 to 1 on each axis.plot_function: Plots a function in 2d or 3d (based on the input variables), specified in the same format as in thegradienttool. Only the variables x and y can be used.
常见问题
Scientific Computation MCP Server 是什么?
该 MCP server 支持用自然语言完成 linear algebra 与 vector calculus 计算,连接 NumPy、SymPy 等计算库,让 scientific computing 更易上手。
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。
