Summary
Factorial HR from any AI agent: the employee directory with profiles, contracts and roles, teams and their leaders, time-off and leave requests, and clocked attendance shifts. Read-only, with a company API key.
Guided setup
Connect Factorial HR to Microsoft Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Factorial HR in the guided setup, then add your MCP URL to Microsoft Copilot. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Factorial HR
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Factorial HR, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Factorial HR + Microsoft Copilot
Factorial HR from any AI agent: the employee directory with profiles, contracts and roles, teams and their leaders, time-off and leave requests, and clocked attendance shifts. Read-only, with a company API key.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
FACTORIAL_API_KEY
Step 1 — Get credentials
Setting up takes about 5 minutes. You need a Factorial account with admin rights; the only credential is a company API key.
- Sign in to Factorial at app.factorialhr.com and open Settings → API Keys.
- Generate a company API key and copy it immediately.
- Paste the key into
FACTORIAL_API_KEY. The connector sends it in thex-api-keyheader. - Install the connector. Ask for a few employees (
factorial_hr_list_employees) to check the connection.
Cloud and self-hosted work the same way: the API key is the only credential, and there is no redirect URL to set.
Read-only: all 5 tools read. None of them creates, changes or deletes anything in Factorial, and nothing is switched off at install. Some employee fields are only returned when the key has admin rights.
Where to start: factorial_hr_list_employees finds people by name (full_text_name or name_starts_with), e-mail, team (team_ids) or manager status, and only_active: true leaves out people who have left. factorial_hr_get_employee then returns the full profile of one employee: personal details, contract and role. factorial_hr_list_teams lists the teams and departments with their leaders and parent teams.
Time off and attendance: factorial_hr_list_leaves lists time-off requests with leave type, dates and approval status. Filter by employee, by date (from, to, YYYY-MM-DD) or by approved. Set include_duration for the days and hours taken, and include_duration_by_day for the breakdown per day. factorial_hr_list_shifts lists clock-in and clock-out shifts with hours and location, filtered by employee and by start_on and end_on.
What it reads: employees with contact details, role, manager and active status; employee profiles with personal and contract data; teams with leaders and hierarchy; leave requests with type, dates, approval and duration; attendance shifts with clock-in and clock-out times.
Paging: lists return 20 records by default and up to 100 per page (limit). When meta.has_next_page is true, pass meta.end_cursor as after_id to get the next page.
Common errors: 401 means the key is wrong or was revoked: generate a new one under Settings → API Keys. 403 means the key lacks permission for that data. 429 means the rate limit was hit: Factorial allows up to 100 requests per minute, so wait a moment and try again.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Microsoft Copilot
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.
- In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
- Enter a Server name (for example
AnythingMCP), a Server description that says what the connector does, and the Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server. - Under authentication, choose API key, set Type to Header and the header name to
X-API-Key, then select Create. - In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
- Try it in the agent's Test pane: ask for something that needs the
Factorial HRtools. - Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.
Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.
Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.
Available tools
| Tool | What it does |
|---|---|
factorial_hr_list_employees | List company employees with directory details, contact information, role, and active status |
factorial_hr_get_employee | Retrieve detailed profile, personal information, contract details, and role for a single employee by their ID |
factorial_hr_list_teams | List company teams, departments, and organizational units with leader and parent team hierarchy |
factorial_hr_list_leaves | List employee time-off and leave requests with approval status, date ranges, and leave type |
factorial_hr_list_shifts | List employee attendance clock-in and clock-out shifts with recorded hours and locations |
Example prompts
- "Who joined the company in the last three months, and which team are they in?"
- "Which time-off requests are still waiting for approval?"
- "List the members of the Sales team and their manager."
- "How many hours did Laura Gómez clock last week, day by day?"
- "Who is on leave next week?"
FAQ
Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.
What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.
The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.
Next steps
Was this guide helpful?