SymKit

SymKit

MCP server for symbolic computation that enables AI agents to perform step-by-step derivations, transform formulas, and verify results with full provenance, combining natural language with formal mathematical operations.

Category
Visit Server

README

SymKit

Mathematica-style symbolic computation, powered by LLMs.

License Python MCP Tests Lint

๐ŸŒ 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-mcp or SciPy
  • โŒ 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

๐Ÿ™ 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.


<p align="center"> <strong>Stop answering math questions. Start deriving new knowledge.</strong> </p>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured