Bring Employee Management
to Mastra AI
Learn how to connect WebHR to Mastra AI and start using 11 AI agent tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code.
What is the WebHR MCP Server?
Connect your WebHR account to any AI agent to automate your human resource management and personnel tracking. WebHR provides a comprehensive cloud-based HRMS for managing the entire employee lifecycle—from recruitment and onboarding to attendance monitoring and leave management.
What you can do
- Employee Orchestration — List and retrieve detailed metadata for all staff records, including personal profiles and department hierarchies.
- Attendance Monitoring — Access real-time clock-in/out records and retrieve aggregated attendance summaries for your organization.
- Leave Management — Track leave requests, monitor balance details, and list different leave types available in your system.
- Recruitment Control — Monitor open job postings, list active candidates, and manage the recruitment pipeline programmatically.
- Structural Oversight — Access company locations and department definitions to maintain a clear overview of your organizational structure.
How it works
1. Subscribe to this server
2. Enter your WebHR API Key from your Setup settings
3. Start managing your human resources from Claude, Cursor, or any MCP-compatible client
Who is this for?
- HR Managers — automate the monitoring of staff attendance and recruitment progress via natural language.
- Operations Leads — quickly retrieve employee details and department structures without switching applications.
- Business Owners — get instant summaries of organizational health and personnel metrics straight through the chat.
Built-in capabilities (11)
Get aggregated attendance metrics
Get details for an employee
List clock-in/out records
List categories of leave
g. Sales, Engineering). List organizational departments
List organization employees
List applicants for positions
List open job positions
List internal job requisitions
List employee leave history
List company offices
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and WebHR tool infrastructure. Connect 11 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add WebHR without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every WebHR tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
WebHR in Mastra AI
WebHR and 3,400+ other MCP servers. One platform. One governance layer.
Teams that connect WebHR to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 3,400+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for WebHR in Mastra AI
The WebHR MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 11 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
WebHR for Mastra AI
Every tool call from Mastra AI to the WebHR MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
How do I find my WebHR API Key?
Log in to your WebHR portal, navigate to Setup > API Settings, and generate a new key for your integration.
Can the agent check employee leave balances?
Yes! Use the list_leaves tool to retrieve current leave applications and balance details for employees in your system.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
