Cursor IDE Setup
Connect HEIR's estate planning tools to Cursor IDE through the Model Context Protocol.
Quick Install
Open this link in Cursor to add HEIR to your MCP servers, then follow the manual setup below.
Manual Setup
Step 1: Get Your API Key
- Sign up at heir.es
- Go to Settings → Developer → API Keys
- Create a new key and copy it
Step 2: Configure MCP
Open your Cursor MCP configuration file:
macOS: ~/.cursor/mcp.json
Windows: %APPDATA%\Cursor\mcp.json
Add HEIR to your mcpServers:
{
"mcpServers": {
"heir": {
"url": "https://mcp.heir.es",
"apiKey": "heir_pk_your_key_here"
}
}
}Step 3: Set Environment Variable
For better security, use an environment variable instead of hardcoding your API key:
macOS/Linux:
export HEIR_API_KEY="heir_pk_your_key_here"Windows:
set HEIR_API_KEY=heir_pk_your_key_hereThen update your config to:
{
"mcpServers": {
"heir": {
"url": "https://mcp.heir.es"
}
}
}Step 4: Restart Cursor
Close and restart Cursor for the changes to take effect.
Testing the Connection
Once configured, test the integration by asking Cursor:
"What are the inheritance laws in Germany?"If working correctly, Cursor will:
- Automatically call the HEIR jurisdiction API
- Return detailed German inheritance law information
- Explain forced heirship rules and tax thresholds
Available Commands
With HEIR MCP connected, you can ask Cursor questions like:
Legal Research
- "What are the inheritance laws in [country]?"
- "List all supported jurisdictions"
- "Compare estate planning in USA vs Germany"
Smart Contracts
- "Generate an Ethereum inheritance contract"
- "Create a Solana will for my crypto assets"
- "What networks does HEIR support?"
Cost Estimation
- "How much does it cost to deploy on Ethereum?"
- "Compare gas costs across different networks"
- "Estimate deployment costs for Polygon"
Documentation
- "How do I handle NFTs in a will?"
- "Search HEIR docs for Islamic inheritance"
- "Show me estate planning best practices"
Advanced Configuration
Custom Timeout
{
"mcpServers": {
"heir": {
"url": "https://mcp.heir.es",
"timeout": 30000
}
}
}Proxy Settings
{
"mcpServers": {
"heir": {
"url": "https://mcp.heir.es",
"proxy": "http://proxy.company.com:8080"
}
}
}Custom Headers
{
"mcpServers": {
"heir": {
"url": "https://mcp.heir.es",
"headers": {
"User-Agent": "MyApp/1.0",
"Authorization": "Bearer heir_pk_your_key_here"
}
}
}
}Troubleshooting
Connection Issues
Problem: "Cannot connect to HEIR MCP server"
# Check if config file exists
ls ~/.cursor/mcp.json
# Validate JSON syntax
cat ~/.cursor/mcp.json | python -m json.toolProblem: "Authentication failed"
# Check API key format (should start with heir_pk_)
echo $HEIR_API_KEY
# Test API key directly
curl -H "Authorization: Bearer $HEIR_API_KEY" https://api.heir.es/api/jurisdictionsPerformance Issues
Problem: Slow responses
- Increase timeout in configuration
- Check your internet connection
- Verify you're not hitting rate limits
Problem: Rate limit errors
- Upgrade to Pro tier (10,000 req/hour)
- Monitor usage in your dashboard at heir.es
Debug Mode
Enable debug logging by setting environment variable:
export CURSOR_MCP_DEBUG=trueCheck Cursor's developer console (Cmd/Ctrl + Shift + I) for MCP logs.
Example Workflows
1. Estate Planning Research
User: "I need to create a will for assets in California"
Cursor with HEIR MCP:
1. Calls get_jurisdiction("usa-california")
2. Shows California Probate Code details
3. Explains community property rules
4. Suggests appropriate contract templates2. Cross-Border Estate Planning
User: "Compare inheritance taxes in USA, UK, and Germany"
Cursor with HEIR MCP:
1. Calls get_jurisdiction() for each country
2. Extracts tax rate information
3. Creates comparison table
4. Highlights key differences and planning opportunities3. Smart Contract Development
User: "Create a smart contract for my Ethereum estate"
Cursor with HEIR MCP:
1. Asks for asset details and beneficiaries
2. Calls generate_contract() with specifications
3. Returns Solidity code
4. Calls estimate_gas() for deployment costs
5. Provides deployment instructionsIntegration with Other Tools
HEIR MCP works alongside other Cursor integrations:
- GitHub Copilot: For general code assistance
- Codeium: For code completion
- HEIR MCP: For estate planning intelligence
Best Practices
Security
- ✅ Use environment variables for API keys
- ✅ Rotate API keys regularly
- ✅ Monitor usage dashboards
- ❌ Don't hardcode keys in config files
Performance
- ✅ Cache jurisdiction data locally when possible
- ✅ Use specific queries instead of broad searches
- ✅ Monitor rate limits in dashboard
Development
- ✅ Test with free tier before upgrading
- ✅ Use staging keys for development
- ✅ Set appropriate timeouts for your network
Support
Need help with Cursor integration?
- Cursor Documentation: cursor.sh/docs
- HEIR Support: support@heir.es
- Community: Telegram
- Issues: GitHub
