hr-mcp-server
Provides Okta OAuth 2.0 token validation for all tool calls, securing the HR system endpoints with Okta as the identity provider.
Click on "Install 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., "@hr-mcp-serverGet the payroll information for employee 4321"
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.
HR System MCP Server
An unofficial prototype MCP server providing HR system functionality with Okta token validation. For evaluation and testing purposes only.
Overview
The HR System MCP Server provides:
✅ Employee information lookup
✅ Employee directory listing
✅ Payroll information access
✅ Time-off request management
✅ Okta OAuth 2.0 token validation for all tool calls
✅ HTTP/NDJSON streaming support (FastMCP)
Related MCP server: HR MCP Server
Authentication
This server validates Okta access tokens for all tool calls (except initialize):
Token Source: Okta authorization server
Validation: JWT signature, expiration, audience claims
Authorization Header:
Authorization: Bearer <access_token>
Quick Start
# Setup
cp env.example .env
# Edit .env with your Okta credentials
# Install dependencies
pip install -r requirements.txt
# Run in HTTP mode (for Okta MCP Adapter)
python main.py --http 8001Configuration
.env (Environment Variables)
OKTA_DOMAIN=ijtestcustom.oktapreview.com
OKTA_AUTHORIZATION_SERVER_ID=auss2fth0mcIXHzVO1d7
OKTA_AUDIENCE=
OKTA_REQUIRED_SCOPES=
# When true (default), tools/list without auth returns 401. When false, allows unauthenticated tools/list (e.g. for gateway registration).
# PROTECTED_DISCOVERY=trueAvailable Tools
Tool | Description | Parameters |
| Get employee by ID |
|
| List all employees | None |
| Get payroll info |
|
| Get time-off requests |
|
Usage Examples
Direct via VS Code/Copilot
# Endpoint
http://localhost:8001/mcp
# Authorization
Authorization: Bearer <okta_access_token>Via Okta MCP Adapter Gateway
# Gateway will:
# 1. Receive request from client
# 2. Validate Okta token
# 3. Forward to HR System MCP
# 4. Attach authorization headerImplementation Details
Framework: FastMCP 3.0.0b1
Server: Uvicorn (async HTTP)
Protocol: MCP (Model Context Protocol) with NDJSON streaming
Token Validation: JWKS-based JWT validation with signature verification
Caching: JWKS keys cached with TTL
Request Flow
Client Request
↓
Authorization Header (Okta token)
↓
Initialize (no token needed)
↓
tools/list (validate token)
↓
tools/call (validate token)
↓
ResponseTroubleshooting
Token validation fails: Verify OKTA_DOMAIN and OKTA_AUTHORIZATION_SERVER_ID in .env
Port already in use: Change port in startup command: python main.py --http 8002
Missing environment variables: Copy env.example to .env and fill in values
JWKS fetch error: Verify Okta domain and authorization server ID are correct
Gateway target registration needs tool list: Set PROTECTED_DISCOVERY=false so unauthenticated tools/list returns the tool list (e.g. for AgentCore gateway)
Project Structure
hr-system-mcp/
├── main.py # FastMCP server with HTTP handler
├── requirements.txt # Python dependencies
├── env.example # Environment template
└── auth/
├── __init__.py
└── okta_validator.py # Okta token validationTesting
# Using curl with Okta token
curl -X POST http://localhost:8001/mcp \
-H "Authorization: Bearer <your_okta_token>" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}'References
Status
⚠️ Unofficial Prototype - For evaluation and testing only. Not for production use.
License: Apache 2.0
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that enables Claude Desktop to access structured employee data and perform HR operations including employee lookups, searches, and global leave requests.Last updated31MIT
- Flicense-qualityCmaintenanceAn HR management server that provides access to employee directory information, sensitive PII, and salary data through a scope-based authorization system. It enables users to view, search, and update employee records and organizational charts using tools mapped to specific permission levels.Last updated
- Flicense-qualityDmaintenanceEnables employee information lookup, directory listing, payroll access, and time-off request management with Okta token validation.Last updated
- Flicense-qualityBmaintenanceAn MCP server for interacting with an HR database, enabling querying employee data and HR operations via natural language.Last updated
Related MCP Connectors
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
Hosted MCP server exposing US hospital procedure cost data to AI assistants
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jyotsnaraghunathan-okta/hr-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server