npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vasanth0475/financial-calculator-mcp

v1.0.1

Published

Professional MCP server for financial and audit calculations with audit-grade explainability

Readme

Financial Calculator MCP Server

A comprehensive Model Context Protocol (MCP) server providing professional financial and audit calculations with audit-grade explainability.

Features

  • 25 Professional Financial Calculations across multiple domains
  • Audit-Grade Explainability with formulas, substitutions, and step-by-step breakdowns
  • Deterministic Calculations with proper precision and rounding
  • Comprehensive Error Handling with validation and business rule enforcement
  • Accounting Standards References where applicable
  • MCP Protocol Compliant for seamless integration

Available Calculations

Core Arithmetic & Business Math

  • Percentage calculations
  • Ratio analysis

Financial Statement Analysis

  • Current ratio, Return on equity, Debt-to-equity ratio
  • Gross/net profit margins, Asset turnover, Inventory turnover
  • Days sales outstanding

Audit Planning & Risk

  • Materiality threshold calculations

Depreciation & Amortization

  • Straight-line depreciation
  • Declining balance depreciation
  • Units of production depreciation

Time Value of Money

  • Present value calculations
  • Future value of annuities
  • Net present value (NPV)

Tax & Deferred Tax

  • Deferred tax calculations
  • Effective tax rate analysis
  • Taxable income computations

Variance & Analytical Procedures

  • Percentage variance analysis

Statistical Calculations

  • Mean (arithmetic average)
  • Standard deviation (population/sample)

Working Capital Management

  • Working capital calculations
  • Cash conversion cycle analysis

Cost Analysis

  • Break-even point analysis
  • Economic order quantity (EOQ)

Financial Health Indicators

  • Altman Z-Score for bankruptcy prediction

Economic Adjustments

  • Inflation-adjusted value calculations

Installation

From npm (Recommended)

npm install -g @vasanth0475/financial-calculator-mcp

Usage

As a Global Command

financial-calculator-mcp

In MCP Configuration

Add to your MCP settings:

{
  "mcpServers": {
    "financial-calculator": {
      "command": "financial-calculator-mcp",
      "args": [],
      "env": {}
    }
  }
}

In Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "financial-calculator": {
      "command": "financial-calculator-mcp"
    }
  }
}

In VS Code Cline

Add to cline_mcp_settings.json:

{
  "mcpServers": {
    "financial-calculator": {
      "command": "financial-calculator-mcp",
      "args": []
    }
  }
}

Example Queries

Once configured, you can ask natural language questions like:

  • "Calculate current ratio with current assets 1,000,000 and current liabilities 500,000"
  • "Compute materiality at 5% of profit before tax of 2,000,000"
  • "Find the return on equity for net income 500,000 and shareholder equity 2,500,000"
  • "Calculate break-even point with fixed costs 100,000, selling price 50, variable cost 30"
  • "Determine the economic order quantity for annual demand 10,000, ordering cost 100, carrying cost 5"

Response Format

Each calculation returns structured JSON with:

{
  "calculation_id": "unique_calculation_id",
  "timestamp": "ISO_timestamp",
  "formula": "Mathematical formula used",
  "substitution": "Values plugged into formula",
  "steps": ["Step-by-step breakdown"],
  "result": "Final calculated value",
  "explanation": "Business interpretation",
  "references": ["Accounting standards"],
  "audit_trail": {
    "precision_used": "decimal places",
    "rounding_method": "rounding technique"
  }
}

Development

Prerequisites

  • Node.js >= 18.0.0
  • TypeScript >= 5.0.0

Building

npm run build

Development Mode

npm run dev

API Reference

Tool Categories

All tools follow consistent naming and parameter conventions:

  • Input validation with business rule enforcement
  • Type safety with proper error handling
  • Deterministic results for audit compliance
  • Professional precision (2 decimal places standard)

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new calculations
  4. Ensure TypeScript compilation passes
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Professional Use

This MCP server is designed for professional audit, finance, and compliance environments. All calculations include:

  • Audit trails with calculation metadata
  • Accounting standard references where applicable
  • Business rule validation preventing invalid calculations
  • Deterministic results ensuring reproducibility
  • Professional precision handling financial data appropriately