HomeDocumentation

MCP Server Integration

ChatReact implements the Model Context Protocol (MCP), allowing you to connect your ChatReact account to AI assistants like Claude Desktop, Cursor, and other MCP-compatible tools.

What is MCP?

The Model Context Protocol is an open standard that enables AI assistants to interact with external services and data sources. With ChatReact's MCP integration, you can:

  • Manage chatbots directly from your AI assistant
  • Create and update FAQs using natural language
  • View analytics and chat history
  • Control the Improvement Agent for chatbot optimization
  • Handle live chat sessions without leaving your AI tool

Getting Started

1. Generate an API Key

  1. Navigate to your DashboardSettingsAPI Keys
  2. Click Create API Key
  3. Give your key a descriptive name (e.g., "Claude Desktop")
  4. Copy the generated key (starts with cr_)

Store your API key securely. It cannot be retrieved after creation.

2. Configure Your MCP Client

Claude Desktop

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "chatreact": {
      "url": "https://www.chatreact.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer cr_your_api_key_here"
      }
    }
  }
}

Cursor IDE

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "chatreact": {
      "url": "https://www.chatreact.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer cr_your_api_key_here"
      }
    }
  }
}

Local Development (stdio)

For local development, you can use our npm package:

npm install -g @chatreact/mcp

Configure in your MCP client:

{
  "mcpServers": {
    "chatreact": {
      "command": "chatreact-mcp",
      "args": ["--api-key", "cr_your_api_key_here"]
    }
  }
}

3. Restart Your AI Assistant

After saving the configuration, restart Claude Desktop or Cursor to establish the connection.

Available Tools

ChatReact MCP provides over 30 tools organized into categories:

Company & Team Management

ToolDescription
company_listList all companies you have access to
company_getGet details of a specific company
company_team_listList team members of a company

Chatbot Management

ToolDescription
chatbot_listList all chatbots in a company
chatbot_getGet chatbot details and configuration
chatbot_createCreate a new chatbot
chatbot_updateUpdate chatbot settings
chatbot_get_instructionsGet core instructions for a chatbot
chatbot_add_instructionAdd a new core instruction

FAQ Management

ToolDescription
faq_listList all FAQs for a chatbot
faq_getGet FAQ details
faq_createCreate a new FAQ
faq_updateUpdate an existing FAQ
faq_deleteDelete an FAQ
faq_categories_listList FAQ categories
faq_suggestGenerate AI-suggested FAQs

Knowledge Base

ToolDescription
knowledge_list_documentsList uploaded documents
knowledge_list_websitesList crawled websites
knowledge_crawl_websiteStart a website crawl
knowledge_get_crawl_statusCheck crawl progress

Analytics

ToolDescription
analytics_overviewGet overall performance metrics
analytics_chat_volumeGet chat volume over time
analytics_feedbackGet feedback and ratings
analytics_chat_historyBrowse chat sessions
analytics_get_sessionGet detailed session data

Improvement Agent

ToolDescription
improvement_list_sessionsList improvement sessions
improvement_start_sessionStart a new analysis session
improvement_list_proposalsList improvement proposals
improvement_get_proposalGet proposal details
improvement_create_proposalCreate a custom proposal
improvement_simulate_proposalPreview proposal effects
improvement_apply_proposalApply a proposal
improvement_reject_proposalReject a proposal

Live Chat

ToolDescription
livechat_get_queueGet waiting chat sessions
livechat_get_active_sessionsList active human agent sessions
livechat_get_sessionGet session details
livechat_assign_sessionAssign yourself to a session
livechat_send_messageSend a message as agent
livechat_close_sessionClose a chat session
livechat_check_availabilityCheck agent availability

Example Workflows

Creating a New Chatbot

Ask your AI assistant:

"Create a new chatbot called 'Support Bot' for my company 'acme-corp' with a friendly, professional tone"

The assistant will use chatbot_create with appropriate parameters.

Reviewing Improvement Suggestions

"Show me all pending improvement proposals for my chatbot and explain what changes they suggest"

The assistant will:

  1. Use improvement_list_proposals to fetch proposals
  2. Analyze and summarize each suggestion
  3. Help you decide which to apply

Analyzing Chat Performance

"Give me a weekly report of chat volume and customer satisfaction for my chatbot"

The assistant will use analytics_overview and analytics_feedback to compile a comprehensive report.

Security

  • API keys are scoped to your user account and company access
  • All requests are logged in the audit trail
  • Keys can be revoked at any time from the dashboard
  • Rate limits apply: 60 requests/minute

Troubleshooting

Connection Failed

  1. Verify your API key is correct
  2. Check that the key hasn't been revoked
  3. Ensure you have an active internet connection
  4. Restart your MCP client

Tool Not Found

Some tools require specific permissions. Ensure you have the appropriate role in the company (Owner, Admin, or Manager).

Rate Limited

If you see rate limit errors, wait a minute before retrying. Consider batching operations when possible.


Need help? Contact our support team →