CallHub

CallHub

CallHub MCP is a Python-based tool that allows you to interact with the CallHub API through Claude. This tool provides a comprehensive set of functions for managing contacts, phonebooks, agents, teams, campaigns, and other CallHub resources.

Category
Visit Server

README

CallHub

A Claude-powered tool for managing CallHub resources via API

Overview

CallHub MCP is a Python-based tool that allows you to interact with the CallHub API through Claude. This tool provides a comprehensive set of functions for managing contacts, phonebooks, agents, teams, campaigns, and other CallHub resources.

Features

  • Account Management: Configure and manage multiple CallHub accounts
  • Contact Management: Create, retrieve, update, and delete contacts
  • Phonebook Management: Create and manage phonebooks and their contacts
  • Agent Management: Create, activate, and manage agents
  • Team Management: Create and manage teams and team memberships
  • Campaign Management: Manage call center, voice broadcast,P2P and SMS campaigns
  • DNC Management: Create and manage Do Not Call lists
  • Bulk Operations: Upload and process CSV files for bulk operations
  • Error Handling: Robust error handling with retries and rate limit awareness

Installation

Download Callhub & open in claude ( Requires Python 3.10 )

Prerequisites

  • Python 3.10+
  • An active CallHub account with API access
  • API credentials (username, API key, base URL)
  • Claude access with MCP capability

Setup

  1. Clone the repository:

    git clone https://github.com/callhub/callhub-mcp.git
    cd callhub-mcp
    
  2. Create a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Configure credentials using the setup wizard:

    python setup.py
    

Claude Configuration

To use the CallHub MCP with Claude, you need to add it to Claude's configuration:

  1. Add the MCP to Claude's Configuration File:

    • Locate your Claude configuration file
    • Add the following configuration:
    "callhub-mcp": {
      "command": "/path/to/callhub-mcp/.venv/bin/python",
      "args": [
        "/path/to/callhub-mcp/src/server.py"
      ]
    }
    

    Make sure to replace:

    • /path/to/callhub-mcp-py with the actual path where you cloned the repository

    Note: Claude will automatically start and manage the MCP server process. You don't need to manually start or stop it.

  2. Using the MCP in Claude:

    • After adding the configuration, Claude will automatically load the CallHub MCP
    • When you start a conversation with Claude, the CallHub tools will be available
    • You can use the configureAccount tool to set up your CallHub credentials the first time
  3. First-time Setup:

    • Once connected, ask Claude to configure your CallHub account:
      I need to set up my CallHub account credentials. Can you help me?
      
    • Claude will guide you through using the configureAccount tool
  4. Starting to Use the MCP:

    • Ask Claude about available functions:
      What CallHub tools are available?
      
    • Claude will show you the available tools and how to use them

Configuration

CallHub MCP supports multiple accounts with descriptive names. Configuration is stored in the .env file:

# Default account
CALLHUB_DEFAULT_USERNAME=your_username
CALLHUB_DEFAULT_API_KEY=your_api_key
CALLHUB_DEFAULT_BASE_URL=https://api-na1.callhub.io

# Personal account
CALLHUB_PERSONAL_USERNAME=personal_username
CALLHUB_PERSONAL_API_KEY=personal_api_key
CALLHUB_PERSONAL_BASE_URL=https://api-na1.callhub.io

# Client account
CALLHUB_CLIENT_USERNAME=client_username
CALLHUB_CLIENT_API_KEY=client_api_key
CALLHUB_CLIENT_BASE_URL=https://api-na1.callhub.io

You can use any descriptive name for your accounts (letters, numbers, and underscores only). The account name is extracted from the environment variable name - for example, CALLHUB_PERSONAL_API_KEY creates an account named "personal" that you can reference in API calls.

To use a specific account for an API call, just mention the account name to Claude in natural language:

Claude, can you list the teams in my personal account?

If no account is specified, the "default" account is used.

Example Conversations with Claude

Here are some example prompts to get started with Claude and the CallHub MCP:

Configuring an Account

I need to set up my CallHub account. My username is user@example.com, my API key is abc123def456, and the base URL is https://api-na1.callhub.io. Can you configure this for me?

Creating and Managing Contacts

I'd like to create a new contact with phone number 1234567890, first name John, and last name Doe. After that, can you add this contact to a new phonebook called "VIP Customers"?

Agent Management

Can you show me all the teams in my CallHub account? I'd like to create a new agent in the "Sales" team.

Using Multiple Accounts

First, I need to check the teams in my client account. Then, create a similar team structure in my personal account.

Server Restart Guidelines

The CallHub MCP server must be restarted manually by the user after any code changes. If you're using Claude or another AI assistant to modify this code:

  1. The AI should NEVER assume a restart has occurred
  2. The AI should ALWAYS pause after suggesting code changes
  3. The AI should explicitly ask the user to restart the server
  4. The AI should wait for confirmation before proceeding with testing

This is critical for ensuring code changes take effect before testing.

Error Handling

The MCP implements robust error handling with automatic retries for transient errors and rate limiting. Error responses include detailed information about what went wrong and potential solutions.

Agent Activation Workflow

When new agents are created via the API, they exist in a 'pending' state and must verify their email before becoming active. These pending agents are:

  • NOT visible through the standard listAgents API (even with include_pending=true)
  • NOT manageable through direct API calls
  • Only accessible through the activation exports workflow

To activate pending agents:

  1. Use exportAgentActivationUrls or getAgentActivationExportUrl to obtain the export URL
  2. User downloads the activation CSV file from the CallHub UI
  3. Process the CSV using processAgentActivationCsv or related functions
  4. Activate agents using activateAgentsWithPassword or activateAgentsWithBatchPassword

IMPORTANT: NEVER create new test agents to check activation status - this workflow is specifically designed because pending agents are not accessible through direct API calls.

Security Considerations

  • Store your credentials securely
  • Do not share your .env file
  • Be cautious with browser automation features
  • Follow the principle of least privilege when creating API keys

Troubleshooting

  • If you encounter rate limits, the tool will automatically retry with backoff
  • For persistent errors, check your credentials and network connectivity
  • Log files are written to logs directory with automatic rotation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured