HireBase MCP智能工作搜索工具
提供了与HireBase Job API交互的工具,使用户能够使用各种条件搜索工作,并通过自然语言检索详细的工作信息。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"hirebase": {
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"requests",
"mcp",
"run",
"PATH_TO_REPO/src/hirebase_mcp/server.py"
],
"command": "uv"
}
}
}
该服务需要配置环境变量:HIREBASE_API_KEY
可用工具 (2 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
search_jobs 17 个参数
Search for jobs using the HireBase API Args: query: Full text search query and_keywords: Keywords that must all appear in results or_keywords: Keywords where at least one must appear not_keywords: Keywords that must not appear title: Job titles to search for category: Job categories to filter by country: Countries to filter by city: Cities to filter by location_type: Location types (Remote, In-Person, Hybrid) company: Companies to filter by salary_from: Minimum salary salary_to: Maximum salary salary_currency: Salary currency (e.g. USD) years_from: Minimum years of experience years_to: Maximum years of experience visa: Whether job offers visa sponsorship limit: Maximum number of results to return
该工具无需必填参数,直接调用即可
get_job 1 个参数 需填 1 项
Get detailed information about a specific job Args: job_id: The unique identifier of the job
必填参数:job_id
服务介绍
HireBase MCP 服务器
一个提供与 HireBase 工作 API 交互工具的模型上下文协议(MCP)服务器。
可用的 MCP 交互
此服务器公开了以下 MCP 交互:
工具
search_jobs:根据各种标准(关键词、职位名称、地点、薪资等)使用 HireBase API 搜索工作。- 参数:
query,and_keywords,or_keywords,not_keywords,title,category,country,city,location_type,company,salary_from,salary_to,salary_currency,years_from,years_to,visa,limit.
- 参数:
get_job:使用其 HireBase ID 获取特定工作的详细信息。- 参数:
job_id.
- 参数:
提示
create_candidate_profile:基于候选人详情(姓名、LinkedIn、个人网站、简历文本)生成结构化的提示,以帮助指导求职。- 参数:
name,linkedin_url,personal_website,resume_text.
- 参数:
客户端设置(示例:Claude Desktop, Cursor)
要使用像 Claude Desktop 或 Cursor 这样的 MCP 客户端与此服务器配合工作,您需要配置客户端来运行服务器进程,并可选地提供 HireBase API 密钥。
-
确保已安装
uv:curl -LsSf https://astral.sh/uv/install.sh | sh -
获取 HireBase API 密钥(可选): 从 HireBase 请求一个密钥。您可以将其设置为环境变量 (
HIREBASE_API_KEY),或者留空。 -
配置您的客户端:
-
使用
uvx:- Claude Desktop: 编辑您的
claude_desktop_config.json:{ "mcpServers": { "hirebase": { "command": "uvx", "args": [ "hirebase-mcp" ], "env": { "HIREBASE_API_KEY": "" } } } } - Cursor: 转到设置 > MCP > 添加服务器:
- Mac/Linux 命令:
uvx hirebase-mcp(如果需要,请调整包名) - Windows 命令:
cmd - Windows 参数:
/c,uvx,hirebase-mcp(如果需要,请调整包名) - 在适当的部分设置
HIREBASE_API_KEY环境变量。
- Mac/Linux 命令:
- Claude Desktop: 编辑您的
-
通过 Python 从源代码运行(替代方法):
- 克隆仓库并记下克隆的位置
- Claude Desktop: 编辑您的
claude_desktop_config.json:
{ "mcpServers": { "hirebase": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "--with", "requests", "mcp", "run", "PATH_TO_REPO/src/hirebase_mcp/server.py" ] } } }
-
开发
该项目使用:
uv用于依赖管理和虚拟环境ruff用于代码检查和格式化hatch作为构建后端
常见任务
# Setup virtual env
uv venv
# Install dependencies
uv pip install -e .
# install cli tools
uv tool install ruff
# Run linting
ruff check .
# Format code
ruff format .
环境变量
HIREBASE_API_KEY(必需):访问 HireBase API 的 API 密钥。服务器需要此密钥来发送经过身份验证的请求以获取工作数据。
测试
该项目使用 pytest 来测试核心工具逻辑。测试使用 unittest.mock 模拟外部 API 调用。
- 安装测试依赖项:
# Ensure you are in your activated virtual environment (.venv)
uv pip install -e '.[test]'
- 运行测试:
# Example command
pytest
贡献
欢迎贡献。
许可
本项目根据 MIT 许可证许可 - 详情请参阅 LICENSE 文件。