{"category":"Product","featureLink":"/integrations/claude-code","author":"unLocked Team","date":"2026-10-27","cluster":"claude-code-integration","id":"claude-code-5","slug":"how-to-connect-claude-code-to-unlocked-crm","title":"How To Connect Claude Code To unLocked CRM","excerpt":"Four steps from API key to a reviewed first script with Claude Code and unLocked CRM.","readTime":"4 min read","relatedSlugs":["claude-code-integration-announcement","claude-code-automations-for-insurance-agencies"],"tldr":"Create a scoped API key in unLocked, store it as an environment variable, point Claude Code at the public API reference or mcp.unlockedcrm.ai, then build and review a read-only script first.","citationHooks":["Connecting Claude Code to unLocked CRM takes a scoped API key and either the public API reference or the hosted connection server at mcp.unlockedcrm.ai."],"howToSteps":[{"name":"Create An API Key","text":"In unLocked on Pro, create a key scoped to the records the project needs."},{"name":"Point Claude Code At unLocked","text":"Share the public API reference or connect mcp.unlockedcrm.ai. Store the key in an environment variable."},{"name":"Describe The Tool","text":"Explain the report or automation in plain English and ask for a read-only version first."},{"name":"Review And Run","text":"Read the code, run it against a test contact, then add write steps one at a time."}],"faqs":[{"q":"Do I need to be a developer?","a":"You should be comfortable reading what Claude Code writes before running it. Otherwise use a plain-English connection such as Claude or ChatGPT."}],"content":"## 1. Create An API Key\n\nOn Pro or Max, create a key in unLocked scoped to the records the project needs.\n\n## 2. Point Claude Code At unLocked\n\nGive Claude Code the [public API reference](/api) or connect the hosted server at mcp.unlockedcrm.ai. Store the key in an environment variable; never paste it into a prompt.\n\n## 3. Describe The Tool\n\nAsk in plain English, such as \"list leads waiting for a reply, oldest first,\" and ask for a read-only version first.\n\n## 4. Review And Run\n\nRead the code, run it against a test contact, and add write steps only after the output is right.\n\n[Open the Claude Code integration](/integrations/claude-code)"}