US Immigration MCP Server
Generates complete, professional LaTeX documents for U.S. immigration petitions — EB1A and EB2 NIW petition letters, expert reference letters, exhibit lists, and a reusable preamble with custom legal citation commands (\cfr, \casename, \exhibit), plus citation formatting tailored for LaTeX output and a helper for escaping LaTeX special characters.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@US Immigration MCP Server Generate a LaTeX EB2 NIW petition letter for my machine learning healthcare endeavor"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🇺🇸 US Immigration MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with tools, resources, and prompts for U.S. employment-based immigration petitions — specifically EB1A (Extraordinary Ability) and EB2 NIW (National Interest Waiver).
✨ Key Features
Feature | Description |
🔤 LaTeX Document Generation | Generate complete, professional LaTeX petition letters, reference letters, and exhibit lists |
📜 Legal Citation Tools | Format CFR, USCIS Policy Manual, INA, and case citations correctly |
⚖️ Dhanasar Framework Analyzer | Evaluate evidence against the three-prong NIW test |
🏆 EB1A Criteria Checker | Map evidence to the 10 regulatory criteria |
📅 Visa Bulletin Guidance | Understand priority dates and processing times |
📝 Document Templates | Structured prompts for petition letters and reference letters |
Related MCP server: Visa Bulletin Push
🎯 Perfect For
Self-petitioners preparing their own EB1A or EB2 NIW applications
Immigration attorneys streamlining document preparation
Researchers and professionals building evidence packages
Anyone using LaTeX for professional immigration documents
📋 Prerequisites
Node.js 18+ (Download)
An MCP-compatible client (Claude Desktop, VS Code with MCP extension, Cursor, etc.)
LaTeX distribution (for compiling generated documents): TeX Live, MiKTeX, or Overleaf
🚀 Quick Start
Installation
# Clone the repository
git clone https://github.com/sebastianomarchesini/us-immigration-mcp.git
cd us-immigration-mcp
# Install dependencies
npm install
# Build the project
npm run buildConfigure Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"us-immigration": {
"command": "node",
"args": ["/path/to/us-immigration-mcp/dist/index.js"]
}
}
}Restart Claude Desktop. You'll see the tools available in the 🔧 menu.
Run in Development Mode
npm run dev🛠️ Available Tools
LaTeX Document Generation
Tool | Description |
| Complete EB2 NIW petition letter with Dhanasar framework |
| Complete EB1A petition letter with claimed criteria |
| Expert recommendation letter template |
| Formatted exhibit index |
| Reusable preamble with legal commands |
| Escape special characters for LaTeX |
Citation Formatting
Tool | Description |
| Code of Federal Regulations citations |
| Legal case citations (Bluebook format) |
| USCIS Policy Manual citations |
| Immigration and Nationality Act citations |
| Citations formatted for LaTeX documents |
| Dictionary of frequently used citations |
NIW Analysis (Matter of Dhanasar)
Tool | Description |
| Analyze evidence against a specific prong |
| Comprehensive three-prong evaluation |
| Recommend evidence types for weak areas |
| Complete framework overview |
EB1A Analysis
Tool | Description |
| Evaluate evidence against criteria 1-10 |
| Suggest applicable criteria |
| All 10 criteria overview |
| Compare both pathways |
Immigration Information
Tool | Description |
| Understanding the Visa Bulletin |
| Priority date implications |
| USCIS processing information |
📄 LaTeX Usage Examples
Generate an NIW Petition Letter
User: Generate a LaTeX petition letter for my EB2 NIW application.
My name is John Smith, I work in machine learning, and my endeavor
is developing AI systems for healthcare diagnostics. I have a PhD
in Computer Science from Stanford (2020).The tool will generate a complete .tex file with:
Proper legal formatting and citations
Dhanasar three-prong structure
Placeholder sections for your specific evidence
Custom LaTeX commands for legal citations (
\cfr{},\casename{},\exhibit{})
Compile the LaTeX Document
# Using pdflatex
pdflatex petition.tex
# Or upload to Overleaf for online editingCustom LaTeX Commands Included
\cfr{8 C.F.R. § 204.5(k)} % CFR citations (italicized)
\casename{Matter of Dhanasar} % Case names (italicized)
\exhibit{A-1} % Exhibit references (bold)
\seeexhibit{C-2} % "See Exhibit C-2" format📚 Available Resources
Access legal texts via the MCP resources interface:
URI | Content |
| Matter of Dhanasar, 26 I&N Dec. 884 (AAO 2016) |
| Kazarian v. USCIS, 596 F.3d 1115 (9th Cir. 2010) |
| 8 C.F.R. § 204.5(h)(3) — EB1A criteria |
| 8 C.F.R. § 204.5(k) — EB2 NIW requirements |
| USCIS Policy Manual Vol. 6, Part F, Ch. 5 |
📝 Available Prompts
Prompt | Description |
| Structure for NIW petition cover letter |
| Template for expert recommendation letters |
| Framework for responding to RFEs |
| Structure for EB1A petition letter |
🏗️ Project Structure
us-immigration-mcp/
├── src/
│ ├── index.ts # Main MCP server entry point
│ ├── tools/
│ │ ├── citations.ts # Citation formatting tools
│ │ ├── dhanasar.ts # NIW analysis tools
│ │ ├── eb1a.ts # EB1A criteria tools
│ │ ├── visa-bulletin.ts # Visa bulletin tools
│ │ └── latex.ts # LaTeX generation tools
│ ├── resources/
│ │ └── legal-texts.ts # Legal resource content
│ └── prompts/
│ └── templates.ts # Prompt templates
├── templates/ # Example LaTeX templates
├── dist/ # Compiled JavaScript
├── package.json
├── tsconfig.json
└── README.md⚠️ Disclaimer
This tool is for informational and educational purposes only.
This is NOT legal advice. Immigration law is complex and constantly evolving.
Always consult with a qualified immigration attorney for your specific case.
The developers are not responsible for any immigration decisions made using this tool.
Information may not reflect the most recent legal developments.
Verify all citations and legal standards before submitting any petition.
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Ideas for Contributions
Add more AAO decision summaries
Implement PERM labor certification tools
Add EB1B (Outstanding Researcher) support
Create i-140 form field mapper
Add more LaTeX templates (CV, cover letters)
Support for BibTeX legal citations
🧪 Development
# Install dependencies
npm install
# Run in development mode (with hot reload)
npm run dev
# Build for production
npm run build
# Run linting
npm run lint
# Run tests
npm test📄 License
This project is licensed under the MIT License — see LICENSE for details.
🙏 Acknowledgments
Anthropic for the Model Context Protocol
The immigration law community for public legal resources
USCIS for the Policy Manual and public AAO decisions
The LaTeX community for typesetting excellence
📬 Contact
Author: Sebastiano Marchesini
GitHub: @sebastianomarchesini
Built with ❤️ to help navigate the U.S. immigration system
Available Tools
23 toolsanalyze_dhanasar_prongB
Analyze evidence against a specific Matter of Dhanasar prong for EB2 NIW. Returns the legal framework, key factors, evidence types, and common weaknesses.
Inputs: prong (required), evidenceSummary (required).
analyze_eb1a_criterionB
Analyze evidence against a specific EB1A criterion (1-10). EB1A petitions must meet at least 3 of 10 criteria.
Inputs: criterion (required), evidenceSummary (required).
compare_eb1a_vs_niwA
Compare EB1A and EB2 NIW options for a petitioner to help decide which path to pursue.
Inputs: field (required), qualificationsSummary (required).
escape_latexB
Escape special characters in text for safe use in LaTeX documents.
Inputs: text (required).
evaluate_niw_petitionB
Perform a comprehensive three-prong Dhanasar evaluation for an NIW petition. Analyzes all prongs together.
Inputs: endeavorDescription (required), waiverJustification (required), qualificationsSummary (required).
explain_priority_dateA
Explain how priority dates work for a given immigration category and country of chargeability.
Inputs: country (required), category (required).
format_case_citationB
Format a legal case citation in Bluebook format. Use for cases like Matter of Dhanasar or Kazarian v. USCIS.
Inputs: page (required), year (required), court (required), volume (required), +3 more.
format_cfr_citationA
Format a Code of Federal Regulations (CFR) citation. Use for immigration regulations like 8 C.F.R. § 204.5(h) for EB1A or 8 C.F.R. § 204.5(k) for EB2.
Inputs: part (required), title (required), section, paragraph.
format_ina_citationB
Format an Immigration and Nationality Act (INA) citation with optional U.S. Code parallel cite.
Inputs: section (required), uscTitle, uscSection.
format_latex_citationC
Format a citation for use in LaTeX documents with proper escaping and formatting.
Inputs: citation (required), citationType (required), label.
format_uscis_policy_citationB
Format a USCIS Policy Manual citation. Use for referencing USCIS guidance on immigration categories.
Inputs: part (required), volume (required), chapter (required), section.
generate_eb1a_petition_latexC
Generate a complete LaTeX document for an EB1A Extraordinary Ability petition letter.
Inputs: beneficiaryName (required), claimedCriteria (required), fieldOfExpertise (required).
generate_exhibit_list_latexC
Generate a LaTeX exhibit list/index for organizing petition evidence.
Inputs: petitionType (required), beneficiaryName (required), exhibits.
generate_latex_preambleB
Generate a reusable LaTeX preamble with all necessary packages and commands for immigration petition documents.
Inputs: documentType (required), includeHyperlinks.
generate_niw_petition_latexC
Generate a complete LaTeX document for an EB2 NIW petition letter with proper legal formatting, citations, and structure based on the Dhanasar framework.
Inputs: advancedDegree (required), beneficiaryName (required), fieldOfExpertise (required), proposedEndeavor (required), +1 more.
generate_reference_letter_latexC
Generate a LaTeX template for an expert recommendation letter supporting an immigration petition.
Inputs: refereeName (required), petitionType (required), refereeTitle (required), beneficiaryName (required), +2 more.
get_common_citationsA
Get a dictionary of commonly used immigration citations for EB1/EB2 petitions. Useful for quick reference.
Inputs: no named parameters.
get_dhanasar_summaryA
Get a complete summary of the Matter of Dhanasar framework with all three prongs.
Inputs: no named parameters.
get_eb1a_criteria_summaryA
Get a summary of all 10 EB1A criteria from 8 C.F.R. § 204.5(h)(3).
Inputs: no named parameters.
get_processing_times_infoB
Get information about USCIS processing times for employment-based petitions (I-140, I-485).
Inputs: no named parameters.
get_visa_bulletin_infoB
Get information about the Visa Bulletin and how to check priority dates for employment-based immigration.
Inputs: no named parameters.
map_evidence_to_eb1a_criteriaA
Suggest which EB1A criteria the described evidence might support based on keywords.
Inputs: evidenceDescription (required).
suggest_niw_evidenceA
Suggest evidence types to strengthen a specific Dhanasar prong based on the petitioner's field.
Inputs: field (required), prong (required), currentEvidence.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Most tools have clearly distinct resource+action targets: petition generators, criterion/prong analyzers, citation formatters, and informational lookups are separable. The main soft spot is the citation family—format_cfr_citation, format_case_citation, format_ina_citation, format_uscis_policy_citation, and format_latex_citation could be confused, since it is unclear whether format_latex_citation is an alternative or a wrapper around the type-specific formatters. evaluate_niw_petition vs analyze_dhanasar_prong and analyze_eb1a_criterion vs map_evidence_to_eb1a_criteria are adjacent but descriptions distinguish them by scope.
All 23 tools use consistent snake_case with a verb_noun structure (generate_*, analyze_*, format_*, get_*, evaluate_*, explain_*, map_*, compare_*, escape_latex). Verb choice reflects the action type predictably, and domain prefixes (eb1a, niw, dhanasar, latex, cfr) make intent readable at a glance. No mixed camelCase or inconsistent verb styles.
At 23 tools the surface is on the heavy side for the stated domain, and the LaTeX/citation families account for roughly half of them (five formatters, five generators plus escape_latex). Each tool does have a distinct job, so nothing feels redundant, but the set is large enough that an agent must scan many similar-sounding names. It sits at the borderline-heavy end rather than being tightly scoped.
Coverage of the core EB1A/NIW workflow is strong: per-criterion and per-prong analysis, summary frameworks, comparison, evidence suggestion, citation formatting, document generation, and visa bulletin/processing-time lookups. Minor gaps exist—no overall EB1A final-merits evaluation tool, no RFE/NOID response generation, and no tool that ingests or retrieves actual case text—but agents can work around these. The surface is coherent for the stated purpose.
Maintenance
Related MCP Connectors
Passim AI: 1.2M+ U.S. immigration decisions, INA/CFR, USCIS policy, ImmCite, 46 state codes.
Passim AI (formerly BIA Edge): 1.2M+ U.S. immigration decisions, INA/CFR, USCIS policy, ImmCite.
PERM, prevailing wage and H-1B case status, DOL's queue and the visa bulletin, from federal records
A hosted LaTeX editor your assistant can actually use. Search 1,019 free templates, create and edit projects, and compile them to PDF on a real TeX Live farm, getting back the PDF or the compile log when a build fails. Thirteen tools behind OAuth 2.1, with nothing to install and nothing to run locally.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to create, edit, and validate LaTeX documents through a standardized protocol with support for multiple document classes and package management. It provides tools for document structure analysis and file organization to streamline the generation of professional academic papers.827-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read current US Visa Bulletin final action and filing dates for China- and India-born EB-1 through EB-3 applicants, along with the chart USCIS accepts for I-485 filing that month. Agents can also subscribe themselves to signed push events, so they alert users when a priority date advances instead of being asked.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI clients to perform hybrid RAG searches over MPEP/USC/CFR patent regulations and BigQuery searches across 100M+ patents, along with automated claims analysis and diagram generation. It exposes tools for prior art search, 35 USC 112 compliance checks, and patent-style figure creation.-
- FlicenseNot gradedqualityAmaintenanceEnables patent-rule lookup with citations over MPEP/USC/CFR via hybrid vector, lexical, and reranked search, plus prior-art searching across 100M+ patents through Google BigQuery. Also runs automated 35 USC 112 compliance checks on draft claims and applications and generates patent-style diagrams and flowcharts.-