Purpose
CometChat MCP Server is CometChat's first-party Model Context Protocol (MCP) server, used to integrate real-time chat, voice, video calling, and content moderation capabilities into applications. After connecting an MCP-compatible AI coding agent, developers can use natural language prompts to have the agent read CometChat documentation, select appropriate components, and write integration code. For example, prompt the agent to "add a chat tab where users can privately message each other."
Main capabilities
The server provides 4 tools (all read-only, with readOnlyHint: true, title annotations, and structured output schemas):
- search_cometchat_docs: Searches SDK guides, UI Kit references, REST API documentation, and OpenAPI specifications, returning ranked snippets with titles and direct links, with optional version filtering.
- fetch_cometchat_doc_page: Fetches the full markdown content of any documentation page by URL or relative path.
- get_cometchat_implementation_bundle: Returns a curated implementation bundle by named scenario, including prerequisites, installation commands, configuration, and runnable code.
- list_cometchat_bundles: Lists all available implementation bundles (identifier, title, framework, last verified date).
The server also provides 11 resources and includes a directional skill (cometchat://skills/overview) to help the agent determine which tool or implementation bundle is suitable for the current request. For common scenarios, the agent pulls a curated implementation bundle (with ready-to-use code); for long-tail questions, it searches the documentation and reads specific reference pages.
How to use
After configuring the server in Cursor, Windsurf, or a generic MCP client, you can make requests to the agent in natural language, for example:
- "How do I install the React UI Kit in my Vite project?"
- "Walk me through multi-tenant chat for a Next.js SaaS where workspaces are isolated."
- "Show me how to add presence indicators and typing dots to my iOS conversation list."
- "Set up content moderation so banned words are blocked before delivery."
- "Build a no-code chat widget for my Webflow site."
- "What's the rate limit for sending messages, and what error code do I get when I hit it?"
During local development, the server listens by default on http://0.0.0.0:3000,健康检查在 GET /health, and the MCP endpoint is at POST /mcp. You can inspect it with MCP Inspector, and you should see all 4 tools (readOnlyHint: true) and 11 resources. For deployment instructions, see DEPLOY.md. Live status is available via curl https://mcp.cometchat.com/health Check, returns {"status":"ok"} when healthy.
Use cases
CometChat is a real-time communication platform for web and mobile applications, and can be used in production environments such as SaaS, marketplaces, gaming, healthcare, education, and creator platforms. Its SDKs support JavaScript, React Native, iOS, Android, and Flutter; the UI Kit supports React, React Native, iOS, Android, Flutter, Angular, and Vue; and it also provides a no-code chat component for any HTML site. The free tier provides the first 100 monthly active users and does not require a credit card. Using agent-generated code requires an App ID, Auth Key, and Region, which can be obtained by signing up at app.cometchat.com.
Limitations
This server is read-only, requires no account, API key, or authentication, and only provides CometChat public documentation. It will not request, store, or transmit users' code, prompts, or personal data; standard request metadata (such as IP address) may be temporarily processed for rate limiting and abuse prevention. The server is stateless, with a single general-purpose endpoint and no user-specific state; the search index is rebuilt on every push to the main branch of github.com/cometchat/docs; implementation packages carry a last-verified date and are rechecked quarterly against live SDK versions. Tools that write to customer CometChat applications (requiring a separately authenticated connector) and mixed read-write tools are currently out of scope. The project is licensed under Apache-2.0.