dot-qqbot-bridge
Provides an event bridge for OpenAI connectors: subscribed QQ private-message events can be delivered to the restricted OpenAI connector callback, and paired QQ messages can be read and replied to via tools.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dot-qqbot-bridge
Connect a QQ bot's private messages to dot: receive message events, read messages, and reply through Managed OAuth MCP. It runs on Cloudflare Workers and SQLite Durable Objects, and handles only messages from the paired owner.
Tools:
bridge_status,start_pairing,read_message,reply_message.Events:
qq.message.created, private messages from the paired owner only.Event subscribe, renew, and unsubscribe; the callback destination is limited to
https://connectors.api.openai.com.
Deployment prerequisites
A Cloudflare Workers account and SQLite Durable Objects.
A QQ bot application that supports C2C private-message events, and a Cloudflare Access application that allows only the owner's identity.
A client/connector that supports Managed OAuth and this project's MCP event extensions. OAuth, Access policies, and connector registration must be configured separately; ordinary MCP clients do not necessarily support event subscriptions.
An HTTPS callback domain reachable from the China mainland network, and actually reachable by Tencent's QQ platform servers. Configure public DNS, a valid TLS certificate, and Worker hostname routes. The template has
workers.devdisabled; neitherworkers.devnor a custom domain is assumed reachable from the mainland until tested.
In the QQ console, enter the full callback URL, for example https://qq-webhook.example.com/qq/webhook, substituting your own domain. This project accepts only POST /qq/webhook on HTTPS default port 443. Query parameters, a trailing slash, or any other path are rejected.
The callback path must not require an interactive Access login, captcha, or browser challenge; /mcp and /auth-check must keep their identity protection. After deployment, check DNS/TLS from a mainland network, then complete address verification through the QQ platform. A browser open, a successful GET/HEAD, or a successful /health check is not callback verification.
ICP filing depends on hosting region, access service, and platform configuration; it is not required for every webhook. See Deployment network verification and the official QQ event documentation.
Related MCP server: Feishu ↔ dot Bridge
Quick start
Requires Node.js 24.11+ (24.x) and npm 11.x.
npm ci --ignore-scripts --no-audit --no-fund
npm run check
cp wrangler.example.jsonc wrangler.jsonc
cp .dev.vars.example .dev.varscheck runs typechecking, a local build, tests, a secret-pattern scan, and a format check. Private configuration is Git-ignored; .dev.vars does not become live Worker secrets automatically.
Configuration
Fill in the following, then follow the setup guide to add the account, hostname routes, BRIDGE binding, and SQLite migrations for a fresh Worker:
ACCESS_HOSTNAME: MCP hostname, without scheme, port, or path.ACCESS_TEAM_DOMAIN: your<team>.cloudflareaccess.com.ACCESS_AUD,ACCESS_OWNER_EMAIL: Access application audience and the sole allowed owner email (case-sensitive).QQ_WEBHOOK_HOSTNAME: optional separate callback hostname; defaults to the MCP hostname. The separate host serves only POST/qq/webhook.QQ_APP_ID,QQ_APP_SECRET: QQ bot application credentials.CALLBACK_KEYRING: callback encryption key configuration. See the example and Security and privacy boundaries. Example keys are invalid; replace them before deployment.PAIRING_ENABLED,BRIDGE_ENABLED,EVENTS_ENABLED,MCP_WRITE_ENABLED: all default-off; only the exact string"true"enables a switch.
Put credentials only in private configuration or secret bindings. Existing deployments must keep their own Worker, namespace, migration history, and owner data; do not apply the fresh-install migration to them.
First-time pairing
Complete QQ callback address verification. Keep the three business switches off, and enable only
PAIRING_ENABLED.Authenticate as the owner through Access, call
start_pairingwith{}, and receive a pairing code shown once and valid for at most 10 minutes.Send the code exactly as issued in a private chat with your own QQ bot. Do not publish it or give it to anyone else; the account that holds the code can complete the binding.
Call
bridge_statusand confirmowner_bound: true. Pairing does not automatically reply to the QQ message.Turn off
PAIRING_ENABLED, enable receive, event, and reply capabilities as needed, and have the client establish an event subscription.
If issuance times out or the response is lost, check status first. If the original code was never received, wait for it to expire and start again. A bound identity cannot be rebound. Owner disappearance, change, or fingerprint mismatch blocks authority permanently; restoring the old value does not unlock it. There is no unbind or reset API. Full steps: First-time installation and pairing.
Operation and security
Message bodies are retained for 1 hour, up to 100 messages, at most 10 received per minute. Bodies have no application-layer encryption. Callback URLs and secrets use AES-256-GCM.
Historical events are not backfilled without an active subscription. Event and QQ reply sends are not retried automatically when the result is uncertain; events or replies may be lost.
The reply window is 5 minutes after the source message, at most 1500 UTF-16 code units (project limits).
The 5-second request budget cannot recall already-accepted writes or network requests, and does not guarantee end-to-end latency.
Do not commit credentials, pairing codes, or databases. Do not deploy test wrappers that contain synthetic identities or administrative entry points.
See Security and privacy boundaries and the pairing security review.
Validation status
Local clean install, build, and 123 tests have passed, including workerd/SQLite pairing, authentication, concurrency, replay, rollback, and restart tests. Live QQ/Managed OAuth end-to-end verification, and China-mainland reachability of a deployment domain, have not been verified.
License
MIT. Dependencies use their own licenses.
Related projects
grokbot-qqbot-bridge: QQ to a generic HTTP webhook.
grokbot-wechatclaw-bridge: WeChat ClawBot bridge.
grokbot-larkbot-bridge: Lark bot bridge.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect a Muse and a Grok Bot to exchange messages, with per-message delivery and read status.
OAuth Gate exchange MCP for CEX trading, account, wallet, unified account, and sub-account.
Connect a personal/Business WhatsApp account via QR pairing (multi-device, like WhatsApp Web). Send
Connect an owner-approved AI agent to InnerLi profiles, posts, rooms, and messaging.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables connecting a user's own WeChat to MCP-capable AI assistants for owner-only private messaging and media exchange, including receiving text, images, files, and upstream voice transcriptions, and sending replies, images, or files.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables each user to securely bind their own Feishu private chat account to an existing personal dot, subscribe to incoming p2p text messages through authenticated MCP Events, and reply only to the originating conversation via MCP tools.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables an owner to send Discord DMs to a bot and have them delivered through signed MCP Events to an existing ChatGPT dot, then return OAuth-authenticated replies to the original DM.MIT
- AlicenseAqualityBmaintenanceBridges a QQ official bot to DeepSeek Harness, letting an agent fetch and reply to incoming private-chat messages and send proactive pushes (e.g., task-completion or reminder notifications) to users by openid. Without credentials it runs in a mock mode for protocol testing.324 npmMIT