{
  "markdown": "# mcp-sympy\n\n> MCP server that exposes SymPy's symbolic mathematics functionality\n\n[![PyPI](https://img.shields.io/pypi/v/mcp-sympy.svg)](https://pypi.org/project/mcp-sympy/)\n[![Python](https://img.shields.io/pypi/pyversions/mcp-sympy.svg)](https://pypi.org/project/mcp-sympy/)\n[![Coverage](https://codecov.io/gh/daedalus/mcp-sympy/branch/main/graph/badge.svg)](https://codecov.io/gh/daedalus/mcp-sympy)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\n## Install\n\n```bash\npip install mcp-sympy\n```\n\n## MCP Server\n\nmcp-name: io.github.daedalus/mcp-sympy\n\n## Usage\n\n### As MCP Server\n\nConfigure in your MCP client:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-sympy\": {\n      \"command\": \"mcp-sympy\",\n      \"env\": {}\n    }\n  }\n}\n```\n\n### Python API\n\n```python\nfrom mcp_sympy import tools\n\n# Simplify expressions\nresult = tools.sympy_simplify(\"sin(x)**2 + cos(x)**2\")\nprint(result)  # \"1\"\n\n# Solve equations\nresult = tools.sympy_solve(\"x**2 - 4\", \"x\")\nprint(result)  # \"[2, -2]\"\n\n# Differentiate\nresult = tools.sympy_diff(\"x**2\", \"x\")\nprint(result)  # \"2*x\"\n\n# Integrate\nresult = tools.sympy_integrate(\"x**2\", \"x\")\nprint(result)  # \"x**3/3\"\n\n# Create matrices\nresult = tools.sympy_matrix(\"1,2; 3,4\")\nprint(result)  # \"Matrix([[1, 2], [3, 4]])\"\n\n# Number theory\nresult = tools.sympy_isprime(\"7\")\nprint(result)  # \"True\"\n```\n\n## Available Tools\n\nThe MCP server exposes comprehensive SymPy functionality including:\n\n- **Symbolic Expressions**: symbols, sympify, simplify, expand, factor\n- **Calculus**: diff, integrate, limit, series, Derivative, Integral\n- **Solving**: solve, solveset, nsolve, diophantine, dsolve\n- **Matrices**: Matrix operations, inverse, determinant, eigenvalues\n- **Trigonometry**: sin, cos, tan, and their inverses\n- **Special Functions**: gamma, zeta, erf, fibonacci, etc.\n- **Number Theory**: isprime, prime, gcd, lcm, totient\n- **Sets**: FiniteSet, Interval, Union, Intersection\n- **Logic**: And, Or, Not, Xor\n- **Printing**: LaTeX, MathML, Python code\n\n## Development\n\n```bash\ngit clone https://github.com/daedalus/mcp-sympy.git\ncd mcp-sympy\npip install -e \".[test]\"\n\n# run tests\npytest\n\n# format\nruff format src/ tests/\n\n# lint\nruff check src/ tests/\n\n# type check\nmypy src/\n```\n\n## License\n\nMIT License - see LICENSE file.\n",
  "bytes": 2349,
  "sha": "59f2b0b63e810c3d72a2da3a5a509fa7d06e85a91065fd1d19a5112351fb0e85",
  "repo_slug": "daedalus/mcp-sympy",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_daedalus_mcp_sympy_2e3e0387/readme"
}