Mathjs Mcp Server
БесплатноНе проверенAn MCP server for parsing and calculating mathematical expressions using mathjs
Описание
An MCP server for parsing and calculating mathematical expressions using mathjs
README
An MCP server implementation that provides mathematical calculation capabilities using the MathJS library.
Features
- Evaluate mathematical expressions
- Calculate derivatives of expressions
- Handle complex mathematical operations
- Provide clear error messages for invalid inputs
Tools
calculate
Evaluates mathematical expressions and returns the result.
Inputs:
expression(string): The mathematical expression to evaluate
derivative
Calculates the derivative of a mathematical expression with respect to a variable.
Inputs:
expression(string): The mathematical expression to differentiatevariable(string): The variable to differentiate with respect to
Usage
The MathJS Calculator tool is designed for:
- Evaluating mathematical expressions
- Computing derivatives
- Handling complex calculations
- Providing clear feedback for calculation errors
Configuration
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
npx
{
"mcpServers": {
"mathjs-calculator": {
"command": "npx",
"args": [
"-y",
"mathjs-mcp-server"
]
}
}
}
Building and Testing
Build
To build the project:
npm install
npm run build
Testing with Inspector
To test the server with the MCP Inspector:
- Open the MCP Inspector in another terminal:
npm run inspector
Connect to the server at
http://localhost:5173(default port)Test the available tools:
- Use the "calculate" tool to evaluate expressions
- Use the "derivative" tool to compute derivatives
Example Usage
// Calculate expression
{
"expression": "2 * (3 + 4)"
}
// Result: 14
// Calculate derivative
{
"expression": "x^2 + 2*x",
"variable": "x"
}
// Result: The derivative of x^2 + 2*x with respect to x is: 2*x + 2
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Установить Mathjs Mcp Server в Claude Desktop, Claude Code, Cursor
unyly install mathjs-mcp-serverСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add mathjs-mcp-server -- npx -y mathjs-mcp-serverFAQ
Mathjs Mcp Server MCP бесплатный?
Да, Mathjs Mcp Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Mathjs Mcp Server?
Нет, Mathjs Mcp Server работает без API-ключей и переменных окружения.
Mathjs Mcp Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Mathjs Mcp Server в Claude Desktop, Claude Code или Cursor?
Открой Mathjs Mcp Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Mathjs Mcp Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
