What MCP is
MCP (Model Context Protocol) is a standard way for AI clients to call external tools. Bweb exposes site management, publishing, domains, leads, subscriptions and analytics as MCP tools.
That lets you use natural language in Claude Code, Claude Desktop, Cursor, Codex or another MCP-capable client to run routine operations.
Connecting a client
- Create a cs_ access token under Settings → MCP / Agent; it is shown only once.
- Choose read-only or read-write permissions; a read-only token cannot change data.
- HTTP clients connect to https://bwebai.com/api/mcp, or to a module endpoint below.
- Stdio-only clients use the cloudsite-mcp.mjs bridge script; set CLOUDSITE_MODULE to forward only one module.
Module endpoints
The aggregate /api/mcp endpoint keeps every tool for clients that need everything. If a client only handles marketing, support or site building, use a module endpoint so it never wades through hundreds of unrelated tools.
- /api/mcp/sites: sites, files, generation, upload, preview, publishing and domains.
- /api/mcp/growth: inquiries, chat, subscriptions, visitors, tracking, SEO/GEO audit, quotations and exports.
- /api/mcp/marketing: contacts, templates, sending channels, campaigns, automations and pricing quotes.
- /api/mcp/social: content drafts, compliance checks, job claiming, publish reporting and performance data.
- /api/mcp/agent: tasks, skills, knowledge, plans, approvals, artifacts, reviews and governance.
- A module endpoint only lists its own tools; calling another module returns module_denied. whoami and capabilities are available everywhere.
- GET /api/mcp/catalog returns a credential-free public tool catalog used by the console and documentation.
Typical site operations
- List the account's sites and their status.
- Generate temporary preview links.
- Upload a locally generated static site as a ZIP or inline files.
- Generate or edit pages with AI.
- Publish to Cloudflare Pages or Firebase Hosting.
- Bind and manage domains.
Working with business data
Enhancement tools cover forms and leads, chat conversations, subscriptions, visitors, tracking, analytics and exports. Read tools return full fields; write tools are constrained by permissions, parameter validation, audit logs and rate limits.
They can be combined into a daily operations summary: analytics totals, new leads and open conversations, handed to AI for a digest and to-do list.
Permissions and security boundaries
- A token only reaches the account that created it and stops working when the membership expires or the account is disabled.
- Admin-only platform finance, review and price settings are not exposed through MCP.
- Risky actions require confirmation and calls are audited.
- MCP does not bypass business rules, quotas, permissions or review.
About the author
Bweb Editorial TeamContent and editorial
Turning first-hand building, publishing, domain and acquisition work into steps readers can follow.
Reviewed by: SHUOFENG
Facts are checked by a person before publishing; AI only assists with drafts and translation.
Editorial standards