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 🙏

© 2025 – Pkg Stats / Ryan Hefner

payrolla-mcp

v0.2.7

Published

MCP server for Payrolla payroll budget simulations - enables LLMs to calculate Turkish payroll and simulate budget scenarios

Downloads

675

Readme

Payrolla MCP Server

MCP (Model Context Protocol) server for Turkish payroll calculations and budget simulations. Enables LLMs to calculate payroll, simulate budgets, and compare what-if scenarios.

Installation

npm install -g payrolla-mcp

Or run directly with npx:

npx payrolla-mcp

Configuration

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | PAYROLLA_API_KEY | Yes | API key for Payrolla service | | PAYROLLA_DEBUG | No | Set to true for debug logging |

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "payrolla": {
      "command": "npx",
      "args": ["payrolla-mcp"],
      "env": {
        "PAYROLLA_API_KEY": "pk_live_xxxxx"
      }
    }
  }
}

Available Tools

calculate_payroll

Calculate payroll for a single employee.

Input:

  • name - Employee name
  • wage - Wage amount
  • calculationType - 'Gross' or 'Net'
  • year - Calculation year
  • month - Starting month (1-12)
  • periodCount - Number of months (optional, default: 1)
  • ssiType - SSI type: 'S4A', 'S4B', or 'S4C' (optional, default: 'S4A')
  • extraPayments - Array of extra payments (optional, supports paymentType = RegularPayment/Overtime/SocialAid/ExtraPay)
  • customParams - Custom global parameters (optional)
  • cumulativeIncomeTaxBase - Starting income tax base to carry over
  • cumulativeMinWageIncomeTaxBase - Starting minimum wage income tax base to carry over
  • transferredSSIBase1 - Starting transferred SSI base 1
  • transferredSSIBase2 - Starting transferred SSI base 2

calculate_bulk_payroll

Calculate payroll for multiple employees with shared parameters.

Input:

  • employees - Array of employee objects (each can include extra payments with paymentType and starting cumulative/transfer bases)
  • year - Calculation year
  • month - Starting month
  • periodCount - Number of months (use 12 for yearly)
  • customParams - Shared custom parameters (optional)

simulate_budget

Simulate budget with what-if scenarios.

Input:

  • employees - Array of employees
  • year - Calculation year
  • periodCount - Number of months
  • scenario - Scenario configuration:
    • salaryRaisePercent - Salary raise percentage
    • minWage - Custom minimum wage
    • taxLimitIncreasePercent - Tax bracket limit increase
    • customTaxBrackets - Custom tax brackets

compare_scenarios

Compare multiple budget scenarios side by side.

Input:

  • employees - Array of employees
  • year - Calculation year
  • periodCount - Number of months
  • scenarios - Array of scenario configurations

get_default_params

Get default Turkish payroll parameters for a year.

Input:

  • year - Year to get parameters for

Available Prompts

budget_simulation

Interactive prompt for simulating yearly payroll budget.

salary_raise_analysis

Analyze the cost impact of different salary raise percentages.

year_planning

Plan yearly payroll considering potential changes.

Example Conversations

Budget Simulation

User: I have 3 employees: Ali 35k net, Ayse 45k net, Mehmet 60k gross.
      What's my yearly budget if I give 10% raise and minimum wage becomes 30k?