Paylocity
About
A server to fetch data from Paylocity API endpoints.
Details
- Author
- mz462
- Categories
- Productivity
Jump to
Setup
Install Paylocity in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/mz462/mcpPaylocity
Follow the installation instructions in the repository README, then restart your MCP client.
A Model Context Protocol (MCP) server to fetch data from Paylocity API endpoints.
The server implements Paylocity API resources with:
- Custompaylocity://URI scheme for accessing Paylocity data
- The following resources are available:
- paylocity://employees/{company_id}- List all employees for a company
- paylocity://employees/{company_id}/{employee_id}- Get details for a specific employee
- paylocity://earnings/{company_id}/{employee_id}- Get earnings data for a specific employee
- paylocity://codes/{company_id}/{code_resource}- Get company codes for a specific resource
- paylocity://localtaxes/{company_id}/{employee_id}- Get local taxes for a specific employee
- paylocity://paystatement/{company_id}/{employee_id}/{year}/{check_date}- Get pay statement details for a specific date
The server implements the following tools:
- fetch_employees- Fetches all employees for a company
- Takes optionalcompany_idparameter
- Takes requiredemployee_idand optionalcompany_idparameters
- Takes requiredemployee_idand optionalcompany_idparameters
- Takes requiredcode_resourceand optionalcompany_idparameters
- Takes requiredemployee_idand optionalcompany_idparameters
- Takes requiredemployee_id,year,check_dateand optionalcompany_idparameters
The following endpoints will be implemented in future updates:
- Higher level insights (e.g. turnover rate, headcount by department, rate comparison etc.)
The server requires the following environment variables to be set:
- PAYLOCITY_CLIENT_ID- Your Paylocity API client ID
- PAYLOCITY_CLIENT_SECRET- Your Paylocity API client secret
- PAYLOCITY_COMPANY_IDS- Comma-separated list of company IDs to use
- PAYLOCITY_ENVIRONMENT- API environment to use (productionortesting)
- MODEL_COST_PRIORITY- Optional cost priority for model selection
- MODEL_SPEED_PRIORITY- Optional speed priority for model selection
- MODEL_INTELLIGENCE_PRIORITY- Optional intelligence priority for model selection
- MODEL_HINTS- Optional comma-separated model name hints
These can be set in a.envfile in the project root directory.
On startup the server responds to the MCPinitializerequest with handshake data containing its capabilities, instructions, protocol version and server info. The instructions field describes how to use the Paylocity resources and tools.
⚠️IMPORTANT: This application caches authentication tokens in thesrc/mcppaylocity/access_token/directory. These files contain sensitive credentials and shouldneverbe committed to version control.
The repository includes these paths in.gitignore, but please verify that token files are not accidentally committed when pushing changes.
If you've accidentally committed token files, follow these steps:
- Remove the files from the repository:git rm --cached src/mcppaylocity/access_token/token.json src/mcppaylocity/access_token/token_info.txt
- Commit the removal:git commit -m "Remove accidentally committed token files"
- Consider rotating your Paylocity API credentials as they may have been compromised
On MacOS:~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:%APPDATA%/Claude/claude_desktop_config.json
"mcpServers": { "mcpPaylocity": { "command": "uv", "args": [ "--directory", "/path/to/mcpPaylocity", "run", "mcppaylocity" ] } }
"mcpServers": { "mcpPaylocity": { "command": "uvx", "args": [ "mcppaylocity" ] } }
To prepare the package for distribution:
This will create source and wheel distributions in thedist/directory.
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:--tokenorUV_PUBLISH_TOKEN
- Or username/password:--username/UV_PUBLISH_USERNAMEand--password/UV_PUBLISH_PASSWORD
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using theMCP Inspector.
You can launch the MCP Inspector vianpmwith this command:
npx @modelcontextprotocol/inspector uv --directory /path/to/mcpPaylocity run mcppaylocity
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
The server is built with the following components:
- PaylocityClient- Handles communication with the Paylocity API
- TokenManager- Manages authentication tokens, including caching and renewal
- FastMCP Server- Exposes Paylocity data through MCP resources and tools
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The 1Password MCP server creates a bridge that allows MCP clients such as Codex and Kiro to manage your 1Password Environments with secure authorization prompts.
This is the 1st, easiest, and cheapest PPT, slides, presentation AI generation MCP Server in the world.
Persistent memory for any AI assistant. Zero token cost until recall. Stores memories in local SQLite, ranks by 6-factor scoring, returns results 79% smaller than JSON. Works with Claude, ChatGPT, Grok, Cursor, Windsurf, and any MCP client.
A MCP server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.
Enables LLM clients to interact with macOS applications through AppleScript. Built using the @beyondbetter/bb-mcp-server library, this server provides safe, controlled execution of predefined scripts with optional support for arbitrary script execution.
An MCP server for WordPress plugin audits
Turn your AI assistant into a digital marketing hub that creates, organizes, and analyzes links and QR Codes on demand.
Connect AI clients to Cal.com scheduling through the Model Context Protocol using the hosted server at mcp.cal.com or a local instance.
Sync Calendars, Scheduling Links, AI Executive Scheduling Assistant, Unified Calendar
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



