NabuDesk MCP server
OfficialProvides tools for inspecting a business's Telegram link state and determining which manual Telegram setup steps are still pending, with exact instructions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NabuDesk MCP server what would the support bot answer if I ask about refunds?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NabuDesk MCP server
Drives NabuDesk conversationally instead of through the Livewire panel: create a
business, write its knowledge base, and check what the support bot would answer —
without opening a browser or reaching for docker exec.
MCP client (Claude Code / Claude Desktop)
│ stdio
▼
mcp-server/index.js ← runs locally
│ HTTPS + X-Internal-Token
▼
NabuDesk /api/internal/v1/* ← app/Http/Controllers/Api/Internal
│
▼
BusinessProvisioningService · KnowledgeSyncService · SupportDryRunServiceThe MCP server holds no business logic. It is a transport adapter over the operator API, so the panel and the API cannot drift apart.
Security
INTERNAL_API_TOKEN is a single shared secret that is not scoped to a
business — it can read and write every business on the instance. It is for
staff only. Never hand it to a customer, and never put it in a client-side app.
When the variable is unset the entire /api/internal/* surface returns 503,
so a deploy that forgets the secret fails closed rather than serving the API
unauthenticated.
Related MCP server: rbac-rag-assistant
Setup
On the NabuDesk instance, set the secret (in Coolify's environment variables, so
it survives a redeploy — a value written only into the container's .env is
lost on the next deploy):
openssl rand -hex 32
# → INTERNAL_API_TOKEN=<value>Locally:
cd mcp-server
npm install
npm run buildRegister it with your MCP client. For Claude Code:
claude mcp add nabudesk \
--env NABUDESK_URL=https://desk.nabuxai.com \
--env NABUDESK_TOKEN=<the same value> \
-- node /absolute/path/to/NabuDesk/mcp-server/index.jsOr in claude_desktop_config.json:
{
"mcpServers": {
"nabudesk": {
"command": "node",
"args": ["/absolute/path/to/NabuDesk/mcp-server/index.js"],
"env": {
"NABUDESK_URL": "https://desk.nabuxai.com",
"NABUDESK_TOKEN": "<the same value>"
}
}
}
}Variable | Required | Default | Purpose |
| yes | — | Base URL of the instance |
| yes | — | Must equal |
| no |
| Raise if the AI gateway is slow |
Tools
Businesses
Tool | Does |
| All businesses with AI settings, knowledge count, Telegram link state |
| One business including its full AI context text |
| Create or update. Idempotent by (owner, name) — safe to retry |
| Which of the two manual Telegram steps are still pending, with the exact instructions |
Custom Domains & Zone Mapping
Tool | Does |
| All custom domains mapped to a business with status and DNS records |
| Connect custom domain / subdomain (forms, quizzes, bio-links, booking) and get DNS instructions |
| Live test of CNAME / A / TXT DNS records and instant activation |
| Remove a custom domain from the business |
Knowledge
Tool | Does |
| Every item with content and embedding state |
| Add or replace by title. Embeds and indexes in one batch; returns |
| Removes the row and its Qdrant vector |
| Re-embed everything — after a model change or a direct DB edit |
Diagnostics
Tool | Does |
| The answer the support agent would give — no contact, no conversation, no budget spend |
| Cosine score per knowledge item, and which clear the threshold |
| Questions the bot could not answer — the knowledge-gap queue |
| Database, Qdrant, embeddings and AI gateway reachability |
Why test_retrieval exists
The failure it catches is silent. EmbeddingService::searchKnowledge() drops
anything below a 0.2 minimum score. The embedding model is cross-lingual but
weak: a non-English question can rank the correct document first and still
score under the threshold, so nothing is retrieved and the bot answers from the
context alone — confidently, and without the specifics.
Measured on the Zooey Support knowledge base before it was made trilingual:
Question | Top score | Retrieved |
| 0.689 | yes |
| 0.430 | yes |
| 0.160 | no |
| 0.298 | yes |
Writing the knowledge in the languages customers actually use raised the failing
case to 0.297. test_retrieval is how you see that, since ask alone still
returns a plausible-looking answer.
Why upsert_knowledge returns two counts
EmbeddingService::embedMany never throws. It returns null for any text it
could not embed — including when the provider key is unset or the request
failed. Without counting, every row is written with a null vector and reported
as a success while being permanently unretrievable.
written is how many rows were stored; embedded is how many of them can
actually be found. They should match. If nothing could be embedded the call
returns 503 and writes nothing, because a business with knowledge it can never
retrieve is worse than a failed call it can retry.
Notes
askis a dry run. It shares production's retrieval, business context and model, but not the prompt-injection guard or the per-contact reply budget — those belong to the liveReplyComposerpath.upsert_businessis idempotent by (owner, name), andupsert_knowledgeby title. Both are safe for an AI caller that retries.The Livewire create form still assembles its AI context inline. Until it is refactored onto
BusinessProvisioningService, a change to the section list must be mirrored inresources/views/livewire/pages/businesses/create.blade.php.
Available Tools
18 toolsadd_domainA
Add a custom domain or subdomain to a business for public assets (Forms, Quizzes, Bio-Links, Booking, etc.). Returns exact DNS configuration instructions.
Inputs: domain (required), module, business_id, root_redirect_url.
askA
Ask the business's support agent a question and get the answer it would give, WITHOUT creating a contact, a conversation or spending the per-contact reply budget. Use to verify the knowledge base and context before customers do.
Inputs: question (required), business_id, knowledge_limit.
delete_domainC
Remove a custom domain from a business.
Inputs: domain_id (required), business_id.
delete_knowledgeA
Delete one knowledge item and drop its Qdrant vector, so it can no longer be retrieved.
Inputs: item_id (required), business_id.
get_active_businessA
Get the currently active business ID and details for this session.
Inputs: no named parameters.
get_businessB
Full detail for one business, including its complete AI context text.
Inputs: business_id.
get_link_statusB
Whether the two manual Telegram steps are done for a business, with the exact instructions (including the token) for whichever step is still missing.
Inputs: business_id.
healthB
Check that the database, Qdrant, the embedding model and the AI gateway are all reachable from the NabuDesk instance.
Inputs: no named parameters.
list_businessesB
List NabuDesk businesses with their AI settings, knowledge count and Telegram link status. Optionally filter by owner or name.
Inputs: search, owner_user_id.
list_domainsA
List all custom domains mapped to a business, with their verification status, module targeting, and DNS records (CNAME/A/TXT).
Inputs: business_id.
list_knowledgeB
All knowledge base items of a business, with their content and whether each one is embedded.
Inputs: business_id.
list_unansweredB
Questions the bot could not answer, newest first. This is the queue of knowledge gaps worth filling.
Inputs: limit, status, business_id.
reindex_knowledgeA
Re-embed every knowledge item of a business. Use after changing the embedding model or editing content directly in the database.
Inputs: business_id.
switch_businessA
Switch the active business context for this session. Pass either business_id directly or search to find by name. Subsequent tool calls will use this active business by default.
Inputs: search, business_id.
test_retrievalA
Score a question against every knowledge item and show which ones clear the retrieval threshold. Use to catch the silent failure where a non-English question ranks the correct document first but still falls under the 0.2 minimum score, so nothing is retrieved at all.
Inputs: question (required), top, min_score, business_id.
upsert_businessA
Create a business, or update the existing one with the same name for the same owner. Idempotent by (owner, name) — safe to retry. Pass either ai_context directly, or sections to have the labelled context assembled the same way the panel builds it.
Inputs: name (required), user_id (required), locale, paused, +8 more.
upsert_knowledgeA
Add or replace knowledge items. Title is the identity: re-sending the same title rewrites that item instead of creating a near-duplicate. Embeds and indexes to Qdrant in one batch. Returns embedded alongside written — an item written without a vector can never be retrieved, so compare them. Fails with 503 rather than writing anything if the embedding provider is down.
Inputs: items (required), business_id.
verify_domainA
Verify DNS records (CNAME, A record, or TXT challenge) for a connected domain and activate it immediately if valid.
Inputs: domain_id (required), business_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Tools split cleanly across four areas: businesses (list/get/upsert), session context (switch_business/get_active_business), knowledge (list/upsert/delete/reindex), QA (ask/test_retrieval/list_unanswered/health) and domains. The only pairs needing description-level disambiguation are list_businesses vs get_business vs get_active_business, and ask vs test_retrieval, but the descriptions draw those lines explicitly.
Almost everything follows a clear snake_case verb_noun pattern (list_businesses, upsert_knowledge, verify_domain, delete_domain). The only deviations are the bare `ask` and `health`, which are short but still unambiguous in context.
18 tools is on the heavier side but the surface is genuinely multi-domain (businesses, knowledge base, retrieval QA, custom domains), so each tool maps to a real operation. Nothing looks like filler or a duplicate action.
Knowledge (create/read/update/delete/reindex) and domains (add/list/verify/delete) are fully covered, plus useful QA and diagnostic tools. Gaps are minor but real: there is no delete_business or any way to set/complete the Telegram link, only read its status.
Related MCP Connectors
Search and manage your team's knowledge from MCP clients.
Set up and run an in-product AI assistant: widgets, knowledge, MCP connections, usage.
Hosted MCP memory and agent control plane for durable conversations, jobs, and operations.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-driven customer support operations including conversation management, knowledge base, contacts, metrics, and settings via MCP.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to ask plain-language questions and receive answers grounded only in documents the configured role is cleared to read, with the same access-controlled tools available across any client.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants and agents to ask support questions, search knowledge articles, and list available articles from a configured support bot through MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables authorized clients to invoke tenant-aware conversational assistant tools and resources over MCP, including durable conversations, agent configuration, connector policies, and PostgreSQL-backed data.Apache 2.0