loading…
Search for a command to run...
loading…
A local/remote high-performance Model Context Protocol (MCP) server for math-ing whilst vibing with LLMs. Built with Polars, Pandas, NumPy, SciPy, and SymPy for
A local/remote high-performance Model Context Protocol (MCP) server for math-ing whilst vibing with LLMs. Built with Polars, Pandas, NumPy, SciPy, and SymPy for optimal calculation speed and comprehensive mathematical capabilities from basic arithmetic to advanced calculus and linear algebra ## Local Installation ### IDEs
### Claude Desktop Open Settings > Developer > Edit Config and add: For published package:
json { "mcpServers": { "Math": { "command": "uvx", "args": ["vibe-math-mcp"] } } } ### Claude Code Quick setup (CLI): Published package: bash claude mcp add --transport stdio math -- uvx vibe-math-mcp Team setup (create mcp.json in project root for shared use with Claude Code and/or IDEs) json { "mcpServers": { "math": { "command": "uvx", "args": ["vibe-math-mcp"] } } } Verify: Run claude mcp list or use /mcp or view available servers in IDEs. ### Try it - "Calculate 15% of 250" → uses percentage - "Find determinant of [[1,2],[3,4]]" → uses matrix_operations - "Integrate x^2 from 0 to 1" → uses integral - "If I invest $1000 at 5% annual interest compounded monthly for 10 years, what will be the future value?" → uses compound_interest - If I was paid the square root of $69m in 10 years, what's the present value at 7% discount rate? → uses batch_execute (calculate -> financial_calcs) ## Output Control All tools automatically support output control for maximum flexibility and token efficiency. The LLM can specify the desired verbosity. Control response verbosity using the output_mode parameter (available on every tool): | Mode | Description | Token Savings | Use Case | | --------- | -------------------------------------------------- | ------------- | ------------------------------------------- | | full | Complete response with all metadata (default) | 0% (baseline) | Debugging, full context needed | | compact | Remove null fields, minimize whitespace | ~20-30% | Moderate reduction, preserve structure | | minimal | Primary value(s) only, strip metadata | ~60-70% | Fast extraction, minimal context | | value | Normalized {value: X} structure | ~70-80% | Consistent chaining, maximum simplicity | | final | For sequential chains, return only terminal result | ~95% | Simple calculations, predictable extraction | ## Batch Execution For multi-step workflows, batch_execute chains multiple calculations in a single request—achieving 90-95% token reduction. Reference prior outputs using $operation_id.result syntax, and the engine automatically handles dependency resolution and parallel execution for speed. Perfect for: Bond pricing, financial models, statistical pipelines, complex transformations ## Complete Tool Reference Note: All tool parameters include detailed descriptions with concrete examples directly in the MCP interface. Each parameter shows expected format, use cases, and sample values to make usage obvious without referring to external documentation. ### Basic Calculations | Tool | Description | | --------------- | ------------------------------------------------------------ | | calculate | Evaluate mathematical expressions with variable substitution | | percentage | Percentage calculations (of, increase, decrease, change) | | round | Advanced rounding (round, floor, ceil, trunc) | | convert_units | Unit conversions (degrees � radians) | ### Array Operations | Tool | Description | | ------------------ | ---------------------------------------------------------------- | | array_operations | Element-wise operations (add, subtract, multiply, divide, power) | | array_statistics | Statistical measures (mean, median, std, min, max, sum) | | array_aggregate | Aggregations (sumproduct, weighted average, dot product) | | array_transform | Transformations (normalise, standardise, scale, log) | ### Statistics | Tool | Description | | ------------- | ------------------------------------------------------ | | statistics | Comprehensive analysis (describe, quartiles, outliers) | | pivot_table | Create pivot tables with aggregation | | correlation | Correlation matrices (Pearson, Spearman) | ### Financial Mathematics | Tool | Description | | ------------------- | ------------------------------------------- | | financial_calcs | Time value of money (PV, FV, PMT, IRR, NPV) | | compound_interest | Compound interest with various frequencies | ### Linear Algebra | Tool | Description | | ---------------------- | -------------------------------------------------------------------- | | matrix_operations | Matrix operations (multiply, inverse, transpose, determinant, trace) | | solve_linear_system | Solve Ax = b systems | | matrix_decomposition | Decompositions (eigen, SVD, QR, Cholesky, LU) | ### Calculus | Tool | Description | | --------------- | -------------------------------------- | | derivative | Symbolic and numerical differentiation | | integral | Symbolic and numerical integration | | limits_series | Limits and series expansions |
Smithery CLI connects your agents to thousands of skills and MCP servers directly from the command line. To get started, simply run npx skills add smithery/cli.
npm install -g smithery@latest
Requires Node.js 20+.
smithery mcp search [term] # Search the Smithery registry
smithery mcp add <url> # Add an MCP server connection
smithery mcp list # List your connections
smithery mcp remove <ids...> # Remove connections
Interact with tools from MCP servers connected via smithery mcp.
smithery tool list [connection] # List tools from your connected MCP servers
smithery tool find [query] # Search tools by name or intent
smithery tool get <connection> <tool> # Show full details for one tool
smithery tool call <connection> <tool> [args] # Call a tool
Browse skills on the Smithery Skills Registry and install them with the upstream installer:
npx skills add <skill> # e.g. npx skills add smithery-ai/cli
smithery auth login # Login with Smithery (OAuth)
smithery auth logout # Log out
smithery auth whoami # Check current user
smithery auth token # Mint a service token
smithery auth token --policy '<json>' # Mint a restricted token
smithery namespace list # List your namespaces
smithery namespace use <name> # Set current namespace
smithery mcp publish <url> -n <org/server> # Publish an MCP server URL
smithery mcp publish <bundle.mcpb> -n <org/server> # Publish an MCP bundle
# Search and connect to an MCP server
smithery mcp search "github"
smithery mcp add github --id github
# Find and call tools from your connected MCP servers
smithery tool find "create issue"
smithery tool call github create_issue '{"title":"Bug fix","body":"..."}'
# Browse and install skills
smithery skill search "frontend" --json --page 2
smithery skill add anthropics/frontend-design --agent claude-code
# Publish your MCP server URL
smithery mcp publish https://my-mcp-server.com -n myorg/my-server
# Publish a built MCP bundle
smithery mcp publish ./server.mcpb -n myorg/my-server
git clone https://github.com/smithery-ai/cli
cd cli && pnpm install && pnpm run build
npx . --help
Contributions welcome! Please submit a Pull Request.
Выполни в терминале:
claude mcp add vibe-math-mcp -- npx -y @smithery/cli run apetta/vibe-math-mcpНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development