WisebotAI

Use WisebotAI from Claude Code, Cursor and VS Code

Connect the WisebotAI MCP server (@wisebotai/mcp) to Claude Code, Cursor, VS Code, Windsurf or any MCP client. You can then chat with your agents, search your knowledge base and run workflows from your editor.

Use WisebotAI from Claude Code, Cursor and VS Code

@wisebotai/mcp is the WisebotAI Model Context Protocol server. Once it's connected, the AI assistant in your editor can:

  • talk to your WisebotAI agents
  • search your knowledge base
  • run your workflows
  • read customer conversations

All of this uses your organization's data and permissions.

There are two ways to connect:

OptionHow it runsBest for
Local (npx)npx -y @wisebotai/mcp runs on your machine over stdioAny MCP client; no network setup
Hosted (remote URL)https://app.wisebotai.com/api/mcp over Streamable HTTPClients that support remote servers; nothing to install

Both need an organization API key (wb_live_…). Create one in the dashboard under Settings → API keys.

Warning: The key gives access to your whole organization. Keep it in an environment variable or your editor's secret prompt, and never commit it to git.


Claude Code

Local:

claude mcp add wisebotai -e WISEBOTAI_API_KEY=wb_live_xxx -- npx -y @wisebotai/mcp

Hosted:

claude mcp add --transport http wisebotai https://app.wisebotai.com/api/mcp --header "Authorization: Bearer wb_live_xxx"

Add -s user to make WisebotAI available in every project, or -s project to share it with your team through .mcp.json. With -s project, reference the key as ${WISEBOTAI_API_KEY} instead of pasting it. Run claude mcp list to check that it connected.


Cursor

Create .cursor/mcp.json in your project, or ~/.cursor/mcp.json for all projects:

{
  "mcpServers": {
    "wisebotai": {
      "command": "npx",
      "args": ["-y", "@wisebotai/mcp"],
      "env": { "WISEBOTAI_API_KEY": "${env:WISEBOTAI_API_KEY}" }
    }
  }
}

Hosted:

{
  "mcpServers": {
    "wisebotai": {
      "url": "https://app.wisebotai.com/api/mcp",
      "headers": { "Authorization": "Bearer ${env:WISEBOTAI_API_KEY}" }
    }
  }
}

Set WISEBOTAI_API_KEY in the environment Cursor starts from, then turn the server on under Settings → MCP.


VS Code

Create .vscode/mcp.json. VS Code prompts for the key once and stores it securely:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "wisebotai-key",
      "description": "WisebotAI API key (wb_live_…)",
      "password": true
    }
  ],
  "servers": {
    "wisebotai": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@wisebotai/mcp"],
      "env": { "WISEBOTAI_API_KEY": "${input:wisebotai-key}" }
    }
  }
}

Hosted:

{
  "inputs": [
    { "type": "promptString", "id": "wisebotai-key", "description": "WisebotAI API key", "password": true }
  ],
  "servers": {
    "wisebotai": {
      "type": "http",
      "url": "https://app.wisebotai.com/api/mcp",
      "headers": { "Authorization": "Bearer ${input:wisebotai-key}" }
    }
  }
}

Open Copilot Chat in Agent mode to see the WisebotAI tools.


Windsurf and other MCP clients

Most clients accept the same mcpServers block shown for Cursor. In Windsurf (Cascade), add it to the MCP config from Cascade → MCP servers → Configure. For a remote server, Windsurf uses serverUrl in place of url.

For any other client:

  • Command: npx -y @wisebotai/mcp
  • Environment: WISEBOTAI_API_KEY=wb_live_…
  • Remote URL: https://app.wisebotai.com/api/mcp, with the header Authorization: Bearer wb_live_…

Tools

ToolWhat it does
list_agentsLists your agents with id, model, status, default flag and enabled tools
chat_with_agentSends a message to an agent (or your default agent) and returns its reply. The agent runs with its own instructions, knowledge base and tools. Pass the returned conversationKey back to continue the conversation
search_knowledgeSearches your knowledge base and returns the best passages with their source files
list_knowledge_filesLists the files in your knowledge base
list_workflowsLists your workflows
run_workflowRuns a workflow with inputs and returns its result and runId
get_workflow_runReturns a run's status, timing, result and per-step progress
list_conversationsLists recent customer conversations, filtered by status or agent
get_conversationReturns one conversation and its full transcript

Try prompts like these:

  • "List my WisebotAI agents, then ask the support agent how it would answer 'Can I get a refund after 30 days?'"
  • "Search our WisebotAI knowledge base for the onboarding checklist and summarize it."
  • "Show me escalated conversations from today and what customers were asking."
  • "Run the research-brief workflow with topic = 'AI agents in healthcare'."

Note: Each new conversation started with chat_with_agent counts toward your plan's conversation quota, just like a website-widget chat. A workflow run can send emails or call external APIs, depending on how the workflow is built.


Configuration

VariableRequiredDefault
WISEBOTAI_API_KEYYesNone. Must start with wb_live_
WISEBOTAI_BASE_URLNohttps://app.wisebotai.com. Change it only for a dedicated or self-hosted deployment

Troubleshooting

  • 401 / "Check that WISEBOTAI_API_KEY is a valid…": The key is wrong or was revoked. Create a new one under Settings → API keys.
  • The tools don't appear: Restart the client after editing its config. In Claude Code, run claude mcp list. npx needs Node.js 20 or newer.
  • chat_with_agent reports QUOTA_EXCEEDED: Your plan's AI reply limit for this period has been reached. See Plans and subscriptions.
  • A workflow tool says "Authentication required": API-key access to workflows has to be enabled on your deployment. Contact support.

See also TypeScript SDK and Wisebot CLI and HTTPS API.