How to integrate Insighto ai MCP with Claude Code

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Insighto ai logo
Claude Code logo
divider

Introduction

Manage your Insighto ai directly from Claude Code with zero worries about OAuth hassles, API-breaking issues, or reliability and security concerns.

You can do this in two different ways:

  1. Via Composio Connect - Direct and easiest approach
  2. Via Composio SDK - Programmatic approach with more control

Also integrate Insighto ai with

Why use Composio?

  • Only one MCP URL to connect multiple apps with Claude Code with zero auth hassles.
  • Programmatic tool calling allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Handling Large tool responses out of LLM context to minimize context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so LLMs aren't overwhelmed by tools you don't need.

Connecting Insighto ai to Claude Code using Composio

1. Add the Composio MCP to Claude

Terminal

2. Start Claude Code

bash
claude

3. Open your MCP list

bash
/mcp

4. Select Composio and click on Authenticate

Select Composio and click Authenticate

5. This will redirect you to the Composio OAuth page. Complete the flow by authorizing Composio and you're all set.

Composio OAuth authorization page
Composio authorization complete
Ask Claude to connect to your account and authenticate via the link

Supported Tools & Triggers

Tools
Add Intent To AssistantTool to add an intent to an assistant in Insighto.
Create AgencyTool to create a new agency in Insighto.
Create Contact Custom FieldTool to create a new contact custom field in Insighto.
Create FormTool to create a new form in Insighto.
Create IntentTool to create a new intent in Insighto.
Create PromptTool to create a new prompt in Insighto.
Create ProviderCreates a new AI provider configuration (e.
Create TagTool to create a new tag in Insighto.
Create ToolfunctionTool to create a new toolfunction in Insighto.
Create WebhookTool to create a new outbound webhook in Insighto.
Create WidgetTool to create a new widget with specified attributes.
Delete Assistant By IDTool to delete an assistant by its ID.
Delete Bulk Forms By IDsTool to delete multiple forms by their IDs in a single operation.
Delete Contacts In BulkTool to delete multiple contacts in bulk.
Delete Form By IDTool to delete a form by its unique identifier.
Delete Linked Assistant DatasourceTool to delete (unlink) a datasource from a linked assistant in Insighto.
Delete Link Tag Entity By IDTool to delete a link_tag_entity by its ID.
Delete Prompt By IDTool to delete a prompt by its unique ID.
Delete Provider By IDTool to delete an AI provider configuration by its unique identifier.
Delete Tag By IDTool to delete a tag by its unique identifier.
Delete Tool By IDTool to delete a tool by its ID.
Delete Toolfunction By IDTool to delete a toolfunction by its ID.
Delete Twilio Auth By IDTool to delete a Twilio authentication configuration by its ID.
Delete UserWhatsApp By IDTool to delete a UserWhatsApp by its ID.
Delete Widget By IDTool to delete a widget by its unique ID.
Get Agency Billing PlanTool to retrieve details of a specific agency billing plan by ID.
Get Agency Branding By IDTool to retrieve branding configuration for a specific agency by agency ID.
Get Agent ListTool to fetch a paginated list of agents.
Get Assistant By IDTool to retrieve details of a specific assistant by assistant ID.
Get Captured Form By Form IDTool to retrieve captured form submissions by form ID.
Get Contact By IDTool to retrieve details of a specific contact by contact ID.
Get Datasource By IDTool to retrieve details of a specific datasource by datasource ID.
Get Intent By IDTool to retrieve details of a specific intent by its ID.
Get List Of ContactsTool to fetch a paginated list of contacts.
Get List Of ConversationsTool to fetch a list of conversations.
Get List Of DatasourcesRetrieves a paginated list of data sources from Insighto AI.
Get List Of Data Sources Linked To Assistant IdTool to retrieve a paginated list of data sources linked to a specific assistant.
Get List Of Widgets Linked To Assistant IdTool to fetch a paginated list of widgets linked to a specific assistant.
Get Pricing For UserTool to retrieve pricing information for Insighto.
Get Prompt By IDTool to retrieve details of a specific prompt by prompt ID.
Get Provider By IDTool to retrieve details of a specific provider by provider ID.
Get Speechtotext ListTool to fetch a paginated list of available speech-to-text voice configurations.
Get Widget By IDTool to retrieve details of a specific widget by widget ID.
List ChannelsTool to retrieve a paginated list of channels.
Read Campaign Contact ListTool to retrieve a paginated list of contacts associated with a specific campaign.
Read Contact Custom Field ListTool to retrieve a list of custom fields associated with contacts.
Read Contact Sync Log ListTool to retrieve a paginated list of contact sync logs.
Read Intents ListTool to retrieve a list of all intents.
Read Tag ListTool to retrieve a paginated list of tags.
Read Tool Function Invoke Log ListTool to retrieve a paginated list of tool function invoke logs.
Read Tool Toolfunction ListTool to retrieve a paginated list of tool functions for a specific tool.
Read Twilio Auth ListTool to retrieve a paginated list of Twilio authentications.
Retrieve Linked Tool And UserTool to retrieve linked tool and user information for a specific tool.
Retrieve List Of User Custom VoiceTool to retrieve a paginated list of user custom voices.
Retrieve User Monthly Usages AggregationTool to retrieve user monthly usages aggregation data.
Retrieve Webhook LogTool to retrieve webhook logs for a specific webhook.
Send Messages To ContactsTool to send messages to a list of contacts in bulk.
Update Link Tool UserTool to update a link tool user by its ID.
Update Tool By IDTool to update a tool by its ID.
Update Toolfunction By IDTool to update an existing toolfunction by its ID.
Update Twilio Auth By IDTool to update a Twilio authentication configuration by its ID.
Update User ProfileTool to update a user profile in Insighto.
Update UserWhatsApp By IDTool to update a UserWhatsApp configuration by its ID.
Update Webhook By IDTool to update an outbound webhook by its unique ID.
Upsert Contact By Email Or Phone NumberTool to upsert (create or update) a contact in Insighto.

What is the Insighto ai MCP server, and what's possible with it?

The Insighto ai MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Insighto ai account. It provides structured and secure access to your conversational AI assets, so your agent can create new intents, manage contacts, analyze conversations, deploy widgets, and broadcast messages across channels on your behalf.

  • Intent creation and management: Easily add or review conversational intents to enhance your chatbots and voice agents, making them smarter and more responsive.
  • Bulk contact communication: Let your agent send messages to multiple contacts in bulk through WhatsApp or SMS, enabling efficient campaign blasts and customer updates.
  • Comprehensive contact and conversation insights: Retrieve full contact profiles, browse lists of contacts, and access detailed conversation metadata for analytics or personalized support.
  • Widget and provider deployment: Quickly create and configure new widgets and providers to extend your AI’s reach across new channels and platforms.
  • Datasource and metadata management: Fetch and inspect all data sources and custom contact fields, so your agent can sync, organize, or enrich customer data as needed.

Connecting Insighto ai via Composio SDK

Composio SDK is the underlying tech that powers Rube. It's a universal gateway that does everything Rube does but with much more programmatic control. You can programmatically generate an MCP URL with the app you need (here Insighto ai) for even more tool search precision. It's secure and reliable.

How the Composio SDK works

The Composio SDK follows a three-phase workflow:

  1. Discovery: Searches for tools matching your task and returns relevant toolkits with their details.
  2. Authentication: Checks for active connections. If missing, creates an auth config and returns a connection URL via Auth Link.
  3. Execution: Executes the action using the authenticated connection.

Step-by-step Guide

Prerequisites

Before starting, make sure you have:
  • Claude Pro, Max, or API billing enabled Anthropic account
  • Composio API Key
  • A Insighto ai account
  • Basic knowledge of Python or TypeScript

Install Claude Code

bash
# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash

# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

# Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

To install Claude Code, use one of the following methods based on your operating system:

Set up Claude Code

bash
cd your-project-folder
claude

Open a terminal, go to your project folder, and start Claude Code:

  • Claude Code will open in your terminal
  • Follow the prompts to sign in with your Anthropic account
  • Complete the authentication flow
  • Once authenticated, you can start using Claude Code
Claude Code initial setup showing sign-in prompt
Claude Code terminal after successful login

Set up environment variables

bash
COMPOSIO_API_KEY=your_composio_api_key_here
USER_ID=your_user_id_here

Create a .env file in your project root with the following variables:

  • COMPOSIO_API_KEY authenticates with Composio (get it from Composio dashboard)
  • USER_ID identifies the user for session management (use any unique identifier)

Install Composio library

pip install composio-core python-dotenv

Install the Composio Python library to create MCP sessions.

  • composio-core provides the core Composio functionality
  • python-dotenv loads environment variables from your .env file

Generate Composio MCP URL

import os
from composio import Composio
from dotenv import load_dotenv

load_dotenv()

COMPOSIO_API_KEY = os.getenv("COMPOSIO_API_KEY")
USER_ID = os.getenv("USER_ID")

composio_client = Composio(api_key=COMPOSIO_API_KEY)

composio_session = composio_client.create(
    user_id=USER_ID,
    toolkits=["insighto_ai"],
)

COMPOSIO_MCP_URL = composio_session.mcp.url

print(f"MCP URL: {COMPOSIO_MCP_URL}")
print(f"\nUse this command to add to Claude Code:")
print(f'claude mcp add --transport http insighto_ai-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')

Create a script to generate a Composio MCP URL for Insighto ai. This URL will be used to connect Claude Code to Insighto ai.

What's happening:

  • We import the Composio client and load environment variables
  • Create a Composio instance with your API key
  • Call create() to create a Tool Router session for Insighto ai
  • The returned mcp.url is the MCP server URL that Claude Code will use
  • The script prints this URL so you can copy it

Run the script and copy the MCP URL

python generate_mcp_url.py

Run your Python script to generate the MCP URL.

  • The script connects to Composio and creates a Tool Router session
  • It prints the MCP URL and the exact command you need to run
  • Copy the entire claude mcp add command from the output

Add Insighto ai MCP to Claude Code

bash
claude mcp add --transport http insighto_ai-composio "YOUR_MCP_URL_HERE" --headers "X-API-Key:YOUR_COMPOSIO_API_KEY"

# Then restart Claude Code
exit
claude

In your terminal, add the MCP server using the command from the previous step. The command format is:

  • claude mcp add registers a new MCP server with Claude Code
  • --transport http specifies that this is an HTTP-based MCP server
  • The server name (insighto_ai-composio) is how you'll reference it
  • The URL points to your Composio Tool Router session
  • --headers includes your Composio API key for authentication

After running the command, close the current Claude Code session and start a new one for the changes to take effect.

Verify the installation

bash
claude mcp list

Check that your Insighto ai MCP server is properly configured.

  • This command lists all MCP servers registered with Claude Code
  • You should see your insighto_ai-composio entry in the list
  • This confirms that Claude Code can now access Insighto ai tools

If everything is wired up, you should see your insighto_ai-composio entry listed:

Claude Code MCP list showing the toolkit MCP server

Authenticate Insighto ai

The first time you try to use Insighto ai tools, you'll be prompted to authenticate.

  • Claude Code will detect that you need to authenticate with Insighto ai
  • It will show you an authentication link
  • Open the link in your browser (or copy/paste it)
  • Complete the Insighto ai authorization flow
  • Return to the terminal and start using Insighto ai through Claude Code

Once authenticated, you can ask Claude Code to perform Insighto ai operations in natural language. For example:

  • "Send WhatsApp message to all new leads"
  • "Fetch conversation history for a specific contact"
  • "List all available chatbot intents today"

Complete Code

Here's the complete code to get you started with Insighto ai and Claude Code:

import os
from composio import Composio
from dotenv import load_dotenv

load_dotenv()

COMPOSIO_API_KEY = os.getenv("COMPOSIO_API_KEY")
USER_ID = os.getenv("USER_ID")

composio_client = Composio(api_key=COMPOSIO_API_KEY)

composio_session = composio_client.create(
    user_id=USER_ID,
    toolkits=["insighto_ai"],
)

COMPOSIO_MCP_URL = composio_session.mcp.url

print(f"MCP URL: {COMPOSIO_MCP_URL}")
print(f"\nUse this command to add to Claude Code:")
print(f'claude mcp add --transport http insighto_ai-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')

Conclusion

You've successfully integrated Insighto ai with Claude Code using Composio's MCP server. Now you can interact with Insighto ai directly from your terminal using natural language commands.

Key features of this setup:

  • Terminal-native experience without switching contexts
  • Natural language commands for Insighto ai operations
  • Secure authentication through Composio's managed MCP
  • Tool Router for dynamic tool discovery and execution

Next steps:

  • Try asking Claude Code to perform various Insighto ai operations
  • Add more toolkits to your Tool Router session for multi-app workflows
  • Integrate this setup into your development workflow for increased productivity

You can extend this by adding more toolkits, implementing custom workflows, or building automation scripts that leverage Claude Code's capabilities.

How to build Insighto ai MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Insighto ai MCP?

With a standalone Insighto ai MCP server, the agents and LLMs can only access a fixed set of Insighto ai tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Insighto ai and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Claude Code?

Yes, you can. Claude Code fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Insighto ai tools.

Can I manage the permissions and scopes for Insighto ai while using Tool Router?

Yes, absolutely. You can configure which Insighto ai scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Insighto ai data and credentials are handled as safely as possible.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.