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
Maintainers
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-mcpOr run directly with npx:
npx payrolla-mcpConfiguration
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 namewage- Wage amountcalculationType- 'Gross' or 'Net'year- Calculation yearmonth- 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, supportspaymentType= RegularPayment/Overtime/SocialAid/ExtraPay)customParams- Custom global parameters (optional)cumulativeIncomeTaxBase- Starting income tax base to carry overcumulativeMinWageIncomeTaxBase- Starting minimum wage income tax base to carry overtransferredSSIBase1- Starting transferred SSI base 1transferredSSIBase2- 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 withpaymentTypeand starting cumulative/transfer bases)year- Calculation yearmonth- Starting monthperiodCount- Number of months (use 12 for yearly)customParams- Shared custom parameters (optional)
simulate_budget
Simulate budget with what-if scenarios.
Input:
employees- Array of employeesyear- Calculation yearperiodCount- Number of monthsscenario- Scenario configuration:salaryRaisePercent- Salary raise percentageminWage- Custom minimum wagetaxLimitIncreasePercent- Tax bracket limit increasecustomTaxBrackets- Custom tax brackets
compare_scenarios
Compare multiple budget scenarios side by side.
Input:
employees- Array of employeesyear- Calculation yearperiodCount- Number of monthsscenarios- 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?