CometChat Docs

Docs and learningDeveloper tools

CometChat docs and recipes, plus your account after sign-in: apps, users, settings, keys, webhooks.

Your AI app calls the CometChat Docs MCP server, which does the work through tools like search_cometchat_docs, fetch_cometchat_doc_page and list_cometchat_bundles and sends the result back to the chat.

About CometChat Docs

CometChat Docs is a community MCP server from cometchat, filed in our directory under docs and learning and developer tools. CometChat docs and recipes, plus your account after sign-in: apps, users, settings, keys, webhooks.

CometChat Docs runs as a remote server at https://mcp.cometchat.com/mcp, so there is nothing to install: your AI app connects over streamable HTTP, and most remote servers ask you to sign in with OAuth the first time.

The README for CometChat Docs lists tools such as search_cometchat_docs, fetch_cometchat_doc_page, get_cometchat_implementation_bundle and list_cometchat_bundles, which your AI app can call once the server is connected.

CometChat Docs is listed in the official MCP registry as io.github.cometchat/docs-mcp, version 0.2.1.

At a glance

Publisher
cometchat (community)
Runs
As a hosted remote server
Written in
TypeScript
License
Apache-2.0
GitHub stars
160
Official MCP registry
io.github.cometchat/docs-mcp

Tools CometChat Docs gives your AI app

  • 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 URL
  • 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 referenc
  • list_cometchat_bundles, List every available implementation bundle (identifier, title, framework, date its page list was reviewed) for discovery.

Tool names as the CometChat Docs README lists them. Your AI app shows the live list once CometChat Docs is connected.

How to set up CometChat Docs

  1. Nothing to install: CometChat Docs is a remote server, so all you need is an AI app that accepts a remote MCP URL.
  2. Check the CometChat Docs README for keys or settings; the registry lists none that CometChat Docs requires.
  3. Add CometChat Docs to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the CometChat Docs tools to confirm the connection.
  5. Run one read-only task with CometChat Docs first, such as a call to search_cometchat_docs, before you allow anything that writes or sends.

CometChat Docs compared with similar servers

  • Edumcp by aieducations has fewer GitHub stars than CometChat Docs (156 against 160); both are community servers, and Edumcp runs on your own machine and CometChat Docs runs as a remote server.
  • Calculator (githejie) by githejie has fewer GitHub stars than CometChat Docs (160 against 160); both are community servers, and Calculator (githejie) runs on your own machine and CometChat Docs runs as a remote server. The Calculator (githejie) README lists 2 tools to CometChat Docs's 4.
  • arXiv Latex by takashiishida has fewer GitHub stars than CometChat Docs (152 against 160); both are community servers, and arXiv Latex runs on your own machine and CometChat Docs runs as a remote server.

Before you connect CometChat Docs

  • Give CometChat Docs its own sign-in or token with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each CometChat Docs tool call until you trust what it does with them.
  • Treat text that CometChat Docs fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for CometChat Docs on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for CometChat Docs

How marketing and sales teams put CometChat Docs to work, by company size. Pick the size closest to yours and start CometChat Docs on one use case.

Small business

  • A small business can use CometChat Docs to keep help docs and how-tos current, answering customer questions before they become tickets.
  • Owners can ask CometChat Docs for up-to-date docs while setting up a tool, instead of trusting an old tutorial.
  • A small business with a developer can use CometChat Docs to ship site and tracking fixes faster, with the AI reading the code it changes.
  • CometChat Docs runs as a remote server, so a small team can connect it in a few minutes with no install to maintain.

Mid-market

  • Marketing teams can connect CometChat Docs so agents write from current product docs, keeping launch copy accurate.
  • Enablement teams can use CometChat Docs to turn docs into training and battlecards sales actually uses.
  • Growth engineers can use CometChat Docs to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start with search_cometchat_docs and fetch_cometchat_doc_page, the tools CometChat Docs lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises can serve approved docs through CometChat Docs, so every agent answers from the same source of truth.
  • Large orgs can use CometChat Docs to keep documentation in sync across products and regions as features ship.
  • Enterprise engineering teams can roll out CometChat Docs with repo scopes and audit logs, so agents work only where they are allowed.
  • CometChat Docs is a community server, so have security review the code and pin a version before CometChat Docs touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

CometChat Docs README

From cometchat/docs-mcp on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

CometChat MCP Server

Add real-time chat, voice, video, and moderation to your app through your AI coding agent.

Docs (cometchat.com/docs/mcp-server) • CometChat • Get an account (free, 100 MAU)

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.

One endpoint, /mcp. The docs tools are read-only, with no account, API key or authentication. Account tools (your apps, users, settings) need you to sign in with your CometChat account: your client asks you to sign in the first time you use one. See Account tools.

Demo

An AI agent reading CometChat's docs and writing a working chat integration from a single prompt.

Quick install

Agent How to add
Claude.ai / Claude Desktop Settings → Connectors → Add custom connector → URL: https://mcp.cometchat.com/mcp
Cursor Cmd+Shift+P → Open MCP settings → Add custom MCP → paste config below
Windsurf Plugins (hammer icon) → Manage plugins → View raw config → paste config below
VS Code (Copilot Agent) Cmd+Shift+P → MCP: Add MCP Server → URL: https://mcp.cometchat.com/mcp, Transport: HTTP
Claude Code (CLI) claude mcp add --transport http cometchat https://mcp.cometchat.com/mcp
Claude Code (plugin) claude plugin marketplace add cometchat/docs-mcp && claude plugin install cometchat@cometchat
Codex CLI (plugin) codex plugin marketplace add cometchat/docs-mcp && codex plugin add cometchat@cometchat
Config snippet (Cursor / Windsurf / generic MCP clients)
{
  "mcpServers": {
    "cometchat": {
      "url": "https://mcp.cometchat.com/mcp"
    }
  }
}

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

URI Purpose
cometchat://skills/overview Agent orientation skill, Product summary, decision guidance, workflow, common gotchas, verification checklist
cometchat://bundles/react-uikit-quickstart React UI Kit install + init + login + chat surface
cometchat://bundles/react-native-uikit-quickstart React Native UI Kit with navigation and chat screen
cometchat://bundles/flutter-uikit-quickstart Flutter UI Kit install + init + basic chat
cometchat://bundles/ios-uikit-quickstart iOS UI Kit install + chat view
cometchat://bundles/android-uikit-quickstart Android UI Kit install + chat screen
cometchat://bundles/angular-uikit-quickstart Angular UI Kit install + init + login + chat surface
cometchat://bundles/js-sdk-messaging-basics Vanilla JS SDK, send/receive text and media messages
cometchat://bundles/widget-embed No-code widget embed for HTML, with pointers to WordPress, Webflow and Squarespace
cometchat://bundles/moderation-setup Moderation getting started, with pointers to rules, lists and flagged messages
cometchat://bundles/multi-tenant-chat Multi-tenancy, isolated apps under one plan, App Management APIs
cometchat://bundles/presence-and-typing Online presence, typing indicators, read receipts

How it works

  1. You prompt your agent in natural language.
  2. The agent reads the orientation skill (cometchat://skills/overview) to understand which tool/bundle fits your request.
  3. For top scenarios, the agent pulls an implementation bundle, the current docs pages for that integration in one document.
  4. For long-tail questions, the agent searches CometChat's docs and reads specific reference pages.
  5. 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

Field Value
Display name CometChat Docs
Version 0.2.1
Protocol MCP 2025-11-25; earlier protocol versions are negotiated down
Transport Streamable HTTP (with SSE)
Authentication None for the docs tools. OAuth 2.1 sign-in with your CometChat account for the account tools, on the same /mcp endpoint
Capabilities tools, resources
Health endpoint GET https://mcp.cometchat.com/health

Architecture

Your agent (Claude / Cursor / Windsurf / …)
        ↓ MCP over Streamable HTTP
        ↓
  mcp.cometchat.com/mcp  (this server)
        ↓
  ├── search_cometchat_docs     → SQLite FTS5 index of cometchat/docs
  ├── fetch_cometchat_doc_page  → cometchat.com/docs/*.md (first-party)
  └── get_cometchat_implementation_bundle → live docs pages listed in src/bundles/manifest.ts
  • 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

Node.js: running the server needs Node 20 or later. Developing and running the tests need Node 20.19+ or 22.12+, because the test toolchain (Vitest, Vite and Rolldown) won't start on earlier releases. CI uses Node 24.

# Clone the docs repo (used to build the search index)
git clone --depth 1 https://github.com/cometchat/docs.git ../cometchat-docs-repo

# Install + build the FTS index + run the server
npm install
DOCS_REPO=../cometchat-docs-repo npm run build:index
npm run dev

# Run the test suite (vitest: validation, truncation, bundles, tools, resources, fetch,
#  search ranking and the index builder)
npm test

# Score search ranking on the index you built (CI pins the docs commit: see DEPLOY.md)
DOCS_REPO=../cometchat-docs-repo npm run eval:search

# Check every docs page a bundle lists still exists and is current (network)
npm run verify:bundles

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
npx @modelcontextprotocol/inspector
# add server: http://localhost:3000/mcp

You should see all 4 tools with readOnlyHint: true and all 11 resources.

Repo layout
docs-mcp/
├── src/
│   ├── server.ts                  # MCP server entry, transport, tool dispatch
│   ├── tools/{search,fetch,bundle}.ts
│   ├── search/sqlite.ts           # SQLite FTS5 client
│   ├── bundles/manifest.ts        # each bundle's docs pages
│   ├── bundles/loader.ts          # compiles bundles from live docs pages
│   ├── resources/registry.ts      # skill + bundle resources
│   └── lib/{errors,truncate,validation,logger}.ts
├── scripts/build-index.ts         # builds SQLite FTS5 index from cometchat/docs
├── skills/overview.md             # agent orientation skill
├── tests/                         # vitest suite
├── .claude-plugin/
│   ├── plugin.json                # Claude Code plugin manifest
│   └── marketplace.json           # Claude Code marketplace manifest
├── .codex-plugin/plugin.json      # Codex plugin manifest
├── .cursor-plugin/plugin.json     # Cursor Marketplace manifest
├── .mcp.json                      # MCP config (Claude Code auto-discovery)
├── mcp.json                       # Open Plugins standard manifest
└── assets/logo.svg                # CometChat logo

Configuration

Env var Default Notes
PORT 3000 HTTP port
HOST 0.0.0.0 Bind host
DOCS_BASE_URL https://www.cometchat.com/docs Used for URLs in responses + the .md fetch fallback
INDEX_PATH ./data/index.sqlite SQLite FTS5 index location. Server still boots if missing; search returns backend_unavailable and /health is 503.
SKILLS_DIR ./skills Orientation skill (overview.md) directory
FETCH_TIMEOUT_MS 5000 Per-fetch HTTP timeout
LOG_LEVEL info debug / info / warn / error
NODE_ENV development Standard Node.js setting (Express runs in production mode); set production in containers
ALLOWED_HOSTS <HOST>:<PORT>,localhost:<PORT>,127.0.0.1:<PORT> Comma-separated Host header allowlist for DNS-rebinding protection
ALLOWED_ORIGINS unset Comma-separated browser Origin allowlist for /mcp. Unset allows none: a request with an Origin gets 403. Clients that send no Origin (IDEs, CLIs, hosted connectors) are unaffected
DNS_REBINDING_PROTECTION true Set false only if an upstream already validates Host
RATE_LIMIT_ENABLED true Set false to disable per-IP rate limiting on /mcp. Exactly true or false; other values fail startup
RATE_LIMIT_MAX 120 Max requests per window per IP. Positive integer; 0 fails startup (disable with RATE_LIMIT_ENABLED=false)
RATE_LIMIT_WINDOW_MS 60000 Rate-limit window in ms. Positive integer
INDEX_AUTO_REFRESH false Set true to rebuild the search index in-container when cometchat/docs changes. Requires git in the image and a writable INDEX_WORK_DIR.
INDEX_POLL_INTERVAL_MS 600000 How often to check the docs repo for a new commit (a git ls-remote, ~1s)
INDEX_WORK_DIR ./data/generations Where rebuilt index generations are written (tmpfs in production)
INDEX_KEEP_GENERATIONS 2 Previous index generations retained on disk for instant fallback
INDEX_MIN_PAGES 2000 Absolute floor: a candidate index with fewer pages is rejected
INDEX_MAX_DROP_RATIO 0.2 Relative floor: reject a candidate losing more than this fraction of the served page count, or of the served pages whose versions come from docs.json navigation
DOCS_REPO_URL https://github.com/cometchat/docs.git Public docs repo; cloned anonymously, no credentials
DOCS_REF main Branch to follow
DOCS_COMMIT_PIN unset Freeze on one commit and stop following HEAD (incident escape hatch)
POSTHOG_KEY unset PostHog project API key. Unset = usage analytics fully disabled (no-op)
POSTHOG_HOST https://us.i.posthog.com PostHog instance host
ANALYTICS_SALT unset Required when POSTHOG_KEY is set (analytics stays off without it). Salts client fingerprints/IP hashes; rotating it resets all fingerprints

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: support@cometchat.com.
  • Live MCP status: curl https://mcp.cometchat.com/health returns {"status":"ok"} when healthy.

Account tools (sign-in)

https://mcp.cometchat.com/mcp also has tools for your CometChat account, after you sign in: list and create apps, read credentials, turn features on, manage users, groups, API keys and webhooks, delete users, groups, messages and other data, and check usage and moderation. It's off until CometChat enables it on the hosted server.

What it can and can't do. When you connect, the sign-in page lists what the tool will be able to do. It can delete users, groups, messages, API keys, webhooks, roles, moderation lists and rules, and push providers, always after your approval. It can't delete apps, change billing, transfer ownership or ban users. A read-only connection can still read your app credentials, including the Auth Key; other API key values are masked.

Unverified apps. Anyone can register a client with any name. If the address your browser returns to isn't a known AI tool (one running on your machine, claude.ai's connector callback, or a page on ChatGPT, Grok, Antigravity, Mistral Le Chat or Perplexity), the page marks it unverified and it only gets read-only access. A ChatGPT, Grok or Antigravity connection made before 0.2.1 still shows as unverified: remove it and add it again. The page shows the app's icon: ours for a known app (by where it returns to, not its name), otherwise the logo the app registered (never for an unverified app), otherwise the first letter of its name. The icon only helps you recognise the app; the name and the return address are what to check.

High-risk changes need your approval in the browser. Creating webhooks, API keys or login tokens, inviting team members, changing app settings, replacing the OpenAI key and every delete each give your AI tool a link. Open it in the browser where you connected your AI tool, check the exact details, and approve; you get a short code to give back to your AI tool. The code works once, for that exact change, for up to 10 minutes. This guards against text inside your app (a message, a user name) talking your AI tool into one of these changes. Only approve changes you asked for, and only sign in to CometChat from a link your own AI tool opened when you connected it. Secret values on the approval page show only their last 4 characters. If your AI tool can control your browser, it could also press Approve, so don't rely on approval in that setup. Other changes ask for your OK in the chat.

Disconnecting. Remove the CometChat connection in your AI tool (Claude Code: /mcp, pick it, Clear authentication). That stops that tool. A sign-in copied off your device keeps working until it expires (access tokens last 1 hour, a sign-in at most 7 days); changing your CometChat password cuts off every copy within an hour. Step-by-step help: https://mcp.cometchat.com/oauth/cometchat/disconnect.

For admins. There's no organisation-wide switch to block account sign-ins yet. To cut off a person's sign-ins straight away, contact CometChat support.

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: docs tools stay read-only; account tools keep the sign-in, confirmation and approval rules in Account tools.

Out of scope:

  • Account tools that delete apps, change billing, transfer ownership or ban users.
  • Mixed read/write tools (each tool is either read-only or a write).

Privacy

Docs tools. Read-only, with no account, API key or authentication. It serves CometChat's public documentation and does not request, store or transmit your code, prompts or personal data.

Account tools. Only used if you sign in. It passes your requests to your CometChat account and returns the results to your AI tool, which can include your users' names, emails and message text (truncated). The server stores nothing: your sign-in lives in your AI tool, sealed so only this server can read it. For security it logs one audit line per account action: a pseudonymous id for you, the tool, the app id, the ids it acted on (never message text, names or secrets), and the outcome.

Both. Request metadata such as your IP address is processed for rate limiting and abuse prevention. Usage analytics (PostHog) receive the tool name, outcome, duration, a session id and a one-way fingerprint of your IP. They never receive tool arguments, results or account details.

For full details, see CometChat's privacy policy: cometchat.com/legal-privacy-policy.

License

Apache-2.0. See LICENSE.

Questions about CometChat Docs

What is the CometChat Docs MCP server?

CometChat docs and recipes, plus your account after sign-in: apps, users, settings, keys, webhooks. CometChat Docs is maintained by cometchat on GitHub at cometchat/docs-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I add CometChat Docs to Claude Code?

CometChat Docs is a remote server, so you add its URL instead of installing a package: run claude mcp add --transport http docs https://mcp.cometchat.com/mcp in your terminal. In other apps, add the CometChat Docs URL as a remote or custom connector.

Does CometChat Docs need an API key?

The registry lists no required keys for CometChat Docs. Check the CometChat Docs README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is CometChat Docs an official MCP server?

No. CometChat Docs is a community server maintained by cometchat. Community servers can be excellent; read the code and the open issues before you give CometChat Docs access to company data.

What license is CometChat Docs under?

CometChat Docs is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of CometChat Docs; the service it connects to has its own terms.