Appearance
Installation Guide - For Developers
For: Developers building custom insurance applications with MCP
Time: 10 minutes
Security: Maximum - your credentials never leave your machine
What You'll Need
- Node.js 18+
- Supabase account
- Code editor
- Terminal/command line
Step 1: Create Opensure Account
- Go to https://app.opensure.dev
- Click "Sign Up"
- Enter email and password
- Verify email
- Login to dashboard
Step 2: Generate API Key
- Go to Settings → API Keys
- Click "Generate New API Key"
- Copy the key (starts with
osk_) - Save it securely - you'll need it for your
.envfile
This key validates your tenant access - it does NOT contain database credentials.
Step 3: Download Database Schema
- Go to Settings → Database
- Click "Download Schema SQL"
- Save
opensure_schema_v2.2.0.sqlto your project
Step 4: Set Up Your Supabase
- Go to https://supabase.com
- Create new project
- Wait for database provisioning
- Go to SQL Editor
- Open the downloaded
opensure_schema_v2.2.0.sql - Run the script
- Verify 35 tables created
Step 5: Get Your Database Connection String
- In Supabase, go to Settings → Database
- Copy "Connection string (URI)"
- Replace
[YOUR-PASSWORD]with your actual database password
Example:
postgresql://postgres:[email protected]:5432/postgres # pragma: allowlist secretStep 6: Install Opensure MCP Server
bash
npm install -g @opensure/mcp-server-stdioVerify installation:
bash
opensure-mcp --versionStep 7: Configure Local Environment
Create .env file in your project:
bash
# Opensure API Key (validates tenant access)
OPENSURE_API_KEY=osk_your_key_here # pragma: allowlist secret
# Your Supabase Database (NEVER sent to Opensure)
DATABASE_URL=postgresql://postgres:[email protected]:5432/postgres # pragma: allowlist secretCRITICAL: These credentials stay on YOUR machine only.
Step 8: Configure Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
json
{
"mcpServers": {
"opensure": {
"command": "opensure-mcp",
"env": {
"OPENSURE_API_KEY": "osk_your_key_here", # pragma: allowlist secret
"DATABASE_URL": "postgresql://..."
}
}
}
}Step 9: Test Your Setup
Restart Claude Desktop, then try:
List my insurance clientsClaude should respond with data from your Supabase database.
What Gets Sent to Opensure?
- ✅ API key (for tenant validation)
- ✅ Usage metrics (for billing)
- ❌ Database credentials (stay local)
- ❌ Client data (stays in your Supabase)
- ❌ Policy data (stays in your Supabase)
Your data never touches Opensure servers.
Available MCP Tools
client.create- Create insurance clientclient.get- Get client by IDclient.list- List all clientsclient.update- Update clientpolicy.create- Create policypolicy.get- Get policy by IDpolicy.list- List all policiespolicy.update- Update policy
Troubleshooting
"Invalid API key" error?
- Verify you copied the full key (starts with
osk_) - Check for extra spaces or line breaks
- Regenerate key if needed
"Database connection failed"?
- Verify DATABASE_URL is correct
- Check Supabase project is active
- Ensure password is correct (no special characters breaking URL)
MCP tools not appearing in Claude?
- Restart Claude Desktop after config changes
- Verify
opensure-mcpis in your PATH - Check Claude Desktop logs for errors
Next Steps
Need help? [email protected]
