Appearance
Connect to Opensure MCP
MCP is the backbone. It connects your database to AI tools without your data ever leaving your machine.
Time: 10 minutes | Difficulty: Intermediate
What You'll Need
- Node.js 18+
- A Supabase account (free tier works)
- A terminal
The Security Model
Before we start: your credentials never leave your machine.
- ✅ API key validates your tenant access
- ✅ Database URL stays in your local
.env - ❌ Opensure never sees your database password
- ❌ Client data never touches our servers
Open source. Auditable. Your IT team can verify.
Step 1: Get Your API Key
- Go to app.opensure.dev
- Sign up or log in
- Navigate to Settings → API Keys
- Click Generate New API Key
- Copy it (starts with
osk_)
Save this somewhere secure. You'll need it shortly.
Step 2: Set Up Supabase
- Go to supabase.com
- Create a new project
- Wait for provisioning (~2 minutes)
- Go to Settings → Database
- Copy the Connection string (URI)
- Replace
[YOUR-PASSWORD]with your actual password
Example:
postgresql://postgres:[email protected]:5432/postgresStep 3: Apply the Schema
- In Opensure dashboard, go to Settings → Database
- Click Download Schema SQL
- In Supabase, go to SQL Editor
- Paste the schema and run it
- Verify tables were created
Step 4: Install MCP Server
bash
npm install -g @opensure/mcp-server-stdioVerify it worked:
bash
opensure-mcp --versionStep 5: Configure Your Environment
Create a .env file in your project:
bash
OPENSURE_API_KEY=osk_your_key_here
DATABASE_URL=postgresql://postgres:[email protected]:5432/postgresThese stay on YOUR machine. Never committed. Never sent anywhere.
Step 6: Connect Claude Desktop
Edit your Claude config file:
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{
"mcpServers": {
"opensure": {
"command": "opensure-mcp",
"env": {
"OPENSURE_API_KEY": "osk_your_key_here",
"DATABASE_URL": "postgresql://..."
}
}
}
}Restart Claude Desktop.
Step 7: Test It
Open Claude Desktop and try:
List my insurance clientsIf it responds with data from your database, you're connected.
Available MCP Tools
Once connected, Claude can use:
| Tool | What it does |
|---|---|
client.create | Create a new client |
client.list | List all clients |
client.get | Get client by ID |
policy.create | Create a policy |
policy.list | List all policies |
policy.get | Get policy by ID |
What Gets Sent to Opensure
Let's be explicit:
- ✅ API key (validates your tenant)
- ✅ Usage metrics (for billing)
- ❌ Database credentials
- ❌ Client data
- ❌ Policy data
Your data stays in your Supabase. Period.
Troubleshooting
"Invalid API key"
- Check for extra spaces or line breaks
- Verify the key starts with
osk_ - Generate a new key if needed
"Database connection failed"
- Verify the connection string is correct
- Check your Supabase project is active (not paused)
- Make sure the password is URL-safe (no special characters breaking it)
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
Stuck? Email [email protected] — we actually reply.
