headhunter-mcp-server

gmen1057/headhunter-mcp-server

3.3

If you are the rightful owner of headhunter-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

HeadHunter MCP Server integrates the HeadHunter API with Claude Code and other MCP clients, facilitating job search and application management through AI-powered tools.

Tools
10
Resources
0
Prompts
0

HeadHunter MCP Server

Python 3.10+ MCP HeadHunter API License: MIT

English | Русский


English

MCP (Model Context Protocol) server for integrating HeadHunter API with Claude Code and other MCP clients.

HeadHunter (hh.ru) is the largest job search platform in Russia and CIS countries. This MCP server provides seamless integration with HeadHunter API, enabling AI assistants to search vacancies, manage resumes, and apply to jobs on your behalf.

Features

  • πŸ” Advanced Vacancy Search - Filter by location, salary, experience, employment type
  • πŸ“„ Resume Management - View and manage your HeadHunter resumes
  • βœ‰οΈ Job Applications - Apply to vacancies with custom cover letters
  • 🏒 Company Information - Get detailed employer data
  • πŸ“Š Application Tracking - Monitor your job application history
  • πŸ€– AI-Powered Agent - Automated vacancy hunter with intelligent matching
  • πŸ” OAuth 2.0 - Secure authorization with HeadHunter

Available Tools (10)

  1. hh_search_vacancies - Search for job vacancies
  2. hh_get_vacancy - Get detailed vacancy information
  3. hh_get_employer - Get company/employer details
  4. hh_get_similar - Find similar vacancies
  5. hh_get_areas - Get list of regions/cities
  6. hh_get_dictionaries - Get reference data (experience, employment types, etc.)
  7. hh_get_resumes - Get your resumes list
  8. hh_get_resume - Get detailed resume information
  9. hh_apply_to_vacancy - Apply to a vacancy (requires OAuth)
  10. hh_get_negotiations - Get application history (requires OAuth)

Quick Start

1. Installation
git clone https://github.com/yourusername/headhunter-mcp-server.git
cd headhunter-mcp-server
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
2. Get HeadHunter API Credentials
  1. Register your application at https://dev.hh.ru/admin
  2. Get Client ID, Client Secret, and App Token
  3. Copy .env.example to .env and fill in your credentials
cp .env.example .env
# Edit .env with your credentials
3. Configure Claude Code

Add to your ~/.claude.json:

{
  "mcpServers": {
    "headhunter": {
      "type": "stdio",
      "command": "/path/to/venv/bin/python",
      "args": ["/path/to/headhunter-mcp-server/server.py"],
      "env": {
        "HH_CLIENT_ID": "your_client_id",
        "HH_CLIENT_SECRET": "your_client_secret",
        "HH_APP_TOKEN": "your_app_token",
        "HH_REDIRECT_URI": "https://your-domain.com/oauth/callback"
      }
    }
  }
}
4. OAuth Authorization (Optional)

For job applications and resume management:

python examples/oauth_flow.py

Follow the instructions to authorize and get access tokens.

Usage Examples

# Search for Python jobs in Moscow
Find 10 Python developer vacancies in Moscow with salary from 200000

# View your resumes
Show my resumes

# Get vacancy details
Show details for vacancy 126209046

# Apply to a job (after OAuth)
Apply to vacancy 126209046 with resume [resume_id] and cover letter: "Hello..."

Vacancy Hunter Agent

Automated agent for intelligent vacancy search and analysis. See for details.

Features:

  • Analyzes multiple resumes simultaneously
  • Scores vacancies by relevance (0-30 points)
  • Generates CSV reports with AI-powered recommendations
  • Focuses on Moscow region only

Usage:

Run vacancy-hunter agent

Project Structure

headhunter-mcp-server/
β”œβ”€β”€ server.py              # MCP server (10 tools)
β”œβ”€β”€ hh_client.py           # HeadHunter API client
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ .env.example           # Environment variables template
β”œβ”€β”€ examples/
β”‚   └── oauth_flow.py      # OAuth authorization script
└── docs/
    └── vacancy-hunter-agent.md  # Agent documentation

Requirements

  • Python 3.10+
  • Claude Code or any MCP-compatible client
  • HeadHunter API credentials

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see file for details.

Links


Russian

MCP сСрвСр для ΠΈΠ½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΠΈ HeadHunter API с Claude Code ΠΈ Π΄Ρ€ΡƒΠ³ΠΈΠΌΠΈ MCP ΠΊΠ»ΠΈΠ΅Π½Ρ‚Π°ΠΌΠΈ.

HeadHunter (hh.ru) β€” ΠΊΡ€ΡƒΠΏΠ½Π΅ΠΉΡˆΠ°Ρ ΠΏΠ»Π°Ρ‚Ρ„ΠΎΡ€ΠΌΠ° ΠΏΠΎ поиску Ρ€Π°Π±ΠΎΡ‚Ρ‹ Π² России ΠΈ странах БНГ. Π­Ρ‚ΠΎΡ‚ MCP сСрвСр обСспСчиваСт Π±Π΅ΡΡˆΠΎΠ²Π½ΡƒΡŽ ΠΈΠ½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΡŽ с API HeadHunter, позволяя AI ассистСнтам ΠΈΡΠΊΠ°Ρ‚ΡŒ вакансии, ΡƒΠΏΡ€Π°Π²Π»ΡΡ‚ΡŒ Ρ€Π΅Π·ΡŽΠΌΠ΅ ΠΈ ΠΎΡ‚ΠΊΠ»ΠΈΠΊΠ°Ρ‚ΡŒΡΡ Π½Π° вакансии ΠΎΡ‚ вашСго ΠΈΠΌΠ΅Π½ΠΈ.

ВозмоТности

  • πŸ” Π Π°ΡΡˆΠΈΡ€Π΅Π½Π½Ρ‹ΠΉ поиск вакансий - Π€ΠΈΠ»ΡŒΡ‚Ρ€Π°Ρ†ΠΈΡ ΠΏΠΎ ΠΌΠ΅ΡΡ‚ΠΎΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΡŽ, Π·Π°Ρ€ΠΏΠ»Π°Ρ‚Π΅, ΠΎΠΏΡ‹Ρ‚Ρƒ, Ρ‚ΠΈΠΏΡƒ занятости
  • πŸ“„ Π£ΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ Ρ€Π΅Π·ΡŽΠΌΠ΅ - ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€ ΠΈ ΡƒΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ вашими Ρ€Π΅Π·ΡŽΠΌΠ΅ Π½Π° HeadHunter
  • βœ‰οΈ ΠžΡ‚ΠΊΠ»ΠΈΠΊΠΈ Π½Π° вакансии - ΠŸΠΎΠ΄Π°Ρ‡Π° заявок с пСрсонализированными ΡΠΎΠΏΡ€ΠΎΠ²ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒΠ½Ρ‹ΠΌΠΈ письмами
  • 🏒 Π˜Π½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡ ΠΎ компаниях - ΠŸΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ Π΄Π΅Ρ‚Π°Π»ΡŒΠ½Ρ‹Ρ… Π΄Π°Π½Π½Ρ‹Ρ… ΠΎ работодатСлях
  • πŸ“Š ΠžΡ‚ΡΠ»Π΅ΠΆΠΈΠ²Π°Π½ΠΈΠ΅ ΠΎΡ‚ΠΊΠ»ΠΈΠΊΠΎΠ² - ΠœΠΎΠ½ΠΈΡ‚ΠΎΡ€ΠΈΠ½Π³ истории Π²Π°ΡˆΠΈΡ… ΠΎΡ‚ΠΊΠ»ΠΈΠΊΠΎΠ²
  • πŸ€– AI-Π°Π³Π΅Π½Ρ‚ - Автоматизированный поиск вакансий с ΡƒΠΌΠ½Ρ‹ΠΌ сопоставлСниСм
  • πŸ” OAuth 2.0 - БСзопасная авторизация Ρ‡Π΅Ρ€Π΅Π· HeadHunter

ДоступныС инструмСнты (10)

  1. hh_search_vacancies - Поиск вакансий
  2. hh_get_vacancy - Π”Π΅Ρ‚Π°Π»ΡŒΠ½Π°Ρ информация ΠΎ вакансии
  3. hh_get_employer - Π˜Π½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΡ ΠΎ ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ/Ρ€Π°Π±ΠΎΡ‚ΠΎΠ΄Π°Ρ‚Π΅Π»Π΅
  4. hh_get_similar - Поиск ΠΏΠΎΡ…ΠΎΠΆΠΈΡ… вакансий
  5. hh_get_areas - Бписок Ρ€Π΅Π³ΠΈΠΎΠ½ΠΎΠ²/Π³ΠΎΡ€ΠΎΠ΄ΠΎΠ²
  6. hh_get_dictionaries - Π‘ΠΏΡ€Π°Π²ΠΎΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅ (ΠΎΠΏΡ‹Ρ‚, Ρ‚ΠΈΠΏΡ‹ занятости ΠΈ Ρ‚.Π΄.)
  7. hh_get_resumes - Бписок Π²Π°ΡˆΠΈΡ… Ρ€Π΅Π·ΡŽΠΌΠ΅
  8. hh_get_resume - Π”Π΅Ρ‚Π°Π»ΡŒΠ½Π°Ρ информация ΠΎ Ρ€Π΅Π·ΡŽΠΌΠ΅
  9. hh_apply_to_vacancy - ΠžΡ‚ΠΊΠ»ΠΈΠΊΠ½ΡƒΡ‚ΡŒΡΡ Π½Π° вакансию (Ρ‚Ρ€Π΅Π±ΡƒΠ΅Ρ‚ OAuth)
  10. hh_get_negotiations - Π˜ΡΡ‚ΠΎΡ€ΠΈΡ ΠΎΡ‚ΠΊΠ»ΠΈΠΊΠΎΠ² (Ρ‚Ρ€Π΅Π±ΡƒΠ΅Ρ‚ OAuth)

Быстрый старт

1. Установка
git clone https://github.com/yourusername/headhunter-mcp-server.git
cd headhunter-mcp-server
python -m venv venv
source venv/bin/activate  # Π’ Windows: venv\Scripts\activate
pip install -r requirements.txt
2. ΠŸΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ credentials HeadHunter API
  1. ЗарСгистрируйтС ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Π½Π° https://dev.hh.ru/admin
  2. ΠŸΠΎΠ»ΡƒΡ‡ΠΈΡ‚Π΅ Client ID, Client Secret ΠΈ App Token
  3. Π‘ΠΊΠΎΠΏΠΈΡ€ΡƒΠΉΡ‚Π΅ .env.example Π² .env ΠΈ Π·Π°ΠΏΠΎΠ»Π½ΠΈΡ‚Π΅ свои credentials
cp .env.example .env
# ΠžΡ‚Ρ€Π΅Π΄Π°ΠΊΡ‚ΠΈΡ€ΡƒΠΉΡ‚Π΅ .env своими credentials
3. Настройка Claude Code

Π”ΠΎΠ±Π°Π²ΡŒΡ‚Π΅ Π² ~/.claude.json:

{
  "mcpServers": {
    "headhunter": {
      "type": "stdio",
      "command": "/ΠΏΡƒΡ‚ΡŒ/ΠΊ/venv/bin/python",
      "args": ["/ΠΏΡƒΡ‚ΡŒ/ΠΊ/headhunter-mcp-server/server.py"],
      "env": {
        "HH_CLIENT_ID": "ваш_client_id",
        "HH_CLIENT_SECRET": "ваш_client_secret",
        "HH_APP_TOKEN": "ваш_app_token",
        "HH_REDIRECT_URI": "https://ваш-домСн.com/oauth/callback"
      }
    }
  }
}
4. OAuth авторизация (ΠΎΠΏΡ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½ΠΎ)

Для ΠΎΡ‚ΠΊΠ»ΠΈΠΊΠΎΠ² Π½Π° вакансии ΠΈ управлСния Ρ€Π΅Π·ΡŽΠΌΠ΅:

python examples/oauth_flow.py

Π‘Π»Π΅Π΄ΡƒΠΉΡ‚Π΅ инструкциям для Π°Π²Ρ‚ΠΎΡ€ΠΈΠ·Π°Ρ†ΠΈΠΈ ΠΈ получСния Ρ‚ΠΎΠΊΠ΅Π½ΠΎΠ² доступа.

ΠŸΡ€ΠΈΠΌΠ΅Ρ€Ρ‹ использования

# Поиск Python вакансий в МосквС
Найди 10 вакансий Python Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠ° Π² МосквС с Π·Π°Ρ€ΠΏΠ»Π°Ρ‚ΠΎΠΉ ΠΎΡ‚ 200000

# ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€ Ρ€Π΅Π·ΡŽΠΌΠ΅
ПокаТи ΠΌΠΎΠΈ Ρ€Π΅Π·ΡŽΠΌΠ΅

# Π”Π΅Ρ‚Π°Π»ΠΈ вакансии
ПокаТи Π΄Π΅Ρ‚Π°Π»ΠΈ вакансии 126209046

# ΠžΡ‚ΠΊΠ»ΠΈΠΊ Π½Π° вакансию (послС OAuth)
ΠžΡ‚ΠΊΠ»ΠΈΠΊΠ½ΠΈΡΡŒ Π½Π° вакансию 126209046 Ρ€Π΅Π·ΡŽΠΌΠ΅ [resume_id] с письмом: "ЗдравствуйтС..."

Vacancy Hunter Agent

Автоматизированный Π°Π³Π΅Π½Ρ‚ для ΡƒΠΌΠ½ΠΎΠ³ΠΎ поиска ΠΈ Π°Π½Π°Π»ΠΈΠ·Π° вакансий. ΠŸΠΎΠ΄Ρ€ΠΎΠ±Π½ΠΎΡΡ‚ΠΈ Π² .

ВозмоТности:

  • АнализируСт нСсколько Ρ€Π΅Π·ΡŽΠΌΠ΅ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ
  • ΠžΡ†Π΅Π½ΠΈΠ²Π°Π΅Ρ‚ Ρ€Π΅Π»Π΅Π²Π°Π½Ρ‚Π½ΠΎΡΡ‚ΡŒ вакансий (0-30 Π±Π°Π»Π»ΠΎΠ²)
  • Π“Π΅Π½Π΅Ρ€ΠΈΡ€ΡƒΠ΅Ρ‚ CSV ΠΎΡ‚Ρ‡Ρ‘Ρ‚Ρ‹ с AI рСкомСндациями
  • ЀокусируСтся Ρ‚ΠΎΠ»ΡŒΠΊΠΎ Π½Π° Ρ€Π΅Π³ΠΈΠΎΠ½Π΅ Москва

ИспользованиС:

Запусти Π°Π³Π΅Π½Ρ‚Π° vacancy-hunter

Π‘Ρ‚Ρ€ΡƒΠΊΡ‚ΡƒΡ€Π° ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°

headhunter-mcp-server/
β”œβ”€β”€ server.py              # MCP сСрвСр (10 инструмСнтов)
β”œβ”€β”€ hh_client.py           # HeadHunter API ΠΊΠ»ΠΈΠ΅Π½Ρ‚
β”œβ”€β”€ requirements.txt       # Python зависимости
β”œβ”€β”€ .env.example           # Π¨Π°Π±Π»ΠΎΠ½ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Π½Π½Ρ‹Ρ… окруТСния
β”œβ”€β”€ examples/
β”‚   └── oauth_flow.py      # Π‘ΠΊΡ€ΠΈΠΏΡ‚ OAuth Π°Π²Ρ‚ΠΎΡ€ΠΈΠ·Π°Ρ†ΠΈΠΈ
└── docs/
    └── vacancy-hunter-agent.md  # ДокумСнтация Π°Π³Π΅Π½Ρ‚Π°

ВрСбования

  • Python 3.10+
  • Claude Code ΠΈΠ»ΠΈ любой MCP-совмСстимый ΠΊΠ»ΠΈΠ΅Π½Ρ‚
  • HeadHunter API credentials

УчастиС Π² Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ΅

ΠŸΡ€ΠΈΠ²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‚ΡΡ Π»ΡŽΠ±Ρ‹Π΅ Π²ΠΊΠ»Π°Π΄Ρ‹! НС ΡΡ‚Π΅ΡΠ½ΡΠΉΡ‚Π΅ΡΡŒ ΠΎΡ‚ΠΏΡ€Π°Π²Π»ΡΡ‚ΡŒ Pull Request.

ЛицСнзия

MIT License - подробности Π² Ρ„Π°ΠΉΠ»Π΅ .

Бсылки


Made with ❀️ for the HeadHunter and MCP community