belline-mcp-server

v0.1.1
io.github.andreasbaidasdubai-hash/belline-mcp-server Checked 3 days ago Published 16 days ago

Model Context Protocol server for Belline: install an AI receptionist on a website from an editor.

Belline MCP server Put a working AI receptionist on a website without leaving your editor. Belline answers a business's website chat: it knows the opening hours, the service list and the house rules, and once the business has a real account it books against a real diary. This server exposes that to an AI coding agent over the Model Context Protocol, so an agent building a small business's site can add the receptionist as part of the build. It exists because the ordinary signup cannot be done by an agent: it needs a six-digit code out of an email inbox.

Summary extracted from the README.

Belline MCP server

Put a working AI receptionist on a website without leaving your editor.

Belline answers a business's website chat: it knows the opening hours, the service list and the house rules, and once the business has a real account it books against a real diary. This server exposes that to an AI coding agent over the Model Context Protocol, so an agent building a small business's site can add the receptionist as part of the build.

It exists because the ordinary signup cannot be done by an agent: it needs a six-digit code out of an email inbox. So the first tool here creates a preview venue instead — no account, no card, no code — which a person turns into a real account later by following a claim link.


Install

Nothing to clone and nothing to build — npx fetches it on first use.

Claude Code

claude mcp add belline -- npx -y @bellineai/mcp-server

On a first run you have no key and do not need one. Once create_preview_venue has given you one, add it:

claude mcp add belline --env BELLINE_API_KEY=bk_your_key -- npx -y @bellineai/mcp-server

Or, in .mcp.json at the root of the project you are working on (commit this and everyone on the team gets the same server):

{
  "mcpServers": {
    "belline": {
      "command": "npx",
      "args": ["-y", "@bellineai/mcp-server"],
      "env": {
        "BELLINE_API_KEY": "bk_your_key_here"
      }
    }
  }
}

Any other MCP client

The same thing, in whatever file your client uses (cursor_settings.json, claude_desktop_config.json, a mcpServers block in an SDK call). The server speaks stdio; there is no HTTP transport and no port.

{
  "mcpServers": {
    "belline": {
      "command": "npx",
      "args": ["-y", "@bellineai/mcp-server"],
      "env": {
        "BELLINE_API_KEY": "bk_your_key_here",
        "BELLINE_BASE_URL": "https://app.belline.ai"
      }
    }
  }
}

From a clone, if you are working on Belline itself

cd mcp
npm install
npm run build
node dist/index.js

The two environment variables

Variable Needed What it is
BELLINE_API_KEY For every tool except create_preview_venue The bk_… key create_preview_venue returned. Shown once.
BELLINE_BASE_URL No Defaults to https://app.belline.ai. Set it only if you are working on Belline itself.

On the first run you have no key, and that is fine. Start the server with no BELLINE_API_KEY, call create_preview_venue, then put the key it returns into the env block and restart. Every other tool refuses until you do, and says so in those words.


The tools

Tool Writes? What it is for
create_preview_venue creates Make a receptionist with no account. Returns the API key, the embed snippet and the claim link.
get_venue no Everything Belline knows: hours, services, languages, snippet, and a preview's remaining allowance.
get_embed_snippet no The one line to paste, and what each attribute does.
set_business_details yes Name, hours, services, staff, languages, FAQs, house rules, allowed origins.
ask_belle spends one conversation Put a visitor's question to the receptionist and read the reply, before you ship.
list_conversations no Recent conversations at a claimed venue. Summaries, not transcripts.
list_bookings no Recent bookings at a claimed venue.
get_claim_link no The URL a person follows to make the preview real.
remove_widget destructive Take the receptionist off the site. Requires confirm: true.

There is deliberately no tool that writes a booking into a real diary, and no tool that creates an account. Both are things a person does.


What a preview actually is

The thing create_preview_venue makes is real and live — the button appears on the site and answers strangers — but it is capped hard, and every cap is enforced on Belline's side rather than promised here:

  • 20 conversations, total, for the life of the preview. Not per day.
  • 12 visitor messages per conversation.
  • Chat only. No phone number, no WhatsApp, no video, no web voice.
  • It cannot take a booking, take a message or fetch a person. Those tools are not given to it, so it cannot do it by accident or be talked into it.
  • It says so. Belle opens every conversation by saying she is a preview, that she is not switched on, and that nothing said to her reaches the business. The button itself carries a "Preview — not live" badge.
  • It is deleted after 14 days unless a person claims it.
  • One per network per day.

Tell the person you are building for all of this. A receptionist that disappears in a fortnight is not a pleasant surprise.

Claiming

get_claim_link returns a URL. A person at the business opens it, creates a real account with the ordinary email confirmation, and everything carries over — the hours, the services, the languages, and the embed key, so the line already pasted into the site keeps working and nobody has to edit the site again. The API key keeps working too, and list_conversations and list_bookings start answering.

Unclaimed, the venue and everything in it is deleted. The line left in the site's HTML then does nothing at all: no button, no error, nothing broken.


Working on Belline itself

BELLINE_BASE_URL=http://localhost:3000 node mcp/dist/index.js

The server is a thin wrapper over POST /api/install/v1/venues and friends — see src/app/api/install/v1/ and docs/embed on the marketing site. Anything this server can do, curl can do, which is on purpose: an MCP server that is the only way to reach a feature is a feature nobody can debug.

curl -X POST https://app.belline.ai/api/install/v1/venues \
  -H 'content-type: application/json' \
  -d '{"business_name":"Rose & Thorn","website":"https://roseandthorn.example"}'