> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-013b37f0.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Model Context Protocol (MCP) server for CometChat documentation

## Using the CometChat MCP Server

### Claude

To use the CometChat MCP server with Claude:

1. **Add MCP server to Claude**
   1. Navigate to the [Connectors](https://claude.ai) page in the Claude settings.
   2. Select **Add custom connector**.
   3. Enter a server name (e.g., `CometChat Docs`) and the URL `https://www.cometchat.com/docs/mcp`.
   4. Click **Add**.

2. **Access MCP server in your chat**
   1. In Claude, click the attachments button (the plus icon).
   2. Select **CometChat Docs** (or the name you provided).
   3. Ask your questions—Claude will use your documentation as context.

See the [Model Context Protocol specification](https://modelcontextprotocol.io/) for full details.

### Cursor

To connect the CometChat MCP server to Cursor:

1. **Open MCP settings**
   1. Press `Command` + `Shift` + `P` (`Ctrl` + `Shift` + `P` on Windows) to open the command palette.
   2. Search for **Open MCP settings**.
   3. Select **Add custom MCP**—this opens `mcp.json`.

2. **Configure your server**\
   In `mcp.json`, add:

   ```json theme={null}
   {
     "mcpServers": {
       "cometchat-docs": {
         "url": "https://www.cometchat.com/docs/mcp"
       }
     }
   }
   ```

3. **Test the connection**\
   In Cursor’s chat, ask **"How to integrate CometChat in My React App?"** to verify your documentation search.

For more on Cursor integration, see [Installing MCP servers](https://docs.cursor.com).
