Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CallHubshow me the active agents in my sales team"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Clone the repository:
git clone https://github.com/callhub/callhub-mcp.git cd callhub-mcpCreate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtConfigure 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:
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-pywith 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.
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
configureAccounttool to set up your CallHub credentials the first time
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
configureAccounttool
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:
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:
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
Creating and Managing Contacts
Agent Management
Using Multiple Accounts
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:
The AI should NEVER assume a restart has occurred
The AI should ALWAYS pause after suggesting code changes
The AI should explicitly ask the user to restart the server
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:
Use exportAgentActivationUrls or getAgentActivationExportUrl to obtain the export URL
User downloads the activation CSV file from the CallHub UI
Process the CSV using processAgentActivationCsv or related functions
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
.envfileBe 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.