A Model Context Protocol (MCP) server that provides tools for interacting with the Loxo recruitment platform API. This server enables AI assistants to perform various recruitment-related tasks such as managing candidates, jobs, activities, and call queues.
# Clone the repository
git clone [repository-url]
cd loxo-mcp-server
# Install dependencies
npm install
# Build the project
npm run buildCopy the provided .env.example file to .env and fill in your values:
cp .env.example .envThen update the .env file with your configuration:
LOXO_API_KEY=your_api_key
LOXO_DOMAIN=app.loxo.co
LOXO_AGENCY_SLUG=your_agency_slugRequired environment variables:
LOXO_API_KEY: Your Loxo API keyLOXO_AGENCY_SLUG: Your agency's slug in LoxoLOXO_DOMAIN: (Optional) Defaults to 'app.loxo.co'
get-activity-types: Retrieve list of available activity typesspark-search-activity-types: Get activity types from Spark Searchget-todays-tasks: Get all tasks and scheduled activities for todayschedule-activity: Schedule a future activity (call, meeting, etc.)log-activity: Log an activity for a candidate or job
get-call-queue: View the current call queueadd-to-call-queue: Add a candidate or contact to the call queue
search-candidates: Search for candidates in Loxoget-candidate: Get detailed information about a specific candidateadd-note: Add a note to a candidate
search-jobs: Search for jobs in Loxoget-job: Get detailed information about a specific jobadd-note: Add a note to a job
# Run in development mode with watch mode
npm run dev
# Build the project
npm run build
# Start the server
npm startThe server uses Zod for runtime type validation of:
- Environment variables
- Tool input parameters
- API responses
The server includes comprehensive error handling for:
- Environment validation
- API request failures
- Invalid tool parameters
- Unknown tool requests
- Built using the Model Context Protocol SDK
- Communicates over stdio for seamless integration with AI assistants
- Uses TypeScript for type safety and better developer experience
- Implements RESTful API calls to Loxo's platform