# snseam/boss-zhipin-mcp architecture

> Architecture diagram of the GitHub repository snseam/boss-zhipin-mcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/snseam/boss-zhipin-mcp
- Repository: https://github.com/snseam/boss-zhipin-mcp

## Overview

This is an MCP server for automating recruiter workflows on BOSS直聘. An AI assistant invokes MCP tools; the server coordinates browser-backed candidate search, deduplication and persistence, resume viewing and share-link extraction, filtering/scoring, report export, and greetings. Browser automation uses Playwright over Chrome CDP, while the candidate database supports querying and resumable progress. The README documents several tools whose implementation excerpts were not shown; those capabilities are represented at the server level. OCR is shown as a separate optional capability because the sampled sources do not establish that the scraper invokes it.

Main entry points: [`server.py`](https://github.com/snseam/boss-zhipin-mcp/blob/main/server.py) (MCP tools), [`browser.py`](https://github.com/snseam/boss-zhipin-mcp/blob/main/browser.py) (Browser manager), [`scraper.py`](https://github.com/snseam/boss-zhipin-mcp/blob/main/scraper.py) (Candidate search), [`candidate_db.py`](https://github.com/snseam/boss-zhipin-mcp/blob/main/candidate_db.py) (Candidate database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["MCP interface"]
  node_server["MCP tools<br/>[server.py]"]
  node_profile["Search profile<br/>[config.py]"]
end

subgraph group_recruiting["Recruiter workflow"]
  node_search["Candidate search<br/>[scraper.py]"]
  node_resume["Resume and links<br/>[scraper.py]"]
  node_contact["Candidate outreach<br/>[scraper.py]"]
  node_assessment["Filter and score<br/>[server.py]"]
  node_report["Report export<br/>[server.py]"]
end

subgraph group_state["Candidate state"]
  node_store[("Candidate database<br/>[candidate_db.py]")]
end

subgraph group_runtime["Browser runtime"]
  node_browser["Browser manager<br/>[browser.py]"]
  node_ocr["Resume OCR<br/>[ocr.py]"]
end

subgraph group_integrations["External services"]
  node_chrome["Chrome browser"]
  node_boss["BOSS直聘"]
  node_claude["Anthropic Vision"]
end

node_assistant(("AI assistant"))

node_assistant -->|"invokes tools"| node_server
node_server -->|"loads settings"| node_profile
node_server -->|"searches candidates"| node_search
node_server -->|"views candidates"| node_resume
node_server -->|"starts greetings"| node_contact
node_server -->|"deduplicates and updates"| node_store
node_server -->|"filters and scores"| node_assessment
node_server -->|"exports report"| node_report
node_search -->|"controls page"| node_browser
node_resume -->|"captures resume"| node_browser
node_contact -->|"sends greeting"| node_browser
node_browser -->|"connects by CDP"| node_chrome
node_search -->|"scrapes recruiter UI"| node_boss
node_resume -->|"extracts share links"| node_boss
node_contact -->|"contacts candidates"| node_boss
node_store -.->|"persists locally"| node_boss
node_ocr -->|"requests vision OCR"| node_claude

click node_server "https://github.com/snseam/boss-zhipin-mcp/blob/main/server.py"
click node_profile "https://github.com/snseam/boss-zhipin-mcp/blob/main/config.py"
click node_search "https://github.com/snseam/boss-zhipin-mcp/blob/main/scraper.py"
click node_resume "https://github.com/snseam/boss-zhipin-mcp/blob/main/scraper.py"
click node_contact "https://github.com/snseam/boss-zhipin-mcp/blob/main/scraper.py"
click node_assessment "https://github.com/snseam/boss-zhipin-mcp/blob/main/server.py"
click node_report "https://github.com/snseam/boss-zhipin-mcp/blob/main/server.py"
click node_store "https://github.com/snseam/boss-zhipin-mcp/blob/main/candidate_db.py"
click node_browser "https://github.com/snseam/boss-zhipin-mcp/blob/main/browser.py"
click node_ocr "https://github.com/snseam/boss-zhipin-mcp/blob/main/ocr.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server,node_profile toneBlue
class node_search,node_resume,node_contact,node_assessment,node_report toneAmber
class node_store toneMint
class node_browser,node_ocr toneRose
class node_chrome,node_boss,node_claude,node_assistant toneIndigo
```

## Components

### MCP interface

- [MCP tools](https://github.com/snseam/boss-zhipin-mcp/blob/main/server.py): `server.py`
- [Search profile](https://github.com/snseam/boss-zhipin-mcp/blob/main/config.py): `config.py`

### Recruiter workflow

- [Candidate search](https://github.com/snseam/boss-zhipin-mcp/blob/main/scraper.py): `scraper.py`
- [Resume and links](https://github.com/snseam/boss-zhipin-mcp/blob/main/scraper.py): `scraper.py`
- [Candidate outreach](https://github.com/snseam/boss-zhipin-mcp/blob/main/scraper.py): `scraper.py`
- [Filter and score](https://github.com/snseam/boss-zhipin-mcp/blob/main/server.py): `server.py`
- [Report export](https://github.com/snseam/boss-zhipin-mcp/blob/main/server.py): `server.py`

### Candidate state

- [Candidate database](https://github.com/snseam/boss-zhipin-mcp/blob/main/candidate_db.py): `candidate_db.py`

### Browser runtime

- [Browser manager](https://github.com/snseam/boss-zhipin-mcp/blob/main/browser.py): `browser.py`
- [Resume OCR](https://github.com/snseam/boss-zhipin-mcp/blob/main/ocr.py): `ocr.py`

### External services

- **Chrome browser**
- **BOSS直聘**
- **Anthropic Vision**

### Other components

- **AI assistant**

## Connections

- AI assistant → MCP tools: invokes tools (evidence: `README.md`)
- MCP tools → Search profile: loads settings (evidence: `server.py`)
- MCP tools → Candidate search: searches candidates (evidence: `server.py`)
- MCP tools → Resume and links: views candidates (evidence: `server.py`)
- MCP tools → Candidate outreach: starts greetings (evidence: `README.md`)
- MCP tools → Candidate database: deduplicates and updates (evidence: `server.py`)
- MCP tools → Filter and score: filters and scores (evidence: `README.md`)
- MCP tools → Report export: exports report (evidence: `README.md`)
- Candidate search → Browser manager: controls page (evidence: `scraper.py`)
- Resume and links → Browser manager: captures resume (evidence: `scraper.py`)
- Candidate outreach → Browser manager: sends greeting (evidence: `scraper.py`)
- Browser manager → Chrome browser: connects by CDP (evidence: `browser.py`)
- Candidate search → BOSS直聘: scrapes recruiter UI (evidence: `README.md`)
- Resume and links → BOSS直聘: extracts share links (evidence: `README.md`)
- Candidate outreach → BOSS直聘: contacts candidates (evidence: `README.md`)
- Candidate database → BOSS直聘: persists locally (evidence: `README.md`)
- Resume OCR → Anthropic Vision: requests vision OCR (evidence: `ocr.py`)
