instance-mcp

v0.2.3
instance-mcp Checked 4 days ago Published 4 days ago

Official Model Context Protocol (MCP) server for Instance AI Sales CRM

Official Model Context Protocol (MCP) server for Instance - The AI Sales CRM & Instagram Growth Engine. Connect Claude Desktop, Cursor, Windsurf, Claude Code, and custom AI agents natively to your Instance workspace. instance-mcp runs locally as a standard I/O bridge. It enables your local AI assistant to interact securely with your Instance CRM data and automations via your Instance API key:

Summary extracted from the README.

instance-mcp

Official Model Context Protocol (MCP) server for Instance - The AI Sales CRM & Instagram Growth Engine.

Connect Claude Desktop, Cursor, Windsurf, Claude Code, and custom AI agents natively to your Instance workspace.


What It Does

instance-mcp runs locally as a standard I/O bridge. It enables your local AI assistant to interact securely with your Instance CRM data and automations via your Instance API key:

  • Look up and search Instagram leads and qualification scores
  • Create, filter, and assign contacts to audience segments
  • Schedule Instagram feed posts, carousels, and reels
  • Trigger Instagram automation funnels
  • Inspect pipeline analytics and workspace metrics

All communication between your AI assistant and Instance happens over encrypted HTTPS calls authenticated with your private API key (inst_live_...).


Quick Start

You do not need to install this package manually. AI clients execute it on demand via npx:

npx -y instance-mcp

Setup Guide

1. Get Your API Key

  1. Sign in to your Instance workspace at tryinstance.vercel.app.
  2. Navigate to Dashboard -> Settings -> API Keys.
  3. Generate a new API key and copy the secret token (inst_live_...).

2. Claude Desktop

Add instance to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "instance": {
      "command": "npx",
      "args": ["-y", "instance-mcp"],
      "env": {
        "INSTANCE_API_KEY": "inst_live_your_secret_key_here",
        "INSTANCE_API_URL": "https://tryinstance.vercel.app"
      }
    }
  }
}

Restart Claude Desktop. You will see the hammer icon indicating Instance tools are active.


3. Cursor & Windsurf

In Cursor settings under Features -> MCP Servers:

  1. Click + Add New MCP Server.
  2. Set Name to instance.
  3. Set Type to command.
  4. Set Command to:
    npx -y instance-mcp
    
  5. Add Environment Variables:
    • INSTANCE_API_KEY: inst_live_your_secret_key_here
    • INSTANCE_API_URL: https://tryinstance.vercel.app

4. Claude Code CLI

Add the server directly from your terminal:

claude mcp add instance -- npx -y instance-mcp

Set your environment variables when prompted or in your shell profile.


5. Self-Hosted (Instance OSS)

If you are running the self-hosted Open Source version of Instance on your local machine or private server:

{
  "mcpServers": {
    "instance": {
      "command": "npx",
      "args": ["-y", "instance-mcp"],
      "env": {
        "INSTANCE_API_KEY": "inst_live_your_secret_key_here",
        "INSTANCE_API_URL": "http://localhost:4000"
      }
    }
  }
}

Available Tools

Tool Name Description
instance_workspace_info Inspect connected Instagram account details, username, and workspace metadata (alias: instance_get_workspace_info).
instance_get_tags List all custom lead tags configured in the workspace.
instance_create_tag Create a new lead tag in the workspace.
instance_delete_tag Delete a lead tag from the workspace.
instance_get_pipelines List all custom pipeline stages and tags in the workspace.
instance_get_automations List all Instagram automation flows with IDs and active status.
instance_get_automation_executions List recent execution runs for a specific automation flow.
instance_update_automation Pause, resume, or rename an automation flow.
instance_trigger_automation Trigger an Instagram automation funnel for a contact by ID or username.
instance_list_contacts List and filter leads by status, tag, qualification score, and date range.
instance_find_contact Look up a contact by Instagram username, email, or phone.
instance_get_contact Get full details of a single lead by contact ID.
instance_create_contact Create or sync a unified contact record in the CRM.
instance_update_contact Update a contact's name, email, phone, status, or tags.
instance_update_contact_status Update the deal pipeline stage or status for a lead.
instance_add_tags Add tags to an existing lead in the CRM.
instance_remove_tag Remove a specific tag from a contact.
instance_list_team_members List assignable teammates (OWNER, ADMIN, MAINTAINER) in the workspace.
instance_assign_contact Assign or unassign a contact/lead to a teammate by user ID.
instance_get_contact_messages Read Instagram DM message history for a specific contact.
instance_get_contact_executions See which automation flows were triggered for a specific contact.
instance_send_message Send an Instagram DM to a contact (enforces Meta 24-hour window).
instance_list_conversations List Instagram DM conversations with AI state, funnel stage, and last message.
instance_get_conversation_messages Read DM messages inside a conversation by conversation ID.
instance_toggle_conversation_ai Turn the AI Sales Agent ON or OFF for a conversation.
instance_add_conversation_note Add an internal team whisper note to a conversation.
instance_close_deal Mark a conversation's deal as closed/won.
instance_list_scheduled_posts View upcoming and past scheduled Instagram posts.
instance_schedule_post Schedule a feed post, carousel, story, or reel with media URLs and publish time.
instance_cancel_scheduled_post Cancel an upcoming scheduled Instagram post by ID.
instance_get_audience_lists List all audience segmentation groups with contact counts.
instance_create_audience_list Create a new audience segmentation list.
instance_query_audience_contacts Query contacts in an audience list with channel (email, phone, both) and score filters.
instance_assign_to_audience_list Assign contact IDs into an audience list.
instance_delete_audience_list Delete an audience list by ID.
instance_get_bio_page Get Bio Link page settings, links, products, and FAQs.
instance_update_bio_page Update Bio Link page display name, bio, location, or publish state.
instance_list_bio_links List all clickable links on your Bio Link page.
instance_add_bio_link Add a new clickable link button to your Bio Link page.
instance_delete_bio_link Remove a link from your Bio Link page.
instance_list_bio_products List all products on your Bio Link page.
instance_list_bio_leads List leads captured through your Bio Link page form.
instance_get_bio_analytics Get Bio Link page views, clicks, and lead conversion counts.
instance_get_analytics_overview Get workspace overview analytics (leads, DMs, conversions).
instance_get_analytics_funnel Get sales funnel stage counts for the last N days.
instance_get_instagram_media List recent Instagram posts and Reels on the connected account.
instance_get_story_mentions List people who mentioned your Instagram account in their Story.
instance_get_icebreakers Get current Instagram DM icebreaker buttons.
instance_update_icebreakers Update Instagram DM icebreaker buttons.
instance_list_webhooks List all registered webhook endpoints in the workspace.
instance_create_webhook Register a new webhook URL to receive real-time events.
instance_test_webhook Send a test ping to a registered webhook endpoint.
instance_delete_webhook Delete a registered webhook endpoint.

Environment Variables

Variable Required Default Description
INSTANCE_API_KEY Yes None Your Instance secret API key starting with inst_live_.
INSTANCE_API_URL No https://tryinstance.vercel.app Base API URL. For OSS self-hosters, set to http://localhost:4000.

License

Instance is open-source software licensed under the AGPL-3.0 LICENSE.