Quick Start
Get your API key
Go to your OpenCX Dashboard and navigate to Settings > API Keys > Create API Key. Copy the generated key.
Start using it
Ask your AI assistant something like:
- “List my recent chat sessions”
- “Create a new contact with email [email protected]”
- “Show me customer insights from this week”
- “Start a crawl on my documentation website”
Available Tools
The MCP server exposes the following tools organized by domain:Contacts
| Tool | Description |
|---|---|
list_contacts | List contacts with cursor pagination |
create_contact | Create a new contact (email, phone, name, custom data) |
update_contact | Update contact fields |
delete_contact | Delete a contact by ID |
Chat Sessions
| Tool | Description |
|---|---|
list_sessions | List sessions with filters (status, channel, date range) |
get_session | Get session details by ID |
create_session | Create a new chat session for a contact |
update_session | Update session status (resolve, close, reopen) |
send_message | Send a message in a session (as contact or agent) |
get_session_history | Get message history for a session |
AI Training
| Tool | Description |
|---|---|
list_training_scenarios | List all custom training scenarios |
create_training_scenario | Create a new training scenario |
update_training_scenario | Update an existing scenario |
delete_training_scenario | Delete a scenario |
Website Crawling
| Tool | Description |
|---|---|
list_datasources | List website datasources |
create_datasource | Create a new website datasource to crawl |
get_datasource | Get datasource details |
start_crawl | Trigger a crawl for a datasource |
get_crawl_status | Get status of a crawl job |
list_crawled_pages | List pages from a crawl |
Customer Insights
| Tool | Description |
|---|---|
list_insights | List customer insights with pagination |
get_insight | Get a specific insight |
resolve_insight | Mark an insight as resolved |
assign_insight | Assign an insight to a team |
list_insight_categories | List insight categories |
Teams
| Tool | Description |
|---|---|
list_teams | List all teams |
get_team | Get team details |
create_team | Create a new team |
update_team | Update a team |
delete_team | Delete a team |
list_team_members | List users in a team |
add_team_member | Add a user to a team |
remove_team_member | Remove a user from a team |
| Tool | Description |
|---|---|
send_email | Send AI-generated emails to contacts |
list_email_domains | List configured email domains |
add_email_domain | Add a custom sending domain |
verify_email_domain | Verify a domain’s DNS records |
AI Phone Agents
| Tool | Description |
|---|---|
list_phone_agents | List AI phone agents |
get_phone_agent | Get phone agent details |
create_phone_agent | Create a new AI phone agent |
update_phone_agent | Update phone agent config |
delete_phone_agent | Delete a phone agent |
make_outbound_call | Trigger an outbound AI call |
Outbound Sequences
| Tool | Description |
|---|---|
create_sequence | Create an outbound sequence |
get_sequence | Get sequence details |
update_sequence | Update a sequence |
start_sequence | Start a sequence |
cancel_sequence | Cancel a running sequence |
add_contacts_to_sequence | Enroll contacts in a sequence |
Organization
| Tool | Description |
|---|---|
get_organization | Get organization info |
update_organization | Update organization name |
CSAT
| Tool | Description |
|---|---|
list_csat_scores | List customer satisfaction scores |
get_csat_score | Get a specific CSAT score |
get_session_csat | Get CSAT score for a session |
Handoff Analytics
| Tool | Description |
|---|---|
get_handoff_analytics | Get AI-to-human handoff analytics (reasons, sentiment, trends) |
| Tool | Description |
|---|---|
send_whatsapp_template | Send a WhatsApp template message |
Configuration
| Environment Variable | Required | Default | Description |
|---|---|---|---|
OPENCX_API_KEY | Yes | — | Your OpenCX API key |
OPENCX_BASE_URL | No | https://api.open.cx | API base URL (for self-hosted instances) |
Requirements
- Node.js 18 or later
- An OpenCX account with an API key