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:
| Tool | What It Does | Example Query |
|---|---|---|
| search_salaries | Search filings by employer, role, city, state, salary range, wage level | "Google software engineer salaries in CA" |
| get_top_employers | Rank companies by filing volume or average salary for a role | "Top paying companies for data scientists" |
| compare_salaries | Side-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:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
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:
| Question | Tool Used | What You Get |
|---|---|---|
| "How much does Google pay software engineers?" | search_salaries | Paginated salary filings with amounts, locations, wage levels |
| "Top 10 companies by ML engineer salary" | get_top_employers | Ranked list with avg salary, filing count, salary range |
| "Compare data scientist pay at Meta vs Amazon" | compare_salaries | Side-by-side stats: avg, min, max, filing count |
| "H-1B salaries above $200K in New York" | search_salaries | Filtered results for high-salary filings in NY |
| "Which companies file the most H-1B visas for AI roles?" | get_top_employers | Companies ranked by AI/ML filing volume |
| "San Francisco vs Austin software engineer salary" | compare_salaries | City-level salary comparison for SWE roles |
API Key and Pricing
| Tier | Price | Requests/Day | Data Access |
|---|---|---|---|
| Free | $0 | 20 | Last 2 fiscal years, 6 fields |
| Dev | $9/mo | 5,000 | All years, all 19 fields |
| Pro | $29/mo | 25,000 | All years, all fields, 100 results/page |
| Business | $79/mo | 100,000 | Everything, 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
- Be specific with company names: "Google LLC" works better than just "Google"
- Use 2-letter state codes: "CA" not "California"
- Add fiscal_year for the most recent data: fiscal_year 2024
- The get_top_employers tool uses multiple API requests. On the free tier, use it sparingly.
- Use compare_salaries when you need a direct comparison. It is more efficient than running two separate searches.
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