Skip to content
English
  • There are no suggestions because the search field is empty.

moinAI MCP server

Manage and test AI agents and the Knowledge Base directly from an AI assistant

The moinAI MCP server connects AI assistants such as Claude, Cursor or ChatGPT to the moinAI Hub. MCP stands for Model Context Protocol, an open standard that lets AI applications access other systems. Via the MCP server, the Knowledge Base, AI agents, webhooks and AI Actions can be managed by prompt and tested in the AI Playground. Instead of working through the individual menu items of the Hub, a description in natural language is enough, e.g. “Create an AI agent for returns.”

Prerequisites: a compatible AI assistant and, for changes, the Editor or Owner role. The manual setup in Claude Desktop also requires Node.js. The setup via plugin does not require Node.js.

 

  1. How it works
    1.1 How a request is processed
    1.2 Preview and live environment
  2. Use cases
  3. Setup
    3.1 Compatible AI assistants
    3.2 Connection via Hub login (example: Claude)
    3.3 Setup prompt for other AI assistants
    3.4 Set permissions
    3.5 Deprecated: connection via API key
  4. Capabilities by area
  5. Best practices

 

1. How it works

The moinAI MCP server connects the AI assistant to the AI chatbot in the moinAI Hub. The server carries out the AI assistant's requests and first saves all changes in the preview. Changes only take effect in live operation once they are published in the Hub.

1.1 How a request is processed

The MCP server runs at moinAI, so no separate installation is needed. The MCP client of the AI assistant forwards each request to the moinAI MCP server. The MCP server carries out the request in the AI chatbot, e.g. by creating an AI agent, and returns the result to the AI assistant. For a single task, the AI assistant often runs several steps in a row, such as creating an AI agent, adding knowledge and testing the result in the AI Playground.

1.2 Preview and live environment

Content created or changed via the MCP server is saved in the preview. This applies to AI agents, instructions, AI Actions, knowledge in the Knowledge Base, answer templates and the elements of Basic CX. The changes can be checked in the preview. They only take effect in live operation after a click on Publish at the top right of the Hub. For more information, see the article on the publishing status. Publishing via the MCP server is not possible, as the server is configured to prevent it. The approval for live operation therefore always stays with the responsible people in the Hub.

Settings without a preview are the exception and apply immediately: the use case of the channel, formatting, the persona, the communication rules, multilingualism and the chat widget. The MCP server only changes these settings before the go-live. After that, such changes are made in the Hub only.

Knowledge articles and webhooks deleted via the MCP server are removed permanently and immediately, including from the preview. There is no confirmation prompt and no recycle bin. If a deleted webhook is linked to an AI Action that is live, that AI Action stops working.

 

2. Use cases

The video shows an example of how an online shop for home accessories automates a question about the size and stock level of a wall clock.

 
Video: Example based on the fictional shop Moinis Hafenhaus. (English version to be published soon)
 

Video content as text

A user asks in the chat widget about the size and stock level of the Lotse wall clock. The AI chatbot cannot answer the question yet and suggests other topics. In the AI assistant, a prompt creates an AI agent with the product data. A second prompt creates a webhook for the live stock query and links it to the AI agent as an AI Action. A test run with 100 questions in the AI Playground finds two edge cases, which the AI assistant fixes. After that, the AI chatbot gives the dimensions and the current stock level. Finally, the change is published in the Hub and is then live.

Further typical tasks, each with an example prompt. All capabilities are described in detail in chapter 4.

Task Example prompt
Maintain knowledge “Do we have any knowledge stored on returns?”
Build AI agents “Create an AI agent for returns.”
Connect AI Actions “Create a webhook for the order status and test it.”
Test and fine-tune “Test in the AI Playground how the AI chatbot answers a question about delivery times.”
Trace errors “Why does the question about shipping costs get this answer?”

 

3. Setup

The connection runs via the endpoint https://api.moin.ai/mcp. Sign-in works via the Hub login: on first access, the AI assistant opens the browser for this. After the login, the permissions are set on a consent page. No API key is needed.

3.1 Compatible AI assistants

The moinAI MCP server works with AI assistants that can connect their own MCP servers via a URL. The setup is described in the guides of each AI assistant:

For any other AI assistant, an example setup prompt for other AI assistants is available.

3.2 Connection via Hub login (example: Claude)

Claude Code and Claude Cowork with plugin

The plugin contains the connection to the MCP server and the playbook. The playbook teaches the AI assistant how things work in moinAI, e.g. how the preview and the live environment interact, and the path from AI agent to knowledge, testing and publishing. In Claude Code, two commands install the plugin:

claude plugin marketplace add knowhereto/moin-mcp

claude plugin install moin-ai@moin-ai

In a new session, the /mcp command shows the server and starts the sign-in. After the Hub login and the selection on the consent page, the connection is active.

Claude Code without plugin
claude mcp add --transport http moin-ai https://api.moin.ai/mcp

Claude Desktop and Claude in the browser:
Under Customize > Connectors, select Add > Add custom connector and enter a name and the URL https://api.moin.ai/mcp. The Hub login and the consent page follow. In Team and Enterprise plans, Owners add the connector, and then each person signs in individually.

Alternatively, Claude Desktop connects via the configuration file and the helper program mcp-remote, which requires Node.js. Add the configuration in Claude Desktop under Settings > Developer > Edit Config in the file claude_desktop_config.json:

{
"mcpServers": {
"moin-ai": {
"command": "npx",
"args": ["mcp-remote", "https://api.moin.ai/mcp"]
}
}
}

Further setup options and the manual installation of the playbook are described in the documentation of the moinAI MCP server on GitHub.

 

3.3 Setup prompt for other AI assistants

With the following example prompt, an AI assistant explains the setup for its own environment:

Set up the moinAI MCP server in this AI assistant.

Endpoint: https://api.moin.ai/mcp (Streamable HTTP)

Sign-in uses OAuth with the moinAI Hub login, no API key is needed. On first access, the browser opens with the Hub login and a consent page where the AI chatbots and the permissions are selected.

Changes via the MCP server are always saved in the preview and only take effect live after publishing in the moinAI Hub.

Explain the setup step by step for exactly this AI assistant.

3.4 Set permissions

After the Hub login, a consent page opens. Two things are set there:

  • Which AI chatbots are accessible: a selection from all AI chatbots the Hub account has access to.
  • What the AI assistant may do: Read only, i.e. view the configuration and test in the AI Playground, or Read & write, i.e. also make changes in the preview.

The role in the Hub limits the selection: write access can only be granted with the Editor or Owner role. If several AI chatbots are selected, the prompt names the AI chatbot to work on.

The consent page sets the access level and the AI chatbots.

Figure: The consent page sets the access level and the AI chatbots.

 

3.5 Deprecated: connection via API key

The MCP server still accepts an API key in the x-api-key header. This method works but will be removed in a later version. It is only suitable for AI assistants that do not support the Hub login. An API key applies to exactly one AI chatbot.

  1. In the Hub, open Bot Settings > API Settings.
  2. Click Generate API key to create a new API key and copy it.
  3. In the MCP server (AI assistants) section, switch on Allow MCP access for this API key.
  4. 4. Under Access level, choose Read only or Read & write. 
  5. Store the API key in the AI assistant as the x-api-key header. The commands are listed in the documentation on GitHub.

To switch an existing connection from API key to Hub login, remove the header from the configuration. On the next start, sign-in then runs via the Hub login.


Figure: The toggle in the MCP server (AI assistants) section enables the API key for MCP.

The API key grants extensive access and must never be shared publicly, e.g. in public repositories. If misuse is suspected, replace the API key under Bot Settings > API Settings with Regenerate API key or delete it with the bin icon. Services that use the old key lose access immediately.

 

4. Capabilities by area

The AI assistant chooses the right tools itself. A description in natural language is enough, and the tool names do not need to be mentioned.

Area Possible via the MCP server
Overview Retrieve name, status, languages and channels
Channel settings Change use case, formatting, persona, communication rules and multilingualism (via MCP only before the go-live)
Chat widget Change design, texts, privacy notice and avatar (via MCP only before the go-live)
Knowledge Base Search, create, retrieve, change and delete knowledge articles
Websites and PDFs Add and change resources and connect them to AI agents
AI agents List, create and activate AI agents, read and set instructions
Webhooks List, create, change, delete and test webhooks
AI Actions Link a webhook to an AI agent as an AI Action, change or remove it
Answer templates Create and maintain sliders for products or events and link buttons
Basic CX View and change Welcome, Not understood, Happy path, Unhappy path, Rating and Thanks
Test and fine-tune Test questions in the AI Playground, give feedback on the choice of AI agent and on the answer

Forms cannot be created or edited via the MCP server. This is done in the Hub, see the article on the form editor.

The current range of functions with all tools is always available in the documentation of the moinAI MCP server on GitHub.

 

5. Best practices

  • Test before publishing: Check changes in the preview and in the AI Playground, and only then publish them in the Hub.
  • Start with single items: Before changing or deleting many knowledge articles at once, check the change on a single article.
  • Use clear names: Clear titles for knowledge articles and AI agents make them easier to find, for people and for the AI.
  • Grant only the rights needed: For analysis and testing, the Read only option on the consent page is enough.
  • Use the playbook: The playbook is a guide for the AI assistant and is included in the plugin (see Connection via Hub login). With it, the AI assistant follows the processes in moinAI, e.g. on the path from AI agent to testing.

Tests in the AI Playground actually trigger linked webhooks. A webhook for booking appointments, for example, creates a real appointment during a test, which is then booked in the connected system. Delete such test entries there afterwards, or use a test account of the system for testing.

 

Stay up to date
Subscribe to the monthly product updates and be among the first to find out about new features and improvements, delivered straight to your inbox.