TypeScript MCP Server
About
A Model Context Protocol (MCP) server implementation using TypeScript and Express for payroll management. It provides standardized tools and resources that AI models can use to access employee information and perform payroll calculations.
Explore
- Implements the MCP protocol for LLM interactions
- Provides payroll management tools and employee information access
- Uses Express for HTTP handling
- Supports Server-Sent Events (SSE) for real-time communication
- Includes a client example for testing
- Node.js 18+
- npm or yarn
BASE_URL=http://app.localopfin.com
PORT=8089
Start the development server with:
bashnpm run dev
For production:
bashnpm run build
npm start
``
The server will run on port 8089 by default. You can change this by setting the
PORT environment variable in the .env file.
This server supports two authentication methods for API requests:
1. API authentication using authId and authKey
2. Partner authentication using partnerKey and clientKey
For custom authentication needs, you can modify the
src/api.ts` file.
This MCP server can be used with LLM clients that support the MCP protocol. Refer to the MCP documentation for information on how to connect LLM clients to this server.
view-people
View information about a specific person using employee ID (requires authId and authKey authentication)
view-all-people
View all people with optional filtering and pagination (supports both API authentication with authId/authKey or Partner authentication with partnerKey/clientKey)
getEmployeeInfo
A simplified employee information retrieval tool that returns basic employee data (name, department, role) based on employee ID
calculatePayroll
Calculate payroll for an employee based on hours worked and hourly rate (computes gross pay, 20% tax, and net pay)
- view-people: View information about a specific person using employee ID (requires authId and authKey authentication)
- view-all-people: View all people with optional filtering and pagination (supports both API authentication with authId/authKey or Partner authentication with partnerKey/clientKey)
- getEmployeeInfo: A simplified employee information retrieval tool that returns basic employee data (name, department, role) based on employee ID
- calculatePayroll: Calculate payroll for an employee based on hours worked and hourly rate (computes gross pay, 20% tax, and net pay)
A Model Context Protocol (MCP) server implementation using TypeScript and Express for payroll management.
What is MCP?
The Model Context Protocol (MCP) enables AI models to interact with external systems in a standardized way. It provides a framework for defining resources, tools, and prompts that LLMs can use to perform tasks.
For more information, visit the Model Context Protocol repository.
Features
- Implements the MCP protocol for LLM interactions
- Provides payroll management tools and employee information access
- Uses Express for HTTP handling
- Supports Server-Sent Events (SSE) for real-time communication
- Includes a client example for testing
Requirements
- Node.js 18+
- npm or yarn
Installation
1. Clone the repository
2. Install dependencies:
npm install
3. Create a .env file based on the .env.example template:
cp .env.example .env
4. Update the .env file with your API configuration:
```
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



