mcp-server-personio
An MCP server for the Personio HR API that provides employee self-service tools and, depending on PERSONIO_PROFILE, a broader HR workbench.
Discover server capabilities and identify the current scoped Personio user.
Employee profile: read your profile, absences and balances, attendances, documents with e-signature status/download, absence types, and projects; request absences and record WORK/BREAK attendance with optional project tagging, always through Personio approval workflows.
HR profile: list/get/update persons and employments; manage absences and attendances for anyone; full project CRUD and membership; read compensation entries/types/jobs/salary bands; list/download/upload documents; read org data, custom reports, and recruiting data; run an attribute-whitelist diagnostic.
Writes are gated by
PERSONIO_ENABLE_WRITES=true; HR scope can be confined to one legal entity; employee calls are pinned to the forwarded verified user and fail closed for unknown emails.Not supported: Personio features without public APIs such as performance, surveys, whistleblowing, onboarding checklists, e-signature initiation, and approving pending absences.
Integrates with the Personio HR API, providing employee self-service tools (profile, absences, attendances, documents) and HR workbench tools (persons, employments, absences, attendances, projects, compensation, documents, org data, recruiting) with per-user scoping and two profiles.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-personio show my upcoming absences"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server-personio
MCP server for the Personio HR API with two profiles and per-user scoping.
This is an independent, unofficial project. It is not developed, endorsed or supported by Personio.
Profiles
One image, selected by PERSONIO_PROFILE:
employee— self-service, hard-scoped to the requesting user:personio_get_my_profile,personio_get_my_absences(+ balances),personio_request_absence,personio_get_my_attendances,personio_record_attendance(WORK/BREAK periods, project tagging),personio_get_my_documents(incl. e-signature status + download),personio_list_absence_types,personio_list_projects,personio_whoami. The gateway forwards the verified user email (X-MCP-User, honored whenPERSONIO_TRUST_FORWARDED_USER=true); the server resolves it to a person id and pins every call to it — Personio has no on-behalf-of mechanism, so this scoping is enforced here. Unknown emails fail closed.hr— the HR workbench: persons + employments (list/get/update), absences and attendances for anyone (list/create/delete), projects (full CRUD + members), compensation entries/types/jobs/salary bands (read-only — API-created compensation can never be corrected, so creation is deliberately not exposed), documents (list/download/upload), org data (legal entities, departments, teams, cost centers, workplaces), custom reports, recruiting reads (applications/candidates/jobs/categories), and an attribute-whitelist diagnostic. Write tools additionally requirePERSONIO_ENABLE_WRITES=true.
Related MCP server: MCP Employee Identity Server
Guarantees
skip_approvalis never sent — absence/attendance writes always enter Personio's normal approval workflow (the v2 default; v1's silent-bypass default is one reason this server is v2-first).No delete-person tool. Employee-profile tools never accept foreign person ids.
Legal-entity scope (
PERSONIO_HR_LEGAL_ENTITY=<id>, HR profile): every person-addressed tool is confined to employees of that entity. Tools addressed by another id resolve the owning person first and fail closed when it cannot be determined: absence/attendance periods are fetched to read their person,balanceForEmailis resolved to a person,personio_upload_document's v1employeeIdis mapped to a person via its email, project membership changes checkpersonId, andpersonio_manage_documentrequiresownerId(verified against the owner-filtered document list) on a scoped instance.Email lookups require exactly one person whose email matches case-insensitively; ambiguous or non-matching results fail closed.
Caller-supplied ids used in URL paths are rejected if empty,
./.., or contain/,\,?,#or their percent-encoded forms.HTTP transport:
MCP_HTTP_TOKENis compared in constant time and is required on any non-loopback bind. WithPERSONIO_TRUST_FORWARDED_USER=truethe HTTP server refuses to start unlessMCP_HTTP_TOKENis set (also on loopback), since the forwardedX-MCP-Userheader would otherwise be accepted from any caller.Upstream requests never follow redirects, so the client secret and bearer tokens are only sent to
PERSONIO_BASE_URL.Only credential-whitelisted attributes are returned by Personio —
personio_list_attributesshows what your credential can see (missing attributes are omitted silently, not errored).
Not possible via Personio's public API
Performance, surveys, whistleblowing, onboarding checklists, workflow automations (beyond outbound webhooks), e-signature initiation, and approving pending absence requests have no public API — those remain in the Personio UI.
Auth
One client_id/client_secret pair (Settings → Integrations → API credentials) drives both API generations: OAuth2 client-credentials against /v2/auth/token (form-encoded) for v2, and the stable 24h papi- token from /v1/auth for the two v1-only flows (absence balances, document upload).
Install
npx mcp-server-personioRuns the stdio server from npm. Configure it with the environment variables in .env.example. Over stdio the employee profile acts as PERSONIO_DEFAULT_USER (your Personio email); without it, its self-service tools refuse.
Run
npm install
npm run dev # stdio
npm run dev:http # streamable HTTP on :3000/mcp (stateless)
npm testDocker images: ghcr.io/borgels/mcp-server-personio (published from main after CI passes, and from v* tags). The container binds 0.0.0.0, so it needs MCP_HTTP_TOKEN (at least 32 characters).
HTTP transport settings
The HTTP transport serves POST /mcp (stateless Streamable HTTP) and an
unauthenticated GET /healthz. It binds to 127.0.0.1 unless told otherwise.
Variable | Default | Meaning |
|
| Bind address. |
|
| Listen port (1-65535). |
| – | Bearer token for |
|
| Start without a token where one would be required. Only for setups where access is restricted by other means; logs a warning. |
| – | Comma-separated browser origins allowed to call |
|
| Allow any browser origin. Requires |
| – | Comma-separated host names accepted in the |
|
| Request body limit; larger requests get 413. |
|
| Failed authentication attempts per client address within the window before further failures get 429. |
|
| Window for |
Invalid values (a non-numeric PORT, a misspelt boolean) stop the server at
startup with a message naming the variable. Rejected requests get a JSON error
(401 with WWW-Authenticate: Bearer, 400 for invalid JSON, 413 for oversized
bodies) and one log line on stderr. The server shuts down gracefully on
SIGTERM/SIGINT.
Embedding (./gateway)
For a host that does its own per-user authorization (one instance per
Personio company, several in one process), the package exports
mcp-server-personio/gateway, in the shape of mcp-server-template:
import { createPersonioGateway, personioToolCatalog } from 'mcp-server-personio/gateway';
const gateway = createPersonioGateway({
clientId, // required; never read from the environment
clientSecret, // required; admitted only if it shares no text with our own texts
policy: { enableWrites: true, disabledTools: [], audit: record => log(record) },
});
await gateway.callTool('list_absences', { from: '2026-08-01', to: '2026-08-31' }, { requestId });A gateway instance reads no
PERSONIO_*variable. Withoutpolicy, writes are off and nothing is audited. With anauditsink, a write runs only if its start record was accepted (a sink that throws refuses the write). Without one, the instance writes no audit records: a host that turns writes on without a sink keeps its own record of the change before it calls the tool.personioToolCatalogis deeply frozen: every tool with its risk level, JSON Schema, the upstream requests it may make (upstream),broad(false for all) andself(true for the self tools, see below).The gateway has its own, curated tool table (
src/gateway/tools.ts): company structure, a headcount without names, absence types, projects, persons and employments, absence and attendance periods, two writes (create an absence period, record an attendance period), both through Personio's normal approval workflow, and four deletes (riskLevel: 'destructive') of a period without history, described below.Answers are built from allowlists of standard fields. A person's custom attributes (where national id numbers, bank details, salary and birth dates live) are never returned, whatever the API credential whitelists; nor are the type and comment of an absence or the comment of an attendance. There are no compensation, document, recruiting or report tools, no change to a person or an employment, and no delete of anything with history.
Deletes.
delete_absenceanddelete_my_absencedelete an absence period only whenapproval.statusisPENDINGand it has not begun (the date ofstarts_from.date_timeis after today in the period'stimezone_id).delete_attendanceanddelete_my_attendancedelete an attendance period only whenapproval.statusisPENDING, and a break only whenis_auto_generatedisfalse. Each reads the period first (GET, thenDELETE); an approved, confirmed, rejected, expired or substitute-requested period is refused, and so is one whose status, start, timezone, type or person Personio does not give: a field left out is not a no. Where time tracking needs no approval, periods are confirmed at once and cannot be deleted here. After theDELETEthe period is read again, and the answer says what happened: not found (404) givesdeleted: true; an absence withDELETION_PENDING(where Personio asks for approval of a deletion) givesdeleted: false, waitingForApproval: truewith a fixed note; anything else givesdeleted: 'unknown'with a fixed note. A deletion cannot be undone. Themytools refuse a period of someone else. Off unless the host enables writes, and a delete does not run when its audit start record is refused.Errors carry the HTTP status and our own text, never Personio's response body. When Personio answered with an HTTP error (a refused token request or redirect, or a v1 answer with
success: false, included), the error result also hasfailure: { httpStatus, requestId? }: the status, and Personio's request id from a response header (REQUEST_ID_HEADERSinsrc/errors.ts) only when it is a hex id of 8 to 64 characters (one run of hex digits, or groups of four or more joined by single hyphens, as in a UUID) and does not hold the shape of a personal number. A host can count failures from it without reading their text. Never the response body, Personio's error code, message or trace id. Every output is redacted with the instance's own credentials and withheld whole if it would still hold a piece of one.
Acting as the person (actAs)
A host that has verified who the person is (signed in, email confirmed) can
pass actAs: { email, name? } in the call context:
await gateway.callTool('create_my_absence', { absenceTypeId: '7', startDate: '2026-08-03' }, { requestId, actAs: { email } });The self tools (catalog
self: true) work only on that person:get_my_profile,list_my_absences,list_my_attendances,create_my_absence,create_my_attendance,delete_my_absenceanddelete_my_attendance. Their input never names a person (personIdis refused), so they cannot read or change anyone else's data. The same allowlists apply as for the company-wide tools: no custom attributes, no absence type or comment.The person is found with
GET /v2/persons?email=…: exactly one person whose work email matches case-insensitively and who is notINACTIVE. None, several or an inactive one: nothing more is sent, and the error result hasactAsRefused: 'no_user'. A self tool withoutactAs, or any call with a malformedactAs, hasactAsRefused: 'invalid'. There is no fallback to another person or to the company-wide tools.The writes enter Personio's normal approval workflow, as the company-wide ones do; Personio records them through the API credential, on the person.
The company-wide tools ignore
actAs.The email is only sent to Personio as the filter that finds the person. It is never written to the audit and never put in a text of ours (
ACT_AS_TEXTSare fixed).The API credential needs read access to persons (with the email attribute) and write access to absence and attendance periods, as for the company-wide tools.
Security model
The server calls Personio with one shared API credential (the client id and secret in its environment). In the
hrprofile everyone who can call the server acts with that credential's rights.The
employeeprofile scopes every call to the user named inX-MCP-User. That header is only honoured withPERSONIO_TRUST_FORWARDED_USER=true, which requiresMCP_HTTP_TOKEN: the identity-aware gateway in front of the server authenticates users, sets the header itself and is the only caller holding the token. Per-user authorization belongs in that gateway.MCP_HTTP_TOKENdecides who may call the server at all. It does not tell users apart.Tool access is not data access. Disabling or hiding tools limits what a client can call, but the API credential decides what data the server can reach. Limit its attribute whitelist and scopes in Personio.
The HTTP server does not terminate TLS. Run it behind a reverse proxy that does, or keep it on a private network.
License
The code is source-available under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2).
In plain words:
Allowed: reading the code, running it, changing it, using it inside your own organisation (also commercially), using it for non-commercial education and research, and contributing changes back.
Not allowed: making it, or something built from it, available to others as a commercial product or service that competes with it, for example a hosted service with the same functionality.
Becomes Apache-2.0: each version is also licensed under the Apache License 2.0 from two years after it is released.
Earlier versions: versions released before 0.5.0 were licensed under Apache-2.0 and remain so.
The terms in LICENSE are what apply; this summary does not replace them. See also NOTICE.
Available Tools
10 toolspersonio_get_my_absencesMy Absences (Personio)BRead-onlyIdempotent
Your absence periods; includeBalance=true also returns your remaining balance per absence type.
Inputs: limit, cursor, endsBefore, startsAfter, +1 more.
personio_get_my_attendancesMy Attendances (Personio)CRead-onlyIdempotent
Your tracked work and break periods.
Inputs: limit, cursor, endsBefore, startsAfter.
personio_get_my_documentsMy Documents (Personio)BRead-onlyIdempotent
Your HR documents with e-signature status; set documentId+download=true to fetch content.
Inputs: limit, cursor, download, maxBytes, +2 more.
personio_get_my_profileMy Profile (Personio)ARead-onlyIdempotent
Your own HR master data and employment. Only credential-whitelisted attributes are returned.
Inputs: no named parameters.
personio_list_absence_typesList Absence Types (Personio)ARead-onlyIdempotent
Available absence types and their ids (needed for absence requests).
Inputs: limit, cursor.
personio_list_projectsList Projects (Personio)BRead-onlyIdempotent
Time-tracking projects (for tagging attendance).
Inputs: limit, cursor.
personio_record_attendanceRecord Attendance (Personio)A
Record a WORK or BREAK period for yourself (breaks are separate periods). WORK periods can be tagged with a projectId. Goes through the approval workflow; max 24h per period.
Inputs: end (required), type (required), start (required), comment, +1 more.
personio_request_absenceRequest Absence (Personio)A
Submit an absence request for yourself (vacation etc.). Half days via startHalf/endHalf; omit endDate for open-ended. Always goes through the normal approval workflow.
Inputs: startDate (required), absenceTypeId (required), comment, endDate, +2 more.
personio_search_capabilitiesSearch Personio CapabilitiesARead-onlyIdempotent
Search the Personio MCP server capabilities and examples. Use this first when deciding which tool to call.
Inputs: limit, query.
personio_whoamiWho Am I (Personio)ARead-onlyIdempotent
Show which Personio person this session is scoped to.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: viewing vs. requesting absences, listing reference data, recording attendance, etc. No two tools overlap in functionality.
All tools follow a consistent 'personio_verb_noun' snake_case pattern, with verbs like 'get_my', 'list', 'record', 'request', 'search', and 'whoami'.
With 10 tools, the set is well-scoped for an HR self-service MCP server, covering common employee actions without being overwhelming.
The tools cover core HR self-service operations (view/request absences, view/record attendances, view documents/profile, list reference data). Missing cancellation or update actions, but the domain is adequately covered for typical use.
Maintenance
Related MCP Connectors
MCP server for SmartHR — employees, departments, dependents and employee invitations.
MCP server for Talenta — read employee, attendance, leave, payroll and recruitment data.
MCP server for MOCO business software: time tracking, projects, budgets, and invoicing via API
- isolved-jobs-apiDeprecatedio.github.johnisanerd
isolved and ApplicantPro jobs, tenant discovery, and change detection as an MCP server.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that provides access to Personio's HR and personnel data through the Personnel API, allowing interaction with employee records, HR systems, and personnel management functions.-
- AlicenseNot gradedqualityNot gradedmaintenanceThis MCP server enables AI-assisted professional profile generation by connecting to verified employee work data (skills, career history, certifications, projects) from employer HCM systems.MIT
- FlicenseAqualityDmaintenanceMCP server for the Keka HRM API, enabling HR operations like employee management, leave, attendance, payroll, recruitment, and PSA.17-
- AlicenseNot gradedqualityDmaintenanceMCP server for the HR platform 'МояКоманда' that enables AI assistants to access and interact with HR data like employees, teams, calendar, absences, requests, knowledge base, surveys, and more via its REST API.MIT