io.github.daedalus/mcp-sympy
MCP server that exposes SymPy's symbolic mathematics functionality
Versions
0.1.0latestTools 171
sympy_fresnels Fresnel S.
sympy_primepi Prime counting function.
sympy_simplify Simplify an expression. Args: expr: String expression to simplify Returns: Simplified expression as string
sympy_symbols Create symbolic variables. Args: names: Comma-separated symbol names (e.g., "x, y, z") Returns: String representation of created symbols
sympy_symbol Create a single symbolic variable. Args: name: Symbol name Returns: String representation of the symbol
sympy_sympify Convert a string to a SymPy expression. Args: expr: String expression to convert Returns: SymPy expression as string
sympy_trigsimp Simplify trigonometric expressions. Args: expr: String trigonometric expression Returns: Simplified expression
sympy_ratsimp Simplify rational expressions. Args: expr: String rational expression Returns: Simplified rational expression
sympy_powsimp Simplify powers in an expression. Args: expr: String expression with powers Returns: Simplified expression
sympy_factor Factor an expression. Args: expr: String expression to factor Returns: Factored expression
sympy_expand Expand an expression. Args: expr: String expression to expand Returns: Expanded expression
sympy_expand_trig Expand trigonometric expressions. Args: expr: String trigonometric expression Returns: Expanded expression Example: >>> sympy_expand_trig("sin(2*x)") "2*sin(x)*cos(x)"
sympy_expand_log Expand logarithmic expressions. Args: expr: String logarithmic expression Returns: Expanded expression Example: >>> sympy_expand_log("log(x*y)") "log(x) + log(y)"
sympy_together Combine terms into a single fraction. Args: expr: String expression Returns: Combined fraction Example: >>> sympy_together("1/x + 1/y") "(x + y)/(x*y)"
sympy_apart Perform partial fraction decomposition. Args: expr: String rational expression Returns: Partial fractions Example: >>> sympy_apart("1/(x**2 - 1)") "1/(2*(x - 1)) - 1/(2*(x + 1))"
sympy_cancel Cancel common factors in rational expression. Args: expr: String rational expression Returns: Canceled expression Example: >>> sympy_cancel("(x**2 - 1)/(x - 1)") "x + 1"
sympy_solve Solve an equation or system of equations. Args: equation: String equation variables: Comma-separated variables to solve for Returns: Solution(s) as string
sympy_solveset Solve an equation using solveset. Args: equation: String equation variable: Variable to solve for Returns: Solution set as string
sympy_nsolve Numerically solve an equation. Args: equation: String equation variables: Comma-separated variables guesses: Comma-separated initial guesses Returns: Numerical solution
sympy_diff Differentiate an expression. Args: expr: String expression to differentiate variable: Variable to differentiate with respect to order: Order of derivative Returns: Derivative as string
sympy_integrate Integrate an expression. Args: expr: String expression to integrate variable: Variable to integrate with respect to Returns: Integral as string
sympy_limit Compute a limit. Args: expr: String expression variable: Variable approaching the limit point: Point to approach direction: Direction ("+", "-") Returns: Limit as string
sympy_series Compute series expansion. Args: expr: String expression variable: Variable to expand around point: Point to expand around order: Order of expansion Returns: Series expansion as string
sympy_sum Compute a sum. Args: expr: String expression to sum variable: Summation variable lower: Lower bound upper: Upper bound Returns: Sum as string Example: >>> sympy_sum("k**2", "k", "1", "5") "55"
sympy_product Compute a product. Args: expr: String expression to multiply variable: Product variable lower: Lower bound upper: Upper bound Returns: Product as string Example: >>> sympy_product("k", "k", "1", "5") "120"
sympy_summation Compute an unevaluated sum (Sum object). Args: expr: String expression variable: Summation variable bounds: Lower and upper bound as "lower,upper" Returns: Sum object as string Example: >>> sympy_summation("k**2", "k", "1,5") "Sum(k**2, (k, 1, 5))"
sympy_product_expr Compute an unevaluated product (Product object). Args: expr: String expression variable: Product variable bounds: Lower and upper bound as "lower,upper" Returns: Product object as string Example: >>> sympy_product_expr("k", "k", "1,5") "Product(k, (k, 1, 5))"
sympy_derivative Create a Derivative object (unevaluated). Args: expr: String expression variable: Variable to differentiate order: Order of derivative Returns: Derivative object as string Example: >>> sympy_derivative("x**2", "x") "Derivative(x**2, x)"
sympy_integral Create an Integral object (unevaluated). Args: expr: String expression variable: Variable to integrate Returns: Integral object as string Example: >>> sympy_integral("x**2", "x") "Integral(x**2, x)"
sympy_matrix Create a matrix from rows. Args: rows: Semicolon-separated rows, e.g., "1,2; 3,4" Returns: Matrix as string Example: >>> sympy_matrix("1,2; 3,4") "Matrix([[1, 2], [3, 4]])"
sympy_matrix_add Add two matrices. Args: matrix1: First matrix string matrix2: Second matrix string Returns: Sum matrix as string Example: >>> sympy_matrix_add("Matrix([[1, 2], [3, 4]])", "Matrix([[5, 6], [7, 8]])") "Matrix([[6, 8], [10, 12]])"
sympy_matrix_multiply Multiply two matrices. Args: matrix1: First matrix string matrix2: Second matrix string Returns: Product matrix as string Example: >>> sympy_matrix_multiply("Matrix([[1, 2], [3, 4]])", "Matrix([[5, 6], [7, 8]])") "Matrix([[19, 22], [43, 50]])"
sympy_matrix_inverse Compute matrix inverse. Args: matrix: Matrix string Returns: Inverse matrix as string Example: >>> sympy_matrix_inverse("Matrix([[1, 2], [3, 4]])") "Matrix([[-2, 1], [1.5, -0.5]])"
sympy_matrix_determinant Compute matrix determinant. Args: matrix: A SymPy matrix string, e.g., "Matrix([[1, 2], [3, 4]])" Returns: The determinant as a string. Example: >>> sympy_matrix_determinant("Matrix([[1, 2], [3, 4]])") "-2"
sympy_matrix_transpose Transpose a matrix. Args: matrix: Matrix string Returns: Transposed matrix as string Example: >>> sympy_matrix_transpose("Matrix([[1, 2], [3, 4]])") "Matrix([[1, 3], [2, 4]])"
sympy_matrix_eigenvals Compute eigenvalues of a matrix. Args: matrix: Matrix string Returns: Eigenvalues as string Example: >>> sympy_matrix_eigenvals("Matrix([[1, 2], [2, 1]])") "{5: 1, -3: 1}"
sympy_matrix_eigenvects Compute eigenvectors of a matrix. Args: matrix: Matrix string Returns: Eigenvectors as string Example: >>> sympy_matrix_eigenvects("Matrix([[1, 0], [0, 2]])") "(1, 1, [Matrix([[1], [0]]), Matrix([[0], [1]])])"
sympy_eye Create an identity matrix. Args: n: Size of the matrix Returns: Identity matrix as string Example: >>> sympy_eye(3) "Matrix([[1, 0, 0], [0, 1, 0], [0, 0, 1]])"
sympy_zeros Create a zero matrix. Args: rows: Number of rows cols: Number of columns (default: same as rows) Returns: Zero matrix as string Example: >>> sympy_zeros(2, 3) "Matrix([[0, 0, 0], [0, 0, 0]])"
sympy_ones Create a matrix of ones. Args: rows: Number of rows cols: Number of columns (default: same as rows) Returns: Matrix of ones as string Example: >>> sympy_ones(2, 3) "Matrix([[1, 1, 1], [1, 1, 1]])"
sympy_diag Create a diagonal matrix. Args: elements: Comma-separated diagonal elements Returns: Diagonal matrix as string Example: >>> sympy_diag("1,2,3") "Matrix([[1, 0, 0], [0, 2, 0], [0, 0, 3]])"
sympy_latex Convert expression to LaTeX. Args: expr: SymPy expression string Returns: LaTeX string Example: >>> sympy_latex("x**2 + sin(y)") "x^{2} + \sin{\left(y\right)}"
sympy_python_code Convert expression to Python code. Args: expr: SymPy expression string Returns: Python code string Example: >>> sympy_python_code("x**2 + 1") "x**2 + 1"
sympy_mathml Convert expression to MathML. Args: expr: SymPy expression string Returns: MathML string Example: >>> sympy_mathml("x**2") "<math><apply><power/><ci>x</ci><cn>2</cn></apply></math>"
sympy_str Convert expression to string. Args: expr: SymPy expression string Returns: String representation Example: >>> sympy_str("x**2 + 1") "x**2 + 1"
sympy_repr_expr Get repr of expression. Args: expr: SymPy expression string Returns: repr string Example: >>> sympy_repr_expr("x**2") "Pow(Symbol('x'), Integer(2))"
sympy_interval Create an interval. Args: start: Start value end: End value left_open: Whether left is open right_open: Whether right is open Returns: Interval as string Example: >>> sympy_interval("0", "1", true, true) "(0, 1)"
sympy_finite_set Create a finite set. Args: elements: Comma-separated elements Returns: Finite set as string Example: >>> sympy_finite_set("1,2,3,4,5") "{1, 2, 3, 4, 5}"
sympy_union Compute union of two sets. Args: set1: First set set2: Second set Returns: Union as string Example: >>> sympy_union("{1,2}", "{2,3}") "{1, 2, 3}"
sympy_intersection Compute intersection of two sets. Args: set1: First set set2: Second set Returns: Intersection as string Example: >>> sympy_intersection("{1,2,3}", "{2,3,4}") "{2, 3}"
sympy_complement Compute complement of set1 in set2. Args: set1: Subset set2: Universal set Returns: Complement as string Example: >>> sympy_complement("{1,2}", "{1,2,3,4}") "{3, 4}"
sympy_evaluate Toggle evaluation globally.
sympy_n Evaluate expression numerically. Args: expr: Expression to evaluate n: Number of digits Returns: Numerical result Example: >>> sympy_n("pi", 10) "3.141592654"
sympy_evalf Evaluate expression to floating point. Args: expr: Expression to evaluate n: Number of digits Returns: Float result Example: >>> sympy_evalf("sqrt(2)", 5) "1.4142"
sympy_exp Exponential function. Args: expr: Expression Returns: exp(expr) as string Example: >>> sympy_exp("1") "E"
sympy_log Natural logarithm. Args: expr: Expression Returns: log(expr) as string Example: >>> sympy_log("E") "1"
sympy_log_base Logarithm with specified base. Args: expr: Expression base: Logarithm base Returns: log_base(expr) as string Example: >>> sympy_log_base("100", "10") "2"
sympy_sin Sine function. Args: expr: Expression (in radians) Returns: sin(expr) as string Example: >>> sympy_sin("pi/2") "1"
sympy_cos Cosine function. Args: expr: Expression (in radians) Returns: cos(expr) as string Example: >>> sympy_cos("0") "1"
sympy_tan Tangent function. Args: expr: Expression (in radians) Returns: tan(expr) as string Example: >>> sympy_tan("pi/4") "1"
sympy_sinh Hyperbolic sine. Args: expr: Expression Returns: sinh(expr) as string Example: >>> sympy_sinh("0") "0"
sympy_cosh Hyperbolic cosine. Args: expr: Expression Returns: cosh(expr) as string Example: >>> sympy_cosh("0") "1"
sympy_tanh Hyperbolic tangent. Args: expr: Expression Returns: tanh(expr) as string Example: >>> sympy_tanh("0") "0"
sympy_asin Arc sine. Args: expr: Expression (between -1 and 1) Returns: asin(expr) as string Example: >>> sympy_asin("0") "0"
sympy_acos Arc cosine. Args: expr: Expression (between -1 and 1) Returns: acos(expr) as string Example: >>> sympy_acos("1") "0"
sympy_atan Arc tangent. Args: expr: Expression Returns: atan(expr) as string Example: >>> sympy_atan("1") "pi/4"
sympy_sqrt Square root. Args: expr: Expression Returns: sqrt(expr) as string Example: >>> sympy_sqrt("4") "2"
sympy_cbrt Cube root. Args: expr: Expression Returns: cbrt(expr) as string Example: >>> sympy_cbrt("8") "2"
sympy_root N-th root. Args: expr: Expression n: Root degree Returns: Root as string Example: >>> sympy_root("8", "3") "2"
sympy_floor Floor function. Args: expr: Expression Returns: floor(expr) as string Example: >>> sympy_floor("3.7") "3"
sympy_ceiling Ceiling function. Args: expr: Expression Returns: ceiling(expr) as string Example: >>> sympy_ceiling("3.2") "4"
sympy_abs Absolute value. Args: expr: Expression Returns: abs(expr) as string Example: >>> sympy_abs("-5") "5"
sympy_factorial Factorial. Args: n: Non-negative integer Returns: n! as string Example: >>> sympy_factorial("5") "120"
sympy_binomial Binomial coefficient. Args: n: Non-negative integer k: Non-negative integer Returns: C(n,k) as string Example: >>> sympy_binomial("5", "2") "10"
sympy_gamma Gamma function. Args: expr: Expression Returns: Gamma(expr) as string Example: >>> sympy_gamma("5") "24"
sympy_zeta Riemann zeta function. Args: s: Expression Returns: zeta(s) as string Example: >>> sympy_zeta("2") "pi**2/6"
sympy_erf Error function. Args: expr: Expression Returns: erf(expr) as string Example: >>> sympy_erf("0") "0"
sympy_dirichlet_eta Dirichlet eta function.
sympy_polylog Polylogarithm.
sympy_fibonacci Fibonacci number. Args: n: Non-negative integer Returns: F(n) as string Example: >>> sympy_fibonacci("10") "55"
sympy_lucas Lucas number. Args: n: Non-negative integer Returns: L(n) as string Example: >>> sympy_lucas("10") "123"
sympy_catalan Catalan number. Args: n: Non-negative integer Returns: C(n) as string Example: >>> sympy_catalan("5") "42"
sympy_isprime Check if n is prime. Args: n: Integer Returns: "True" or "False" Example: >>> sympy_isprime("7") "True"
sympy_prime Return the n-th prime. Args: n: Positive integer (1-indexed) Returns: n-th prime as string Example: >>> sympy_prime("10") "29"
sympy_nextprime Return the next prime after n. Args: n: Integer Returns: Next prime as string Example: >>> sympy_nextprime("10") "11"
sympy_prevprime Return the previous prime before n. Args: n: Integer > 2 Returns: Previous prime as string Example: >>> sympy_prevprime("10") "7"
sympy_totient Euler's totient function. Args: n: Positive integer Returns: phi(n) as string Example: >>> sympy_totient("10") "4"
sympy_divisors Return divisors of n. Args: n: Positive integer Returns: List of divisors Example: >>> sympy_divisors("12") "[1, 2, 3, 4, 6, 12]"
sympy_gcd Greatest common divisor. Args: a: Integer b: Integer Returns: gcd(a, b) as string Example: >>> sympy_gcd("48", "18") "6"
sympy_lcm Least common multiple. Args: a: Integer b: Integer Returns: lcm(a, b) as string Example: >>> sympy_lcm("4", "6") "12"
sympy_factorint Integer factorization. Args: n: Integer Returns: Prime factorization as string Example: >>> sympy_factorint("12") "{2: 2, 3: 1}"
sympy_poly Create a polynomial. Args: expr: Expression variable: Variable Returns: Polynomial as string Example: >>> sympy_poly("x**2 + 2*x + 1", "x") "x**2 + 2*x + 1"
sympy_degree Degree of polynomial. Args: expr: Polynomial expression variable: Variable Returns: Degree as string Example: >>> sympy_degree("x**3 + x**2 + 1", "x") "3"
sympy_roots Find roots of polynomial. Args: expr: Polynomial expression variable: Variable Returns: Roots as string Example: >>> sympy_roots("x**2 - 4", "x") "{2: 1, -2: 1}"
sympy_coeff Get coefficient. Args: expr: Expression x: Variable n: Power of x Returns: Coefficient as string Example: >>> sympy_coeff("3*x**2 + 2*x + 1", "x", 2) "3"
sympy_subs Substitute in expression. Args: expr: Expression old_new: Substitutions as "old:new,old2:new2" Returns: Substituted expression Example: >>> sympy_subs("x**2 + y", "x:2,y:3") "7"
sympy_atoms Get atoms (atomic components) of expression. Args: expr: Expression Returns: Set of atoms Example: >>> sympy_atoms("x**2 + y") "{x, y}"
sympy_free_symbols Get free symbols in expression. Args: expr: Expression Returns: Set of free symbols Example: >>> sympy_free_symbols("x**2 + y") "{x, y}"
sympy_args Get arguments of expression. Args: expr: Expression Returns: Tuple of arguments Example: >>> sympy_args("x + y") "(x, y)"
sympy_func Get head function of expression. Args: expr: Expression Returns: Function head Example: >>> sympy_func("x + y") "Add"
sympy_expr_type Get type of expression. Args: expr: Expression Returns: Type as string Example: >>> sympy_expr_type("x + 1") "<class 'sympy.core.add.Add'>"
sympy_eq Create equality. Args: lhs: Left-hand side rhs: Right-hand side Returns: Equality as string Example: >>> sympy_eq("x", "y") "Eq(x, y)"
sympy_ne Create inequality (not equal). Args: lhs: Left-hand side rhs: Right-hand side Returns: Neq as string Example: >>> sympy_ne("x", "y") "Ne(x, y)"
sympy_lt Create less than. Args: lhs: Left-hand side rhs: Right-hand side Returns: Less than as string Example: >>> sympy_lt("x", "y") "x < y"
sympy_le Create less than or equal. Args: lhs: Left-hand side rhs: Right-hand side Returns: Less than or equal as string Example: >>> sympy_le("x", "y") "x <= y"
sympy_gt Create greater than. Args: lhs: Left-hand side rhs: Right-hand side Returns: Greater than as string Example: >>> sympy_gt("x", "y") "x > y"
sympy_ge Create greater than or equal. Args: lhs: Left-hand side rhs: Right-hand side Returns: Greater than or equal as string Example: >>> sympy_ge("x", "y") "x >= y"
sympy_And Logical AND. Args: args: Comma-separated expressions Returns: And as string Example: >>> sympy_And("True, False") "False"
sympy_Or Logical OR. Args: args: Comma-separated expressions Returns: Or as string Example: >>> sympy_Or("True, False") "True"
sympy_Not Logical NOT. Args: expr: Boolean expression Returns: Not as string Example: >>> sympy_Not("True") "False"
sympy_Xor Logical XOR. Args: args: Comma-separated expressions Returns: Xor as string Example: >>> sympy_Xor("True, False") "True"
sympy_Nand Logical NAND. Args: args: Comma-separated expressions Returns: Nand as string Example: >>> sympy_Nand("True, True") "False"
sympy_Nor Logical NOR. Args: args: Comma-separated expressions Returns: Nor as string Example: >>> sympy_Nor("False, False") "True"
sympy_Implies Logical implication. Args: lhs: Antecedent rhs: Consequent Returns: Implies as string Example: >>> sympy_Implies("True", "False") "False"
sympy_satisfiable Check if expression is satisfiable. Args: expr: Boolean expression Returns: Solution or False Example: >>> sympy_satisfiable("x & y") "{x: True, y: True}"
sympy_Point Create a 2D point. Args: x: x-coordinate y: y-coordinate Returns: Point as string Example: >>> sympy_Point("1", "2") "(1, 2)"
sympy_Point3D Create a 3D point. Args: x: x-coordinate y: y-coordinate z: z-coordinate Returns: Point3D as string Example: >>> sympy_Point3D("1", "2", "3") "(1, 2, 3)"
sympy_Line Create a line through two points. Args: point1: First point point2: Second point Returns: Line as string Example: >>> sympy_Line("(0, 0)", "(1, 1)") "Line2D(Point2D(0, 0), Point2D(1, 1))"
sympy_Circle Create a circle. Args: center: Center point radius: Radius Returns: Circle as string Example: >>> sympy_Circle("(0, 0)", "1") "Circle(Point2D(0, 0), 1)"
sympy_Triangle Create a triangle. Args: point1: First vertex point2: Second vertex point3: Third vertex Returns: Triangle as string Example: >>> sympy_Triangle("(0, 0)", "(1, 0)", "(0, 1)") "Triangle(Point2D(0, 0), Point2D(1, 0), Point2D(0, 1))"
sympy_Polygon Create a polygon (comma-separated points).
sympy_perfect_power Check if n is a perfect power.
sympy_is_square Check if n is a perfect square.
sympy_integer Create Integer.
sympy_float Create Float.
sympy_rational Create Rational.
sympy_conjugate Complex conjugate.
sympy_im Imaginary part.
sympy_re Real part.
sympy_arg Argument of complex number.
sympy_piecewise Create piecewise function (format: "expr,condition; expr2,condition2").
sympy_fresnelc Fresnel C.
sympy_diohyp Solve a Diophantine equation. Args: expr: A SymPy expression equal to zero, e.g., "x**2 + y**2 - 25" (not "x**2 + y**2 = 25") Returns: Set of integer solutions as a string. Example: >>> sympy_diohyp("x**2 + y**2 - 25") "{(5, 0), (0, 5), (-5, 0), (0, -5), (3, 4), ...}"
sympy_dsolve Solve ordinary differential equation.
sympy_checkodesol Check ODE solution.
sympy_classify_ode Classify ODE.
sympy_complexes The set of complex numbers.
sympy_reals The set of real numbers.
sympy_integers The set of integers.
sympy_naturals The set of natural numbers.
sympy_naturals0 The set of natural numbers (including 0).
sympy_emptyset Empty set.
sympy_universalset Universal set.
sympy_randMatrix Random matrix.
sympy_Wild Create Wild pattern.
sympy_WildFunction Create Wild function.
sympy_match Match expression to pattern.
sympy_replace Replace in expression (format: "old,new").
sympy_xreplace Exact replacement without simplification.
sympy_nsimplify Numerical simplification.
sympy_radsimp Simplify radicals.
sympy_rationalize Rationalize denominator.
sympy_count_ops Count operations.
sympy_symbols_create Create multiple symbols.
sympy_Range Range.
sympy_Identity Identity matrix.
sympy_matrix_rank Matrix rank.
sympy_matrix_nullspace Nullspace.
sympy_matrix_LU LU decomposition.
sympy_expand_complex Expand complex.
sympy_as_real_imag As real and imaginary parts.
sympy_as_numer_denom As numerator and denominator.
sympy_groebner Groebner basis.
sympy_horner Horner form.
sympy_divisor_sigma Divisor function.
sympy_symbolic_power Symbolic power.
sympy_symbolic_mul Symbolic multiplication (comma-separated).
sympy_symbolic_add Symbolic addition (comma-separated).
sympy_finiteset Create finite set (comma-separated).
sympy_product_set Product of sets (comma-separated).
sympy_image_set Image set.
Permissions 0
No permissions indexed yet.