CometChat's first-party MCP server. Connect Claude, Cursor, Windsurf, VS Code Copilot, Codex, or any other Model Context Protocol–compatible agent and integrate CometChat into your app from natural-language prompts.
Ask the agent: "add a chat tab where users can DM each other" — it reads CometChat's documentation, picks the right components for your stack, and writes the integration code.
Read-only. No account, no API key, no authentication required.
Demo
[CometChat MCP server in action]
An AI agent reading CometChat's docs and writing a working chat integration from a single prompt.
Quick install
Config snippet (Cursor / Windsurf / generic MCP clients)
Usage
After connecting, prompt your agent with any of these:
- "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?"
The agent reads CometChat's documentation, pulls the relevant implementation bundle, and writes the integration code into your project.
Tools
search_cometchat_docs — Search the SDK, UI Kit, Calls, REST API, AI agent, notification and moderation docs by topic, API name or error message. Returns ranked snippets with page URLs, current versions first. Optional version filter and limit (up to 25).
fetch_cometchat_doc_page — Fetch one documentation page in full as markdown by URL or path, following moved pages. Pages over 50 KiB are truncated with a link to the full page.
get_cometchat_implementation_bundle — Return the implementation bundle for a named scenario: the scenario's current docs pages (for a UI Kit: its integration guide, then the platform's AI reference page) compiled into one document, plus related page paths.
list_cometchat_bundles — List every available implementation bundle (identifier, title, framework, date its page list was reviewed) for discovery.
All four carry readOnlyHint: true, a title annotation, and a declared outputSchema with structured results. Names are ≤ 64 characters. Each description states what the tool does, when it fits and its limits (errors, rate limit), naming this server's other tools only where one serves a specific need ("identifiers come from list_cometchat_bundles"). They carry no directives to the agent, no references to other servers or products, and no marketing language. tests/tools.test.ts guards the tool, parameter and output-field descriptions and the initialize instructions against a list of banned phrasings, and checks that list still rejects the shapes it was written for; it is a banlist, not a proof.
Resources
How it works
- You prompt your agent in natural language.
- The agent reads the orientation skill (
cometchat://skills/overview) to understand which tool/bundle fits your request.
- For top scenarios, the agent pulls an implementation bundle — the current docs pages for that integration in one document.
- For long-tail questions, the agent searches CometChat's docs and reads specific reference pages.
- The agent writes the code into your project, using the bundle as the source of truth and your project structure as the constraint.
CometChat in 30 seconds
CometChat is a real-time communications platform for adding chat, voice, and video calling to web and mobile apps. Used in production across SaaS, marketplaces, gaming, healthcare, education, and creator platforms.
- Free tier: first 100 monthly active users, no credit card required.
- SDKs: JavaScript, React Native, iOS, Android, Flutter.
- UI Kits: React, React Native, iOS, Android, Flutter, Angular, Vue.
- No-code: chat widget for any HTML site.
- Sign up:
app.cometchat.com — you'll need an App ID, Auth Key, and Region to build with the code the agent writes.
Server identity
Architecture
- Stateless server, single universal endpoint, no user-specific state.
- Search index rebuilds from
github.com/cometchat/docs on every push to that repo's main branch.
- Implementation bundles have no content of their own. Each is a list of docs pages (
src/bundles/manifest.ts), read from the live docs on request, so a docs fix reaches the bundle with no MCP change. A built bundle is served for 10 minutes; after that a call still gets it at once and starts one background rebuild. A rebuild that hits a timeout or 5xx never replaces the cached bundle and is retried with a backoff (30 s, doubling, up to 10 minutes), so a docs outage neither drops bundles nor floods the docs site. A deleted page (404) is what the docs say: once a second build in a row agrees, that rebuild is kept and names the missing page. npm run verify:bundles fails when a listed page moves, disappears, no longer fits in its bundle, is no longer the current version in docs.json, or tells people to install a package version that is unpublished, on an older major, or an exact pin a minor behind (checked against npm, pub.dev, CometChat's Maven repo, CocoaPods trunk and GitHub); the maintainers run it daily.
Local development
The server listens on http://0.0.0.0:3000 by default. Health probe at GET /health, MCP endpoint at POST /mcp.
Inspect with the MCP Inspector
You should see all 4 tools with readOnlyHint: true and all 11 resources.
Repo layout
Configuration
Deployment
See DEPLOY.md for container build, environment, and platform notes.
Marketplaces
The same server URL is listed in these registries and directories:
Support
- Issues / feedback: open an issue in this repo.
- CometChat support:
[email protected].
- Live MCP status:
curl https://mcp.cometchat.com/health returns {"status":"ok"} when healthy.
Contributing
PRs welcome — especially:
- New implementation bundles: add an entry to
src/bundles/manifest.ts listing existing docs pages. If no page covers the scenario, write the page in cometchat/docs first; bundle content always comes from the docs.
- Tool improvements behind the existing read-only contract.
Out of scope today:
- Tools that write to a customer's CometChat app (separate authenticated connector, on the roadmap).
- Mixed read/write tools (Anthropic auto-rejection rule).
Privacy
The CometChat MCP server is read-only and requires no account, API key, or authentication. It serves only CometChat's public documentation and does not request, store, or transmit your code, prompts, or personal data. Standard request metadata (such as IP address) may be processed transiently for rate limiting and abuse prevention.
For full details, see CometChat's privacy policy: cometchat.com/legal-privacy-policy.
License
Apache-2.0. See LICENSE.