mcpPaylocity
mcpPaylocity MCP サーバー
Paylocity API エンドポイントからデータを取得するためのモデル コンテキスト プロトコル (MCP) サーバー。
コンポーネント
リソース
サーバーは、次の Paylocity API リソースを実装します。
Paylocity データにアクセスするためのカスタム
paylocity://URI スキーム利用可能なリソースは次のとおりです。
paylocity://employees/{company_id}- 会社の全従業員を一覧表示するpaylocity://employees/{company_id}/{employee_id}- 特定の従業員の詳細を取得しますpaylocity://earnings/{company_id}/{employee_id}- 特定の従業員の収入データを取得するpaylocity://codes/{company_id}/{code_resource}- 特定のリソースの会社コードを取得しますpaylocity://localtaxes/{company_id}/{employee_id}- 特定の従業員の地方税を取得しますpaylocity://paystatement/{company_id}/{employee_id}/{year}/{check_date}- 特定の日付の給与明細の詳細を取得します
ツール
サーバーは次のツールを実装します。
fetch_employees- 会社のすべての従業員を取得しますオプションの
company_idパラメータを取る
fetch_employee_details- 特定の従業員の詳細を取得します必須の
employee_idとオプションのcompany_idパラメータを取ります
fetch_employee_earnings- 特定の従業員の収入データを取得します必須の
employee_idとオプションのcompany_idパラメータを取ります
fetch_company_codes- 特定のリソースの会社コードを取得します必須の
code_resourceとオプションのcompany_idパラメータを取ります
fetch_employee_local_taxes- 特定の従業員の地方税を取得します必須の
employee_idとオプションのcompany_idパラメータを取ります
fetch_employee_paystatement_details- 特定の日付の給与明細の詳細を取得します必須の
employee_id、year、check_date、およびオプションのcompany_idパラメータを取ります。
Related MCP server: Paylocity MCP Server by CData
将来の実装
今後のアップデートでは、次のエンドポイントが実装される予定です。
[ ] 高レベルの洞察(例:離職率、部門別の従業員数、レートの比較など)
構成
サーバーでは次の環境変数を設定する必要があります。
PAYLOCITY_CLIENT_ID- Paylocity APIクライアントIDPAYLOCITY_CLIENT_SECRET- Paylocity APIクライアントシークレットPAYLOCITY_COMPANY_IDS- 使用する会社IDのカンマ区切りリストPAYLOCITY_ENVIRONMENT- 使用する API 環境 (productionまたはtesting)
これらは、プロジェクトのルート ディレクトリ内の.envファイルで設定できます。
安全
⚠️重要:このアプリケーションは認証トークンをsrc/mcppaylocity/access_token/ディレクトリにキャッシュします。これらのファイルには機密性の高い認証情報が含まれているため、バージョン管理にコミットしないでください。
リポジトリには.gitignoreにこれらのパスが含まれていますが、変更をプッシュするときにトークン ファイルが誤ってコミットされないように注意してください。
誤ってトークン ファイルをコミットした場合は、次の手順に従ってください。
リポジトリからファイルを削除します:
git rm --cached src/mcppaylocity/access_token/token.json src/mcppaylocity/access_token/token_info.txt削除をコミットします:
git commit -m "Remove accidentally committed token files"Paylocity APIの認証情報が侵害されている可能性があるため、ローテーションを検討してください。
クイックスタート
インストール
クロードデスクトップ
MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"mcpPaylocity": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcpPaylocity",
"run",
"mcppaylocity"
]
}
}"mcpServers": {
"mcpPaylocity": {
"command": "uvx",
"args": [
"mcppaylocity"
]
}
}発達
建築と出版
配布用のパッケージを準備するには:
依存関係を同期し、ロックファイルを更新します。
uv syncパッケージディストリビューションをビルドします。
uv buildこれにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。
PyPI に公開:
uv publish注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。
トークン:
--tokenまたはUV_PUBLISH_TOKENまたはユーザー名/パスワード:
--username/UV_PUBLISH_USERNAMEおよび--password/UV_PUBLISH_PASSWORD
デバッグ
MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。
次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。
npx @modelcontextprotocol/inspector uv --directory /path/to/mcpPaylocity run mcppaylocity起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。
建築
サーバーは次のコンポーネントで構築されています。
PaylocityClient - Paylocity APIとの通信を処理します
TokenManager - キャッシュや更新を含む認証トークンを管理します
FastMCP Server - MCPのリソースとツールを通じてPaylocityデータを公開します
ライセンス
MITライセンス
Copyright (c) 2024 MJ Zou ( @mjzou )
本ソフトウェアおよび関連ドキュメント ファイル (以下「本ソフトウェア」) のコピーを入手したすべての人物は、以下の条件に従い、本ソフトウェアを無制限に扱う権利 (使用、コピー、変更、統合、公開、配布、サブライセンス、および/または販売する権利を含みますが、これに限定されません) および本ソフトウェアの提供を受けた人物が同様の行為を行うことを許可する権利を無償で付与されます。
上記の著作権表示およびこの許可通知は、ソフトウェアのすべてのコピーまたは大部分に含めるものとします。
本ソフトウェアは「現状有姿」で提供され、明示的または黙示的を問わず、商品性、特定目的への適合性、非侵害性を含むがこれらに限定されない、いかなる種類の保証も付与されません。いかなる場合においても、著作者または著作権者は、契約違反、不法行為、またはその他の行為にかかわらず、本ソフトウェア、本ソフトウェアの使用、またはその他の取り扱いに起因または関連して発生するいかなる請求、損害、またはその他の責任についても責任を負わないものとします。
Available Tools
6 toolsfetch_company_codesB
Fetch company codes for a specific resource.
Args: company_id: Optional company ID (string or integer). If not provided, uses the first company ID from configuration. code_resource: Code resource to fetch (e.g., 'earnings', 'deductions', 'costcenter1', etc.)
Inputs: company_id, code_resource. Returns: result
fetch_employee_detailsB
Fetch details for a specific employee.
Args: company_id: Optional company ID (string or integer). If not provided, uses the first company ID from configuration. employee_id: Employee ID (string or integer) to get details for.
Inputs: company_id, employee_id. Returns: result
fetch_employee_earningsB
Fetch earnings data for a specific employee.
Args: company_id: Optional company ID (string or integer). If not provided, uses the first company ID from configuration. employee_id: Employee ID (string or integer) to get earnings for.
Inputs: company_id, employee_id. Returns: result
fetch_employee_local_taxesB
Fetch local taxes for a specific employee.
Args: company_id: Optional company ID (string or integer). If not provided, uses the first company ID from configuration. employee_id: Employee ID (string or integer) to get local taxes for.
Inputs: company_id, employee_id. Returns: result
fetch_employee_paystatement_detailsB
Fetch pay statement details for a specific employee, year and check date.
Args: company_id: Optional company ID (string or integer). If not provided, uses the first company ID from configuration. employee_id: Employee ID (string or integer) to get pay statement details for. year: The year to get pay statement details for. check_date: The check date to get pay statement details for (format: MM/DD/YYYY).
Inputs: company_id, employee_id, year, check_date. Returns: result
fetch_employeesC
Fetch all employees for a company.
Args: company_id: Optional company ID (string or integer). If not provided, uses the first company ID from configuration.
Inputs: company_id. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose targeting specific resources: company codes, employee details, employee earnings, employee local taxes, employee pay statements, and all employees. No overlap exists between these functions, making tool selection unambiguous.
All tools follow a consistent 'fetch_[resource]_[detail]' snake_case pattern (e.g., fetch_employee_details, fetch_employee_earnings). This predictable naming convention makes the tool set easy to navigate and understand.
With 6 tools, this server is well-scoped for HR/payroll operations. Each tool serves a distinct purpose in the employee and company data domain, providing a focused yet comprehensive surface without being overwhelming.
The tool set covers key read operations for employee and company data, but lacks write/update capabilities (e.g., creating employees, updating details) and broader payroll actions. For a read-only API surface, it's reasonably complete, though agents cannot perform full CRUD workflows.
Maintenance
Related MCP Connectors
MCP server for Arcoro and ExakTime — workforce data, jobs, cost codes and locations.
- isolved-jobs-apiDeprecatedio.github.johnisanerd
isolved and ApplicantPro jobs, tenant discovery, and change detection as an MCP server.
MCP server exposing klokin time-tracking operations (employees, time entries, stores) to AI clients.
WinTeam MCP server and API: overtime, punches, open shifts, invoices, job cost.
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 gradedqualityFmaintenanceThis project builds a read-only MCP server. For full read, write, update, delete, and action capabilities and a simplified setup, check out our free CData MCP Server for Paylocity (beta): https://www.cdata.com/download/download.aspx?sku=KPZK-V&type=betaMIT
- AlicenseAqualityDmaintenanceMCP server for PrismHR, enabling AI agents to automate payroll, benefits, compliance, and billing tasks with verified-schema tools and scope-gated consent.184MIT
- AlicenseAqualityBmaintenanceAn MCP server that wraps the Check Payroll API, providing 263 tools for managing companies, employees, contractors, payrolls, tax configuration, and more.318MIT