Skip to main content
Glama

h1b-mcp

An MCP server that lets Claude answer H1B visa sponsorship questions using free public DOL data.

Ask things like:

  • "Does Google sponsor H1Bs?"

  • "What's Amazon's H1B approval rate and top roles?"

  • "Which companies in Austin sponsor H1Bs for Data Engineers?"

Tools

Tool

Description

lookup_company

Quick sponsorship check + certified/denied/withdrawn counts

get_company_stats

Approval rate, top 5 roles, avg annual wage, states

search_sponsors

Filter companies by job title, state, and/or city

Related MCP server: H1B Job Search MCP Server

Setup

1. Clone and install

git clone https://github.com/<your-username>/h1b-mcp.git
cd h1b-mcp
python3 -m venv venv
source venv/bin/activate      # Windows: venv\Scripts\activate
pip install -r requirements.txt

2. Build the database (one-time, ~2-3 min)

python loader.py

This downloads the FY2024 Q2 DOL H1B LCA data (~50MB) and loads it into a local SQLite database.

3. Verify the database

python -c "import sqlite3; db = sqlite3.connect('h1b.db'); print(db.execute('SELECT COUNT(*) FROM lca_applications').fetchone())"

Should print a non-zero count (e.g., (600000,)).

4. Connect to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "h1b": {
      "command": "/absolute/path/to/h1b-mcp/venv/bin/python",
      "args": ["/absolute/path/to/h1b-mcp/server.py"]
    }
  }
}

Important: Use the absolute path to the venv Python, not bare python. To find it:

cd h1b-mcp && source venv/bin/activate && which python

5. Restart Claude Desktop and start asking

"Which companies in New York sponsor H1Bs for software engineers?"

Data Source

Public DOL LCA Disclosure Data (FY2024 Q2). Source: https://www.dol.gov/agencies/eta/foreign-labor/performance

No API keys required. Data is a quarterly snapshot — re-run loader.py to refresh.

Running Tests

source venv/bin/activate
pytest tests/ -v

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching and analyzing H-1B visa sponsoring companies using U.S. Department of Labor data. Supports filtering by job role, location, and salary with natural language queries to find direct employers and export results.
    16
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching and analyzing real H-1B visa sponsorship data from the U.S. Department of Labor, including job titles, salaries, locations, and company statistics.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Read-only MCP server for querying H-1B sponsoring employers from the USCIS dataset, providing tools to search employers, get year-by-year approvals, top sponsors, and trends across FY2009-2026.
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that lets AI assistants search the UK Register of Licensed Visa Sponsors (125,000+ companies), enabling queries about company sponsorship, location, visa routes, and ratings.
    1
    MIT