SymKit MCP - Symbolic derivation and verification toolkit for AI agents via MCP.
Project description
SymKit
Mathematica-style symbolic computation, powered by LLMs.
๐ English | ็ฎไฝไธญๆ
What if you had Mathematica's symbolic engine, driven by natural language?
Mathematica gave us precise symbolic math. LLMs gave us natural-language reasoning. SymKit combines both.
It is an MCP server that lets AI agents perform step-by-step symbolic derivations: calculate, transform, verify, and store formulas with full provenance โ all through conversation.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ You describe the math in plain English โ
โ โ โ
โ SymKit executes, verifies, and records every step โ
โ โ โ
โ You get an exact, reusable formula with an audit trail โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Why SymKit?
| Traditional LLM | SymKit |
|---|---|
| โ "The answer is approximately..." | โ "The exact expression is..." |
| โ "Let me calculate that again" | โ Every step is recorded and verifiable |
| โ "I think these units work out" | โ Dimensional analysis checks every result |
| โ "Where did this formula come from?" | โ Full provenance: base formulas + derivation steps |
| โ Calculation is lost in chat history | โ Stored as reusable Markdown + YAML |
What it does
SymKit is not a formula database. It is a symbolic derivation engine that creates new formulas from existing ones.
Known formulas New formula
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ F = -kx โ โ โ
โ F = ma โ โโcomposeโโโถ โ ฯ = โ(k/m) โ
โ dยฒx/dtยฒ = a โ โ (simple harmonic oscillator) โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Use it for physics, engineering, chemistry, biology, economics โ any domain where you need to combine and transform mathematical relationships.
โก Four superpowers
| Capability | What it means | Tools |
|---|---|---|
| Derive | Combine base formulas into new ones | derive, intent_execute, math |
| Control | Review, annotate, and rollback every step | session_*, *_step |
| Verify | Check correctness symbolically and dimensionally | session_verify_*, assume* |
| Ship | Turn results into Python, LaTeX, Markdown, or SymPy | generate_* |
๐ See it in action
Derive a physical law from first principles:
User: Derive the angular frequency of a simple harmonic oscillator.
SymKit:
1. Load F = -kx and F = mยทdยฒx/dtยฒ
2. Substitute โ mยทdยฒx/dtยฒ = -kx
3. Solve ODE โ x(t) = Aยทcos(ฯt + ฯ), ฯ = โ(k/m)
4. Verify by substitution: dยฒx/dtยฒ = -ฯยฒx โ
5. Store result with full derivation history
Build a custom engineering model:
User: Find the cutoff frequency of an RC high-pass filter.
SymKit:
1. Load Q = CV and V = IR
2. Derive capacitive reactance X_c = 1/(2ฯfC)
3. Set X_c = R at cutoff
4. Solve for f โ f_c = 1 / (2ฯRC) โ
Verify a calculus result:
User: Calculate and verify โซ(xยฒ + 3x) dx.
โ Result: xยณ/3 + 3xยฒ/2 + C
โ Verify: d/dx(xยณ/3 + 3xยฒ/2) = xยฒ + 3x โ
๐ ๏ธ 41 MCP tools, one coherent workflow
SymKit exposes 41 MCP tools across 8 categories. Everything routes through a few high-level tools while power users can drop down to individual steps.
| Category | Tools | Count |
|---|---|---|
| Unified Math | math |
1 |
| Session Management | session_start, session_show, session_rollback, session_complete, ... |
17 |
| Assumptions | assume, show_assumptions, assume_for_step, list_assumptions, check_assumption_conflicts, clear_step_assumptions |
6 |
| Formula Search | formula_search, formula_get, formula_add, formula_categories |
4 |
| Symbol Registry | register_symbol, lookup_symbol, list_domain_symbols, check_symbol_conflicts |
4 |
| Code Generation | generate_python_function, generate_latex_derivation, generate_derivation_report, generate_sympy_script |
4 |
| Derivation & Orchestration | derive, intent_execute, list_patterns |
3 |
| Tool Discovery | tool_categories, tool_recommend |
2 |
The math() tool alone covers ~25 symbolic operations โ calculus, ODEs, matrices, vector analysis, integral transforms โ and can write its result directly into a derivation session.
๐ Formula search workflow
SymKit can pull authoritative formulas from Wikidata and physical constants from SciPy, normalize LLM queries automatically, and load the chosen formula straight into a derivation session.
Recommended workflow:
1. Search
formula_search("Navier-Stokes equations", domain="fluid_dynamics")
2. Get and load
formula_get("Q201321", source="wikidata", load_into_session=True)
3. Derive
math("simplify", "...", session=True)
4. Complete
session_complete(description="Incompressible NS momentum equation")
Query normalization: you can write queries naturally โ fluid_dynamics, fluid mechanics, and cfd all resolve to the same domain; NavierโStokes (en dash) and Navier-Stokes (hyphen) match the same Wikidata item.
MathML handling: Wikidata sometimes returns rendered MathML for search previews. Call formula_get on the result ID to retrieve the original LaTeX and a SymPy-ready string.
๐๏ธ You own every step
A derivation in SymKit is a chain of immutable, verifiable steps. You can:
- Create โ
session_record_step - Read โ
session_get_steps,session_show - Annotate โ
session_add_note - Rollback โ
session_rollback - Verify โ
session_verify_step,session_verify_session
Expressions are never edited in place. If something goes wrong, roll back to the last good state and continue. This keeps the entire derivation reproducible.
๐ Works with the MCP ecosystem
SymKit is designed to extend, not replace, your scientific computing stack. It handles derivation, verification, and provenance; raw symbolic computation and base formulas are delegated to SymPy-MCP.
When to use SymKit:
- โ Deriving new formulas from existing ones
- โ Building temperature/pressure/parameter-corrected models
- โ Creating custom models for any quantitative domain
- โ Producing verified, citable derivation results
When to use something else:
- โ Looking up basic physics formulas โ use
sympy-mcp - โ Fetching physical constants โ use
sympy-mcporSciPy - โ Clinical scoring โ use
medical-calc-mcp - โ Reading textbook formulas โ use the reference directly
๐ฆ Get started in 60 seconds
Requirements
- Python 3.10+
- uv (recommended)
# Install
uv add symkit-mcp
# Or use pip
pip install symkit-mcp
Where data lives
After install, SymKit stores runtime data in a per-user directory (resolved via
platformdirs): derived formulas and session JSONs persist under
~/.local/share/symkit/ (Linux), %LOCALAPPDATA%\symkit (Windows), or
~/Library/Application Support/symkit (macOS). Set the SYMKIT_DATA_DIR
environment variable to override this location. Seed formulas (Reynolds number,
Navier-Stokes, โฆ) ship read-only inside the package; user-added formulas via
formula_add are written to the writable overlay and override seeds by id.
Connect to Claude Desktop / Cherry Studio
The same JSON works in any MCP-compatible client (Claude Desktop, Cherry Studio, etc.).
If you installed from PyPI:
{
"mcpServers": {
"symkit": {
"command": "uvx",
"args": ["symkit-mcp"]
}
}
}
If you are running from the local source directory (no install needed):
{
"mcpServers": {
"symkit": {
"command": "uv",
"args": [
"run",
"--no-sync",
"--directory",
"<your-local-symkit-mcp-path>",
"python",
"-m",
"symkit_mcp.server"
]
}
}
}
Replace --directory with the absolute path to your local symkit-mcp clone. --no-sync skips dependency resolution on every launch; run uv sync manually when dependencies change.
From source
git clone https://github.com/LBurny/symkit-mcp.git
cd symkit-mcp
uv sync --all-extras
uv run symkit-mcp
๐๏ธ Clean architecture, built to extend
symkit-mcp/
โโโ src/
โ โโโ symkit/ # Pure domain logic (no MCP dependency)
โ โ โโโ domain/ # Entities, value objects, derivation engine
โ โ โโโ application/ # Use cases
โ โ โโโ infrastructure/ # SymPy engine, adapters, persistence
โ โโโ symkit_mcp/ # MCP server layer
โ โโโ server.py
โ โโโ tools/ # 41 MCP tools
โโโ formulas/ # Seed formula library (source tree)
โโโ tests/ # 295 tests
โโโ pyproject.toml
- Domain-driven design โ core logic is independent of MCP and SymPy.
- Pluggable engines โ swap the symbolic engine or verifier via protocols.
- File-based persistence โ formulas and sessions live in readable Markdown/YAML/JSON.
๐งช Development
# Run the full test suite
uv run pytest
# Lint and type check
uv run ruff check src/ tests/
uv run mypy src/
# Start the dev server
uv run symkit-mcp
๐ Learn more
- Architecture โ DDD layering and responsibilities
- SymKit Design โ In-depth technical design (English)
- SymKit Design (ไธญๆ) โ ไธญๆ่ฎพ่ฎกๆๆกฃ
- SymKit vs SymPy-MCP โ Capability comparison
- Roadmap โ What's coming next
๐ Acknowledgments
SymKit is built on the foundation of nsforge-mcp, which pioneered the neurosymbolic formula-derivation approach. The original Chinese README of nsforge-mcp can be found here.
SymKit works alongside sympy-mcp, which provides the underlying SymPy-based symbolic computation and base formula lookup that SymKit builds upon.
๐ License
Apache 2.0 โ see LICENSE.
Stop answering math questions. Start deriving new knowledge.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file symkit_mcp-1.0.1.tar.gz.
File metadata
- Download URL: symkit_mcp-1.0.1.tar.gz
- Upload date:
- Size: 346.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8123ca1e0e44364617dabcecc3f5cc23e85f52a7583000ddbfeafe6dcad256eb
|
|
| MD5 |
51ea8f5915c5a5fb0d05f910816c7945
|
|
| BLAKE2b-256 |
69e183c62316b579500d9f5ec2fe9486b1ce3bfd364eb847be6b5bc5e0d211f8
|
Provenance
The following attestation bundles were made for symkit_mcp-1.0.1.tar.gz:
Publisher:
release.yml on LBurny/symkit-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
symkit_mcp-1.0.1.tar.gz -
Subject digest:
8123ca1e0e44364617dabcecc3f5cc23e85f52a7583000ddbfeafe6dcad256eb - Sigstore transparency entry: 2115998207
- Sigstore integration time:
-
Permalink:
LBurny/symkit-mcp@85dd288bff8df4f9b02f2e9445fb870a7bad5752 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/LBurny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@85dd288bff8df4f9b02f2e9445fb870a7bad5752 -
Trigger Event:
push
-
Statement type:
File details
Details for the file symkit_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: symkit_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 147.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
071fe43473df43a87e8d8846fd9fd76ac0fd6e59d6562df685bd4ccec52751b0
|
|
| MD5 |
c1e1f656710cfda86bb001c4e2b10c94
|
|
| BLAKE2b-256 |
80c48bd975883383050a8ca70c5622bc58287300cfb2d0799abc7fd77fc4ccc4
|
Provenance
The following attestation bundles were made for symkit_mcp-1.0.1-py3-none-any.whl:
Publisher:
release.yml on LBurny/symkit-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
symkit_mcp-1.0.1-py3-none-any.whl -
Subject digest:
071fe43473df43a87e8d8846fd9fd76ac0fd6e59d6562df685bd4ccec52751b0 - Sigstore transparency entry: 2115998337
- Sigstore integration time:
-
Permalink:
LBurny/symkit-mcp@85dd288bff8df4f9b02f2e9445fb870a7bad5752 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/LBurny
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@85dd288bff8df4f9b02f2e9445fb870a7bad5752 -
Trigger Event:
push
-
Statement type: