# How to integrate Synthflow ai MCP with Claude Code

```json
{
  "title": "How to integrate Synthflow ai MCP with Claude Code",
  "toolkit": "Synthflow ai",
  "toolkit_slug": "synthflow_ai",
  "framework": "Claude Code",
  "framework_slug": "claude-code",
  "url": "https://composio.dev/toolkits/synthflow_ai/framework/claude-code",
  "markdown_url": "https://composio.dev/toolkits/synthflow_ai/framework/claude-code.md",
  "updated_at": "2026-05-12T10:27:46.013Z"
}
```

## Introduction

Manage your Synthflow 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:
- Via [Composio Connect](https://dashboard.composio.dev/login?utm_source=toolkits&utm_medium=framework_template&utm_campaign=claude-code&utm_content=composio_connect&next=%2F~%2Forg%2Fconnect%2Fclients%2Fclaude-code) - Direct and easiest approach
- Via [Composio SDK](https://docs.composio.dev/docs?utm_source=toolkits&utm_medium=framework_template&utm_campaign=claude-code&utm_content=composio_sdk) - Programmatic approach with more control

## Also integrate Synthflow ai with

- [OpenAI Agents SDK](https://composio.dev/toolkits/synthflow_ai/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/synthflow_ai/framework/claude-agents-sdk)
- [Claude Cowork](https://composio.dev/toolkits/synthflow_ai/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/synthflow_ai/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/synthflow_ai/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/synthflow_ai/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/synthflow_ai/framework/cli)
- [Google ADK](https://composio.dev/toolkits/synthflow_ai/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/synthflow_ai/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/synthflow_ai/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/synthflow_ai/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/synthflow_ai/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/synthflow_ai/framework/crew-ai)

## TL;DR

- 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.

## Connect Synthflow ai to Claude Code

### Connecting Synthflow ai to Claude Code using Composio
1. Add the Composio MCP to Claude

```bash
claude mcp add --scope user --transport http composio https://connect.composio.dev/mcp
```

## What is Claude Code?

Claude Code is Anthropic's command line developer tool that lets you use Claude directly inside your terminal. Instead of switching between your editor, browser, and chat, you can stay in your project folder and ask Claude to help you build, debug, refactor, and understand code right where you're working.
Key features include:
- Terminal-Native Experience: Work with Claude directly in your command line without switching contexts
- MCP Support: Built-in support for Model Context Protocol servers to extend Claude's capabilities
- Project Context: Claude understands your project structure and can read, write, and modify files
- Interactive Development: Ask questions, debug code, and get help in real-time while coding
- Multi-Platform: Works on macOS, Linux, WSL, and Windows

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

The Synthflow 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 Synthflow ai account. It provides structured and secure access to your voice automation tools, so your agent can perform actions like managing voice assistants, handling teams, retrieving phone numbers, and automating call center operations on your behalf.
- AI assistant management: Create, list, update, or delete AI-powered voice assistants to tailor customer interactions and automate call flows as needed.
- Team creation and configuration: Set up new teams, modify existing ones, or remove teams to optimize your call center's routing and operational structure.
- Knowledge base integration: Retrieve and manage knowledge base details to ensure your assistants have accurate, up-to-date information for conversations.
- Phone number administration: Fetch and organize phone numbers linked to your workspace, making it easy to assign or reassign numbers for inbound and outbound campaigns.
- Comprehensive assistant and team insights: Access detailed metadata and configuration for both assistants and teams, streamlining oversight and decision-making for your AI-powered operations.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `SYNTHFLOW_AI_ADD_KB_SOURCE_DOCUMENT` | Add document to knowledge base source | Tool to add a document to a knowledge base source. Use when you need to attach PDF files, web pages, or text content to an existing knowledge base. |
| `SYNTHFLOW_AI_ATTACH_ACTIONS_TO_AGENT` | Attach Actions to Agent | Tool to attach one or more actions to an agent. Use when you need to configure an agent with specific actions by providing the agent's model_id and an array of action IDs. |
| `SYNTHFLOW_AI_ATTACH_CONTACT_TO_MEMORY_STORE` | Attach contact to memory store | Tool to attach a contact to a memory store. Use when you need to associate a specific contact with a memory store for persistent data storage. |
| `SYNTHFLOW_AI_ATTACH_KNOWLEDGE_BASE_TO_AGENT` | Attach knowledge base to agent | Tool to attach a knowledge base to an agent. Use when you need to connect a knowledge base to a specific AI assistant by providing both IDs. |
| `SYNTHFLOW_AI_ATTACH_MEMORY_STORE_TO_AGENT` | Attach memory store to agent | Tool to attach a memory store to an agent. Use when you need to connect a memory store resource to a specific assistant for knowledge retrieval. |
| `SYNTHFLOW_AI_CREATE_ACTION` | Create Action | Tool to create a new action in Synthflow AI. Use when you need to configure an action such as real-time booking, information extraction, live transfer, SMS sending, custom HTTP calls, or custom evaluations. Exactly one action type must be specified in the request. |
| `SYNTHFLOW_AI_CREATE_ASSISTANT` | Create Assistant | Tool to create a new assistant. Use when you need to initialize a Synthflow AI assistant by specifying its name, type, and agent configuration. |
| `SYNTHFLOW_AI_CREATE_CONTACT` | Create a contact | Tool to create a new contact in Synthflow AI. Use when you need to add a contact with name and phone number. |
| `SYNTHFLOW_AI_CREATE_KNOWLEDGE_BASE` | Create knowledge base | Tool to create a new knowledge base and return its ID. Use when you need to set up a knowledge repository for retrieval-augmented generation (RAG) in assistants. |
| `SYNTHFLOW_AI_CREATE_MEMORY_STORE` | Create memory store | Tool to create a new memory store. Use when you need to initialize a knowledge repository for storing conversation history, customer data, or other contextual information. |
| `SYNTHFLOW_AI_CREATE_PHONE_BOOK` | Create Phone Book | Tool to create a new phone book. Use when you need to create a contact list for organizing phone numbers in Synthflow AI. |
| `SYNTHFLOW_AI_CREATE_PHONE_BOOK_ENTRY` | Create phone book entry | Tool to create a phone book entry. Use when you need to add a new phone number with a transfer condition to an existing phone book. |
| `SYNTHFLOW_AI_CREATE_SIMULATION_CASE` | Create Simulation Case | Tool to create a new simulation case. Use when you need to set up test scenarios for evaluating assistant behavior against defined success criteria. |
| `SYNTHFLOW_AI_CREATE_SIMULATION_SCENARIO` | Create a simulation scenario | Tool to create a new simulation scenario. Use when you need to define a template for generating test cases to ensure coverage of specific situations. |
| `SYNTHFLOW_AI_CREATE_SIMULATION_SUITE` | Create a new simulation suite | Tool to create a new simulation suite attached to a specific agent. Use when you need to set up test scenarios for an agent. The suite can only execute on the agent specified by model_id. |
| `SYNTHFLOW_AI_CREATE_TEAM` | Create a new team | Tool to create a new team. Use when you need to programmatically set up a Synthflow AI assistant group with routing rules. |
| `SYNTHFLOW_AI_DELETE_ACTION` | Delete an action | Tool to delete an existing action. Use after confirming the action ID to permanently remove it. |
| `SYNTHFLOW_AI_DELETE_ASSISTANT` | Delete an assistant | Tool to delete an existing AI assistant. Use after confirming the assistant ID. Example: Delete assistant with ID 'assistant_123'. |
| `SYNTHFLOW_AI_DELETE_CHAT` | Delete a chat session | Tool to delete a chat session. Use when you need to remove an existing chat by its ID. Confirm the chat ID before calling. |
| `SYNTHFLOW_AI_DELETE_CONTACT` | Delete a contact | Tool to delete an existing contact. Use after confirming the contact ID. |
| `SYNTHFLOW_AI_DELETE_KNOWLEDGE_BASE` | Delete knowledge base | Tool to delete an existing knowledge base. Use after confirming the knowledge base ID to permanently remove it. |
| `SYNTHFLOW_AI_DELETE_KNOWLEDGE_BASE_SOURCE` | Delete a knowledge base source | Tool to delete a source from a knowledge base. Use when you need to remove a specific source from a knowledge base after confirming both IDs. |
| `SYNTHFLOW_AI_DELETE_MEMORY_STORE` | Delete a memory store | Tool to delete a memory store. Use when you need to remove a memory store after confirming its ID. |
| `SYNTHFLOW_AI_DELETE_PHONE_BOOK` | Delete a phone book | Tool to delete an existing phone book. Use when you need to remove a Synthflow AI phone book after it's no longer needed. Confirm the phone book ID before calling. |
| `SYNTHFLOW_AI_DELETE_PHONE_BOOK_ENTRY` | Delete a phone book entry | Tool to delete a phone book entry. Use when you need to remove a specific entry from a phone book. Confirm both phone_book_id and entry_id before calling. |
| `SYNTHFLOW_AI_DELETE_SIMULATION_CASE` | Delete a simulation case | Tool to delete a simulation case by ID. Use after confirming the simulation case ID to remove it permanently. |
| `SYNTHFLOW_AI_DELETE_SIMULATION_SCENARIO` | Delete a simulation scenario | Tool to delete an existing simulation scenario. Use after confirming the scenario ID. Example: Delete simulation scenario with ID '41fc8c4a-b372-4309-813a-545505b2d0e5'. |
| `SYNTHFLOW_AI_DELETE_SIMULATION_SUITE` | Delete a simulation suite | Tool to delete a simulation suite by ID. Use when you need to remove a simulation suite that is no longer needed. Confirm the suite ID before calling. |
| `SYNTHFLOW_AI_DELETE_SUBACCOUNT` | Delete a subaccount | Tool to delete an existing subaccount. Use after confirming the subaccount ID. Example: Delete subaccount with ID 'test_subaccount_id_12345'. |
| `SYNTHFLOW_AI_DELETE_TEAM` | Delete a team | Tool to delete an existing team. Use when you need to remove a Synthflow AI team after it's no longer needed. Confirm the team ID before calling. |
| `SYNTHFLOW_AI_DETACH_ACTION` | Detach actions from assistant | Tool to detach one or more actions from an AI assistant. Use when you need to remove specific actions from an agent's configuration. |
| `SYNTHFLOW_AI_DETACH_KNOWLEDGE_BASE` | Detach knowledge base | Tool to detach a knowledge base from an AI assistant. Use when you need to remove a knowledge base association from an agent. |
| `SYNTHFLOW_AI_DETACH_MEMORY_STORE_CONTACT` | Detach contact from memory store | Tool to detach a contact from a memory store. Use when you need to remove a contact from a specific memory store. |
| `SYNTHFLOW_AI_DETACH_MEMORY_STORE_FROM_AGENT` | Detach memory store from agent | Tool to detach a memory store from an agent. Use when you need to remove a memory store from a specific agent/assistant. |
| `SYNTHFLOW_AI_EXECUTE_SIMULATION_SUITE` | Execute simulation suite | Tool to execute all test cases in a simulation suite. The suite runs on the target agent (must match the suite's model_id). Use when you need to validate an agent's performance against pre-configured test scenarios. |
| `SYNTHFLOW_AI_EXPORT_ANALYTICS` | Export analytics data | Tool to export analytics data for calls within a specified date range. Use when you need to retrieve call analytics, filter by assistant/agent, call type, or time period. Defaults to past 7 days if no dates specified; maximum date range is 120 days. |
| `SYNTHFLOW_AI_GET_ACTION` | Get action metadata | Tool to retrieve metadata about a specific action by its ID. Use when you need to inspect an action's configuration and parameters. |
| `SYNTHFLOW_AI_GET_ASSISTANT` | Get AI assistant details | Tool to retrieve details of a specific AI assistant. Use after confirming the assistant's ID to fetch its configuration and metadata. |
| `SYNTHFLOW_AI_GET_CALL` | Get phone call details | Tool to retrieve the transcript and detailed metadata for a specific phone call. Use when you need to access call recordings, transcripts, duration, or telephony details for a completed call. |
| `SYNTHFLOW_AI_GET_CONTACT` | Get contact details | Tool to retrieve details of a specific contact by its ID. Use when you need to fetch contact information. |
| `SYNTHFLOW_AI_GET_KNOWLEDGE_BASE` | Get knowledge base | Tool to retrieve details of a specific knowledge base by its ID. Use after confirming the knowledge base ID to fetch its metadata. |
| `SYNTHFLOW_AI_GET_MEMORY_STORE` | Get memory store | Tool to retrieve details of a specific memory store by its ID. Use when you need to fetch metadata and configuration of an existing memory store. |
| `SYNTHFLOW_AI_GET_MEMORY_STORE_CONTACT_DATA` | Get memory store contact data | Tool to retrieve memory data for a specific contact in a memory store. Use when you need to fetch stored memory information associated with a particular contact. |
| `SYNTHFLOW_AI_GET_NUMBERS` | Get phone numbers | Tool to retrieve a list of phone numbers associated with a workspace. Use when you need to fetch numbers assigned to your account for a given workspace. |
| `SYNTHFLOW_AI_GET_SIMULATION` | Get simulation details | Tool to retrieve details of a specific simulation by ID. Use to fetch simulation results including timeline, recording, and success criteria evaluation after a simulation has been executed. |
| `SYNTHFLOW_AI_GET_SIMULATION_CASE` | Get Simulation Case | Tool to retrieve a simulation case by ID. Use when you need to fetch details of a specific simulation case including its prompt, success criteria, and metadata. |
| `SYNTHFLOW_AI_GET_SIMULATION_SCENARIO` | Get simulation scenario | Tool to retrieve a simulation scenario by ID. Use when you need to fetch details of a specific simulation scenario template. |
| `SYNTHFLOW_AI_GET_SIMULATION_SUITE` | Get simulation suite by ID | Tool to retrieve a simulation suite by ID. Use when you need to fetch details about a specific simulation suite including its test cases and associated agent information. |
| `SYNTHFLOW_AI_GET_SUBACCOUNT` | Get subaccount details | Tool to retrieve detailed metadata about a specific subaccount by ID. Use when you need to fetch subaccount information including permissions, subscription details, and members. |
| `SYNTHFLOW_AI_GET_TEAM` | Get team details | Tool to retrieve details of a specific team by its ID. Use after confirming the team exists to inspect its configuration. |
| `SYNTHFLOW_AI_INITIALIZE_ACTION` | Initialize Action | Tool to initialize a custom action with specified variables. Use when you have an action ID and need to initialize it with configuration variables. |
| `SYNTHFLOW_AI_LIST_ACTIONS` | List actions | Tool to list all actions in the workspace. Use when you need to retrieve a paginated list of available actions and their configurations. |
| `SYNTHFLOW_AI_LIST_ASSISTANTS` | List AI assistants | Tool to list all AI assistants associated with the account. Use when you need to retrieve a paginated list of assistants. |
| `SYNTHFLOW_AI_LIST_CALLS` | List call history | Tool to retrieve call history (call logs) with filtering to check outcomes/statuses after placing calls. Use after making voice calls to list recent calls for a model, filter by phone number/time window, and confirm outcomes like completed/no-answer/busy/failed. |
| `SYNTHFLOW_AI_LIST_CHATS` | List chats | Tool to retrieve a list of chats, optionally filtered by agent ID. Use when you need to view chat history or check recent conversations. |
| `SYNTHFLOW_AI_LIST_CONTACTS` | List contacts | Tool to retrieve a list of contacts with optional search filtering. Use when you need to list all contacts or search for specific contacts by phone number. |
| `SYNTHFLOW_AI_LIST_MEMORY_STORES` | List memory stores | Tool to list memory stores with optional filtering by title. Use when you need to retrieve all memory stores in a workspace, optionally filtered by search term. |
| `SYNTHFLOW_AI_LIST_PHONE_BOOKS` | List Phone Books | Tool to list all phone books in your workspace. Use when you need to retrieve all phone books for organizing contacts in Synthflow AI. |
| `SYNTHFLOW_AI_LIST_SIMULATION_CASES` | List Simulation Cases | Tool to list simulation cases with pagination and optional filtering by name or type. Use when you need to retrieve simulation cases for testing agent behavior. |
| `SYNTHFLOW_AI_LIST_SIMULATION_CASES_BY_AGENT` | List simulation cases by agent | Tool to list all simulation cases created for a specific agent. Use when you need to retrieve test scenarios associated with a particular agent ID. |
| `SYNTHFLOW_AI_LIST_SIMULATIONS` | List simulations | Tool to list simulations with pagination and optional filters. Use when you need to retrieve simulation records, optionally filtered by session ID, status, date range, or target agent. |
| `SYNTHFLOW_AI_LIST_SIMULATION_SCENARIOS` | List simulation scenarios | Tool to list simulation scenarios with pagination and optional filtering. Use when you need to retrieve simulation scenario templates with support for search by name and date range filtering. |
| `SYNTHFLOW_AI_LIST_SIMULATION_SESSIONS` | List simulation sessions | Tool to list simulation sessions with pagination and optional filters. Use when you need to retrieve simulation sessions, optionally filtered by target agent, date range, or paginated results. |
| `SYNTHFLOW_AI_LIST_SIMULATION_SUITES` | List simulation suites | Tool to list simulation suites with pagination and optional filtering. Use when you need to retrieve simulation suites, optionally filtered by model IDs, date range, or search term. |
| `SYNTHFLOW_AI_LIST_SUBACCOUNTS` | List subaccounts | Tool to list all subaccounts associated with the authenticated account. Use when you need to retrieve all subaccounts and their configurations. |
| `SYNTHFLOW_AI_LIST_TEAMS` | List teams | Tool to list assistant teams. Use when you need to retrieve all teams in a workspace. |
| `SYNTHFLOW_AI_LIST_VOICES` | List voices | Tool to list all text-to-speech voices in a workspace. Use when you need to retrieve voices available for TTS in a given workspace. |
| `SYNTHFLOW_AI_LIST_WEBHOOK_LOGS` | List webhook logs | Tool to retrieve paginated webhook logs with filtering and search capability. Use when you need to audit webhook delivery, check webhook statuses, troubleshoot failed webhooks, or search for specific webhook events by date range, status, type, or associated call/assistant. |
| `SYNTHFLOW_AI_MAKE_VOICE_CALL` | Make a voice call | Tool to initiate a real-time voice call via the AI agent. Use when you have the agent ID, customer name, and phone number ready. |
| `SYNTHFLOW_AI_START_SIMULATION` | Start Simulation | Tool to start a new simulation using a simulation case. Use when you need to execute a test scenario against an agent to validate its behavior and performance. |
| `SYNTHFLOW_AI_UPDATE_ACTION` | Update Action | Tool to update an existing action in Synthflow AI. Use when you need to modify an action's configuration such as real-time booking, information extraction, live transfer, SMS sending, custom HTTP calls, or custom evaluations. Exactly one action type must be specified in the request along with the action_id. |
| `SYNTHFLOW_AI_UPDATE_ASSISTANT` | Update Assistant | Tool to update an existing assistant’s settings. Use after confirming the assistant exists. Modify settings like name, phone, recording, webhook, or agent configuration. |
| `SYNTHFLOW_AI_UPDATE_CONTACT` | Update a contact | Tool to update an existing contact in Synthflow AI. Use when you need to modify contact details like name, phone, email, or metadata. |
| `SYNTHFLOW_AI_UPDATE_KNOWLEDGE_BASE` | Update knowledge base | Tool to update an existing knowledge base's name or usage conditions. Use after confirming the knowledge base exists. |
| `SYNTHFLOW_AI_UPDATE_MEMORY_STORE` | Update memory store | Tool to update an existing memory store's title and description. Use when you need to modify metadata of a memory store. |
| `SYNTHFLOW_AI_UPDATE_SIMULATION_CASE` | Update Simulation Case | Tool to update an existing simulation case. Use when you need to modify the name, prompt, success criteria, or evaluation method of a simulation case. |
| `SYNTHFLOW_AI_UPDATE_SIMULATION_SCENARIO` | Update a simulation scenario | Tool to update an existing simulation scenario. Use when you need to modify the name or description of a scenario template. |
| `SYNTHFLOW_AI_UPDATE_SIMULATION_SUITE` | Update an existing simulation suite | Tool to update an existing simulation suite. Use when you need to modify the name or agent model of a simulation suite. At least one of name or model_id must be provided. |
| `SYNTHFLOW_AI_UPDATE_TEAM` | Update an existing team | Tool to update an existing team. Use after confirming the team exists and you have new configuration values. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

The Synthflow ai MCP server is an implementation of the Model Context Protocol that connects Claude Code (and other AI assistants like Claude and Cursor) directly to your Synthflow ai account. It provides structured and secure access so Claude can perform Synthflow ai operations on your behalf.
With Composio's managed implementation, you don't have to create your own developer app. For production, if you're building an end product, we recommend using your own credentials. The managed server helps you prototype fast and go from 0-1 faster.

## Step-by-step Guide

### 1. Prerequisites

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

### 1. Install Claude Code

To install Claude Code, use one of the following methods based on your operating system:
```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
```

### 2. Set up Claude Code

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
```bash
cd your-project-folder
claude
```

### 3. Set up environment variables

Create a .env file in your project root with the following variables:
- COMPOSIO_API_KEY authenticates with Composio (get it from [Composio dashboard](https://dashboard.composio.dev/login?utm_source=toolkits&utm_medium=framework_template&utm_campaign=claude-code&utm_content=api_key&next=%2F~%2Forg%2Fconnect%2Fclients%2Fclaude-code))
- USER_ID identifies the user for session management (use any unique identifier)
```bash
COMPOSIO_API_KEY=your_composio_api_key_here
USER_ID=your_user_id_here
```

### 4. Install Composio library

No description provided.
```python
pip install composio-core python-dotenv
```

```typescript
npm install @composio/core dotenv
```

### 5. Generate Composio MCP URL

No description provided.
```python
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=["synthflow_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 synthflow_ai-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')
```

```typescript
import 'dotenv/config';
import { Composio } from '@composio/core';

const { COMPOSIO_API_KEY, USER_ID } = process.env;

if (!COMPOSIO_API_KEY || !USER_ID) {
  throw new Error('COMPOSIO_API_KEY and USER_ID required in .env');
}

const composioClient = new Composio({ apiKey: COMPOSIO_API_KEY });

const composioSession = await composioClient.create(USER_ID, {
  toolkits: ['synthflow_ai'],
});

const composioMcpUrl = composioSession?.mcp.url;

console.log(`MCP URL: ${composioMcpUrl}`);
console.log(`\nUse this command to add to Claude Code:`);
console.log(`claude mcp add --transport http synthflow_ai-composio "${composioMcpUrl}" --headers "X-API-Key:${COMPOSIO_API_KEY}"`);
```

### 6. Run the script and copy the MCP URL

No description provided.
```python
python generate_mcp_url.py
```

```typescript
node --loader ts-node/esm generate_mcp_url.ts
# or if using tsx
tsx generate_mcp_url.ts
```

### 7. Add Synthflow ai MCP to Claude Code

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 (synthflow_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.
```bash
claude mcp add --transport http synthflow_ai-composio "YOUR_MCP_URL_HERE" --headers "X-API-Key:YOUR_COMPOSIO_API_KEY"

# Then restart Claude Code
exit
claude
```

### 8. Verify the installation

Check that your Synthflow ai MCP server is properly configured.
- This command lists all MCP servers registered with Claude Code
- You should see your synthflow_ai-composio entry in the list
- This confirms that Claude Code can now access Synthflow ai tools
If everything is wired up, you should see your synthflow_ai-composio entry listed:
```bash
claude mcp list
```

### 9. Authenticate Synthflow ai

The first time you try to use Synthflow ai tools, you'll be prompted to authenticate.
- Claude Code will detect that you need to authenticate with Synthflow ai
- It will show you an authentication link
- Open the link in your browser (or copy/paste it)
- Complete the Synthflow ai authorization flow
- Return to the terminal and start using Synthflow ai through Claude Code
Once authenticated, you can ask Claude Code to perform Synthflow ai operations in natural language. For example:
- "Create a new AI assistant for customer support"
- "List all current voice assistants in my account"
- "Fetch details for team 'Sales Outreach'"

## Complete Code

```python
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=["synthflow_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 synthflow_ai-composio "{COMPOSIO_MCP_URL}" --headers "X-API-Key:{COMPOSIO_API_KEY}"')
```

```typescript
import 'dotenv/config';
import { Composio } from '@composio/core';

const { COMPOSIO_API_KEY, USER_ID } = process.env;

if (!COMPOSIO_API_KEY || !USER_ID) {
  throw new Error('COMPOSIO_API_KEY and USER_ID required in .env');
}

const composioClient = new Composio({ apiKey: COMPOSIO_API_KEY });

const composioSession = await composioClient.create(USER_ID, {
  toolkits: ['synthflow_ai'],
});

const composioMcpUrl = composioSession?.mcp.url;

console.log(`MCP URL: ${composioMcpUrl}`);
console.log(`\nUse this command to add to Claude Code:`);
console.log(`claude mcp add --transport http synthflow_ai-composio "${composioMcpUrl}" --headers "X-API-Key:${COMPOSIO_API_KEY}"`);
```

## Conclusion

You've successfully integrated Synthflow ai with Claude Code using Composio's MCP server. Now you can interact with Synthflow ai directly from your terminal using natural language commands.
Key features of this setup:
- Terminal-native experience without switching contexts
- Natural language commands for Synthflow 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 Synthflow 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 Synthflow ai MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/synthflow_ai/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/synthflow_ai/framework/claude-agents-sdk)
- [Claude Cowork](https://composio.dev/toolkits/synthflow_ai/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/synthflow_ai/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/synthflow_ai/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/synthflow_ai/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/synthflow_ai/framework/cli)
- [Google ADK](https://composio.dev/toolkits/synthflow_ai/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/synthflow_ai/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/synthflow_ai/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/synthflow_ai/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/synthflow_ai/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/synthflow_ai/framework/crew-ai)

## Related Toolkits

- [Aeroleads](https://composio.dev/toolkits/aeroleads) - Aeroleads is a B2B lead generation platform for finding business emails and phone numbers. Grow your sales pipeline faster with powerful prospecting tools.
- [Autobound](https://composio.dev/toolkits/autobound) - Autobound is an AI-powered sales engagement platform that crafts hyper-personalized outreach and insights. It helps sales teams boost response rates and close more deals through tailored content and recommendations.
- [Better proposals](https://composio.dev/toolkits/better_proposals) - Better Proposals is a web-based tool for crafting and sending professional proposals. It helps teams impress clients and close deals faster with slick, easy-to-use templates.
- [Bidsketch](https://composio.dev/toolkits/bidsketch) - Bidsketch is a proposal software that helps businesses create professional proposals quickly and efficiently. It streamlines the proposal process, saving time while boosting client win rates.
- [Bolna](https://composio.dev/toolkits/bolna) - Bolna is an AI platform for building conversational voice agents. It helps businesses automate support and streamline interactions through natural, voice-powered conversations.
- [Botsonic](https://composio.dev/toolkits/botsonic) - Botsonic is a no-code AI chatbot builder for easily creating and deploying chatbots to your website. It empowers businesses to offer conversational experiences without writing code.
- [Botstar](https://composio.dev/toolkits/botstar) - BotStar is a comprehensive chatbot platform for designing, developing, and training chatbots visually on Messenger and websites. It helps businesses automate conversations and customer interactions without coding.
- [Callerapi](https://composio.dev/toolkits/callerapi) - CallerAPI is a white-label caller identification platform for branded caller ID and fraud prevention. It helps businesses boost customer trust while stopping spam, fraud, and robocalls.
- [Callingly](https://composio.dev/toolkits/callingly) - Callingly is a lead response management platform that automates immediate call and text follow-ups with new leads. It helps sales teams boost response speed and close more deals by connecting seamlessly with CRMs and lead sources.
- [Callpage](https://composio.dev/toolkits/callpage) - Callpage is a lead capture platform that lets businesses instantly connect with website visitors via callback. It boosts lead generation and increases your sales conversion rates.
- [Clearout](https://composio.dev/toolkits/clearout) - Clearout is an AI-powered service for verifying, finding, and enriching email addresses. It boosts deliverability and helps you discover high-quality leads effortlessly.
- [Clientary](https://composio.dev/toolkits/clientary) - Clientary is a platform for managing clients, invoices, projects, proposals, and more. It streamlines client work and saves you serious admin time.
- [Convolo ai](https://composio.dev/toolkits/convolo_ai) - Convolo ai is an AI-powered communications platform for sales teams. It accelerates lead response and improves conversion rates by automating calls and integrating workflows.
- [Delighted](https://composio.dev/toolkits/delighted) - Delighted is a customer feedback platform based on the Net Promoter System®. It helps you quickly gather, track, and act on customer sentiment.
- [Emelia](https://composio.dev/toolkits/emelia) - Emelia is an all-in-one B2B prospecting platform for cold-email, LinkedIn outreach, and prospect research. It streamlines outbound campaigns so you can find, engage, and warm up leads faster.
- [Findymail](https://composio.dev/toolkits/findymail) - Findymail is a B2B data provider offering verified email and phone contacts for sales prospecting. Enhance outreach with automated exports, email verification, and CRM enrichment.
- [Freshdesk](https://composio.dev/toolkits/freshdesk) - Freshdesk is customer support software with ticketing and automation tools. It helps teams streamline helpdesk operations for faster, better customer support.
- [Fullenrich](https://composio.dev/toolkits/fullenrich) - FullEnrich is a B2B contact enrichment platform that aggregates emails and phone numbers from 15+ data vendors. Instantly find and verify lead contact data to boost your outreach.
- [Gatherup](https://composio.dev/toolkits/gatherup) - GatherUp is a customer feedback and online review management platform. It helps businesses boost their reputation by streamlining how they collect and manage customer feedback.
- [Getprospect](https://composio.dev/toolkits/getprospect) - Getprospect is a business email discovery tool with LinkedIn integration. Use it to quickly find and verify professional email addresses.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Synthflow ai MCP?

With a standalone Synthflow ai MCP server, the agents and LLMs can only access a fixed set of Synthflow ai tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Synthflow 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 Synthflow ai tools.

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

Yes, absolutely. You can configure which Synthflow 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 Synthflow ai data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
