How to Use H-1B Salary Data in Claude, Cursor, and AI Tools (MCP Server)

You can query 8.5 million H-1B salary records directly from Claude, Cursor, or any MCP-compatible AI tool. The H-1B Salary MCP server connects your AI assistant to real Department of Labor filing data. Setup takes 2 minutes.

MCP (Model Context Protocol) is an open standard created by Anthropic that lets AI tools connect to external data sources. Instead of relying on training data, your AI gets live access to 17 years of H-1B salary filings.

What You Get

The MCP server exposes 3 tools to your AI assistant:

ToolWhat It DoesExample Query
search_salariesSearch filings by employer, role, city, state, salary range, wage level"Google software engineer salaries in CA"
get_top_employersRank companies by filing volume or average salary for a role"Top paying companies for data scientists"
compare_salariesSide-by-side comparison of two employers or two cities"Compare Amazon vs Meta ML engineer pay"

Setup: Claude Desktop

Open your Claude Desktop configuration file:

Add the H-1B salary server:

{
  "mcpServers": {
    "h1b-salaries": {
      "command": "npx",
      "args": ["h1b-salary-mcp"],
      "env": {
        "H1B_API_KEY": "your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop. You will see the H-1B tools appear in the tools menu.

Setup: Cursor

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "h1b-salaries": {
      "command": "npx",
      "args": ["h1b-salary-mcp"],
      "env": {
        "H1B_API_KEY": "your_api_key_here"
      }
    }
  }
}

Setup: Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "h1b-salaries": {
      "command": "npx",
      "args": ["h1b-salary-mcp"],
      "env": {
        "H1B_API_KEY": "your_api_key_here"
      }
    }
  }
}

Setup: VS Code

Create .vscode/mcp.json in your project root:

{
  "servers": {
    "h1b-salaries": {
      "type": "stdio",
      "command": "npx",
      "args": ["h1b-salary-mcp"],
      "env": {
        "H1B_API_KEY": "your_api_key_here"
      }
    }
  }
}

Example Queries

Once connected, ask your AI assistant questions like these:

QuestionTool UsedWhat You Get
"How much does Google pay software engineers?"search_salariesPaginated salary filings with amounts, locations, wage levels
"Top 10 companies by ML engineer salary"get_top_employersRanked list with avg salary, filing count, salary range
"Compare data scientist pay at Meta vs Amazon"compare_salariesSide-by-side stats: avg, min, max, filing count
"H-1B salaries above $200K in New York"search_salariesFiltered results for high-salary filings in NY
"Which companies file the most H-1B visas for AI roles?"get_top_employersCompanies ranked by AI/ML filing volume
"San Francisco vs Austin software engineer salary"compare_salariesCity-level salary comparison for SWE roles

API Key and Pricing

TierPriceRequests/DayData Access
Free$020Last 2 fiscal years, 6 fields
Dev$9/mo5,000All years, all 19 fields
Pro$29/mo25,000All years, all fields, 100 results/page
Business$79/mo100,000Everything, priority support

Get your API key at the API documentation page. The free tier is enough to try the MCP tools and run a few queries per day.

Tips for Best Results

Frequently Asked Questions

What is MCP and how does it work with H-1B salary data?

MCP (Model Context Protocol) is an open standard that lets AI assistants connect to external data sources. The H-1B Salary MCP server connects Claude, Cursor, Windsurf, and other AI tools directly to 8.5 million DOL salary records. Your AI can then answer salary questions with real data instead of estimates.

Can I use H-1B salary data in Claude Desktop?

Yes. Add the h1b-salary-mcp server to your Claude Desktop config file (claude_desktop_config.json). Once configured, Claude can search salaries, compare employers, and look up wage levels using real DOL filing data.

How do I set up Cursor to query H-1B salaries?

Create a .cursor/mcp.json file in your project root with the h1b-salary-mcp server configuration. Set your H1B_API_KEY environment variable. Cursor will then have access to search_salaries, get_top_employers, and compare_salaries tools.

Is the MCP server free to use?

The MCP server itself is free and open source. It requires an API key from h1bapi.com. Free tier keys allow 20 requests per day and cover the last 2 fiscal years. Paid plans start at $9/month for 5,000 requests per day with full historical data.

What questions can AI answer with H-1B salary data?

Your AI can answer questions like: How much does Google pay software engineers? What is the salary range for data scientists in New York? Compare Amazon vs Microsoft ML engineer pay. Which companies sponsor the most H-1B visas? What is the prevailing wage for my role?

Does the MCP server work with GPT or Gemini?

The MCP server works with any AI tool that supports the Model Context Protocol stdio transport. This includes Claude Desktop, Cursor, Windsurf, VS Code Copilot, and other MCP-compatible clients. GPT and Gemini do not support MCP natively but may add support in the future.

Get This Data via API

Query any company, job title, city, or salary range from 8.5 million H-1B records.

Get a free API key