Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Exact symbolic math for LLMs: integrals, equations, matrices, and claim verification via Giac/Xcas
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"axiom-math": {
"command": "npx",
"args": [
"-y",
"axiom-math"
]
}
}
}在终端中运行这条命令
claude mcp add axiom-math -- npx -y axiom-math粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"axiom-math": {
"command": "npx",
"args": [
"-y",
"axiom-math"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"axiom-math": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"axiom-math"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 tufantunc 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.5)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Exact symbolic and numerical mathematics for LLMs — a real computer algebra system (Giac/Xcas) behind the Model Context Protocol, and behind a shell command. Published as `axiom-math`.
As a CLI, straight away:
npx -y axiom-math compute 'integrate(sin(x)^3,x)' # -cos(x)+cos(x)^3/3
npx -y axiom-math verify 'diff(x^3,x) = 3*x^2' # exit 0 — it holds
As an MCP server, in any client's config:
{ "command": "npx", "args": ["-y", "axiom-math"] }
As an agent skill — drop in skills/axiom-math/SKILL.md, which teaches an agent the three commands and their exit codes.
LLMs often make calculation errors, especially with symbolic math, exact fractions, and multi-step problems. Axiom provides verified, exact results through two layers:
| Dataset | Baseline | +MCP | Delta |
|---|---|---|---|
| GSM8K (100) | 96.0% | 98.0% | +2.0% |
| MATH L3 (50) | 70.0% | 80.0% | +10.0% |
| MATH L4 (50) | 50.0% | 62.0% | +12.0% |
| MATH L5 (50) | 38.0% | 52.0% | +14.0% |
| CAS-quick (60) | 55.0% | 70.0% | +15.0% |
| Omni-MATH ≥7 (50) | 0.0% | 0–4% | (ceiling) |
Key insights:
Full results: benchmark/results/ and docs/superpowers/specs/ (per-phase analysis)
Axiom exposes 3 MCP tools. Almost everything flows through compute, a single gateway that parses a CAS-style problem string and routes it to the right internal engine — so callers learn one tool, not dozens.
| Tool | Purpose |
|---|---|
compute | Solve any math problem. Pass a CAS-style string (solve(...), diff(...), det([[...]]), C(10,3), 2+3*sin(pi/4)) or any Giac/Xcas expression. |
verify | Independently check a mathematical claim (identity, solution, or computation) via symbolic and/or numeric methods. |
plot | Render a 2D function graph as an SVG image. |
compute coverscompute recognizes CAS-style verbs and dispatches across these domains. Anything it doesn't recognize falls through to raw Giac/Xcas evaluation.
| Domain | Verbs / examples |
|---|---|
| Arithmetic & units | 2+3*sin(pi/4), 100 km/h to m/s |
| Equation solving | solve(x^2-4=0, x), csolve(...) (complex), solve_system([x+y=5, x-y=1], [x,y]) |
| Calculus | diff, int, limit, taylor, desolve (ODEs of any order, and linear constant-coefficient systems) |
| Multivariable calculus | gradient, hessian, jacobian, divergence, curl, partial, iint/iiint (multiple integrals), critical_points, lagrange, tangent_plane, directional_derivative |
| Algebra | factor, simplify, expand, partfrac |
| Linear algebra | det, inv, eigenvals, eigenvects, rref, rank, tran, ker, qr, lu, cholesky, svd, norm, cond |
| Number theory | ifactor, isprime, euler, analyze |
| Combinatorics | C(n,k), P(n,k), stirling, bell, catalan, derangements, multinomial |
| Probability | binomial, normal, poisson, geometric, hypergeometric, chi_square, student_t, f_distribution, beta, exponential |
| Hypothesis testing | t_test (one/two/paired), anova, chi_square_test |
| Numerical methods | newton, bisection, secant, romberg, simpson |
| 2D geometry | distance, midpoint, slope, area_*, perimeter, circumference, line_intersection, point_line_distance, angle_between_lines |
| 3D geometry | distance3d, midpoint3d, dot, cross, vector_norm, angle_vectors, plane_from_points, point_plane_distance, line_plane_intersection, plane_plane_angle, line_line_distance, volume_tetrahedron, volume_sphere, volume_parallelepiped |
| Transforms & series | laplace, ilaplace, fourier/fft/ifft, sum, product |
| Exact values | to_exact, to_decimal, simplify_fraction |
| Regression & sequences | linear_regression/fit, polynomial_regression, sequence (pattern identification) |
The package is axiom-math on npm. Nothing to install for normal use — npx fetches and caches it:
npx -y axiom-math compute '2+2'
Or install it so the axiom-math command is on your PATH:
npm install -g axiom-math
Node.js >= 20 required. The first run downloads about 3.8 MB (the CAS engine compiled to WebAssembly) and takes a few seconds; later runs come from the npx cache.
For contributors, or to run a modified build:
git clone https://github.com/tufantunc/axiom-advanced-math-mcp.git
cd axiom-advanced-math-mcp npm install npm run build
# Build and run
docker-compose -f docker/docker-compose.yml up -d
docker-compose -f docker/docker-compose.yml logs -f
docker-compose -f docker/docker-compose.yml down
# Run with stdio transport (default)
npm start
npm run dev
Claude Desktop integration:
// ~/Library/Application Support/Claude/claude_desktop_config.json
{ "mcpServers": [ { "name": "axiom-math", "command": "npx", "args": ["-y", "axiom-math"] } ] }
Running from a local checkout instead of npm — point args at the built entry point:
"args": ["/path/to/axiom-advanced-math-mcp/dist/cli.js"]
The same binary works as a one-shot CLI, so agents can use it as a skill with no MCP configuration. With no arguments it is the MCP server; with a subcommand it runs one computation and exits.
npx -y axiom-math compute 'integrate(sin(x)^3,x)'
npx -y axiom-math compute -q 'solve(x^2-4=0,x)' # {-2, 2} npx -y axiom-math verify 'sin(x)^2+cos(x)^2 = 1' # exit 0 if true npx -y axiom-math plot 'sin(x)' -o wave.svg echo 'diff(x^3,x)' | npx -y axiom-math compute -q # 3*x^2
| Flag | Meaning |
|---|---|
-q | print one value only, for scripting |
--json | structured output |
--latex | LaTeX-focused text (compute only) |
-h, --help | usage, or usage for a subcommand |
Exit codes: 0 success · 1 tool or usage error · 2 verify checked the claim and it is false.
2 is a mathematical verdict, so a claim that never got checked does not use it: one that fails to parse, that the CAS cannot evaluate, or that has a superscript with more than one reading, exits 1 with nothing on stdout. axiom-math verify '...' && ... therefore never reads a syntax error as a disproof.
A ready-to-use agent skill is in skills/axiom-math/SKILL.md.
# Start HTTP server (default: http://127.0.0.1:3000)
npm run start:http
npm run dev:http
The HTTP transport is stateless: every POST /mcp is handled independently, no Mcp-Session-Id is issued, and no session state is kept between requests. This server sends no server-initiated notifications, so nothing is lost — and it scales horizontally with no shared state.
| Method | Path | Behaviour |
|---|---|---|
| POST | /mcp | Handles a JSON-RPC message |
| GET | /mcp | 405 — no SSE stream is offered |
| DELETE | /mcp | 405 — there are no sessions to terminate |
| GET | /health | 200 when ready, 503 when the CAS engine is not |
Security: there is no authentication and no rate limiting. The default
bind address is
127.0.0.1, butdocker/docker-compose.ymlsets
MCP_HOST=0.0.0.0. If you expose the port, put it behind a reverse proxy that
authenticates and rate-limits —
docker/reverse-proxy/
is a working, tested one (nginx + basic auth + per-client concurrency cap,
with the app publishing no port of its own).
SECURITY.md documents the full posture — what is protected,
what is not, and how to report a vulnerability.
POST /mcpalso validates theHostheader against an
只显示了开头部分;其余内容请在仓库中阅读