jhgaylor hirebase mcp

jhgaylor hirebase mcp avatar

by jhgaylor

A Python MCP Server for hirebase.org's API

What is jhgaylor hirebase mcp

HireBase MCP Server

A Model Context Protocol (MCP) server providing tools to interact with the HireBase Job API.

*License: MIT*

Available MCP Interactions

This server exposes the following MCP interactions:

Tools

  • search_jobs: Search for jobs using the HireBase API based on various criteria (keywords, title, location, salary, etc.).
    • Parameters: 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: Retrieve detailed information about a specific job using its HireBase ID.
    • Parameters: job_id.

Prompts

  • create_candidate_profile: Generates a structured prompt based on candidate details (name, LinkedIn, website, resume text) to help guide job searching.
    • Parameters: name, linkedin_url, personal_website, resume_text.

Client Setup (Examples: Claude Desktop, Cursor)

To use this server with an MCP client like Claude Desktop or Cursor, you need to configure the client to run the server process and optionally provide the HireBase API key.

  1. Ensure uv is installed: curl -LsSf https://astral.sh/uv/install.sh | sh

  2. Obtain a HireBase API Key (optional): Request a key from HireBase You can set this as an environment variable (HIREBASE_API_KEY) or just leave it empty.

  3. Configure your client:

    • Using uvx:

      • Claude Desktop: Edit your claude_desktop_config.json:
        {
          "mcpServers": {
            "hirebase": {
              "command": "uvx",
              "args": [
                "hirebase-mcp" 
              ],
              "env": {
                "HIREBASE_API_KEY": "" 
              }
            }
          }
        }
        
      • Cursor: Go to Settings > MCP > Add Server:
        • Mac/Linux Command: uvx hirebase-mcp (Adjust package name if needed)
        • Windows Command: cmd
        • Windows Args: /c, uvx, hirebase-mcp (Adjust package name if needed)
        • Set the HIREBASE_API_KEY environment variable in the appropriate section.
    • Running from source via Python (Alternative):

      1. Clone the repo and note where you clone it to
      2. Claude Desktop: Edit your 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"
                  ]
              }
          }
      }
      

Development

This project uses:

  • uv for dependency management and virtual environments
  • ruff for linting and formatting
  • hatch as the build backend

Common Tasks

# 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 .

Environment Variables

  • HIREBASE_API_KEY (required): Your API key for accessing the HireBase API. The server needs this to make authenticated requests for job data.

Testing

This project uses pytest for testing the core tool logic. Tests mock external API calls using unittest.mock.

  1. Install test dependencies:
# Ensure you are in your activated virtual environment (.venv)
uv pip install -e '.[test]'
  1. Run tests:
# Example command
pytest

Contributing

Contributions are welcome.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Leave a Comment

Frequently Asked Questions

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.

What are MCP Servers?

MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.

How do MCP Servers work?

MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.

Are MCP Servers secure?

Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.

Submit Your MCP Server

Share your MCP server with the community

Submit Now