Human In The Loop MCP server

Messaging and email

An MCP (Model Context Protocol) server that allows AI assistants to ask questions to humans via Discord.

Your AI app calls the Human In The Loop MCP server, which does the messaging and email work and sends the result back to the chat.

About Human In The Loop

Human In The Loop is a community MCP server from KOBA789, filed in our directory under messaging and email. An MCP (Model Context Protocol) server that allows AI assistants to ask questions to humans via Discord.

At a glance

Publisher
KOBA789 (community)
Runs
See the README for setup
Written in
Rust
License
MIT
GitHub stars
234

How to set up Human In The Loop

  1. Follow the install steps in the Human In The Loop README; it is written in Rust, so have that toolchain ready.
  2. Check the Human In The Loop README for keys or settings; the registry lists none that Human In The Loop requires.
  3. Add Human In The Loop to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Human In The Loop tools to confirm the connection.
  5. Run one read-only task with Human In The Loop first, and keep your app asking before each tool call until the results look right.

Human In The Loop compared with similar servers

  • Backlot by brekkylab has fewer GitHub stars than Human In The Loop (227 against 234); both are community servers, and both run locally.
  • EasyEDA Copilot by biosshot has more GitHub stars than Human In The Loop (235 against 234); both are community servers, and both run locally.
  • Autopilot Jobhunt by tarunlnmiit has fewer GitHub stars than Human In The Loop (219 against 234); both are community servers, and both run locally.

Before you connect Human In The Loop

  • Give Human In The Loop its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Human In The Loop tool call until you trust what it does with them.
  • Treat text that Human In The Loop fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Human In The Loop on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Human In The Loop

How marketing and sales teams put Human In The Loop to work, by company size. Pick the size closest to yours and start Human In The Loop on one use case.

Small business

  • A small team can have Human In The Loop summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Human In The Loop and send them only after a read, keeping the personal tone customers expect.
  • Human In The Loop runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Human In The Loop to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Human In The Loop so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start Human In The Loop on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can deploy Human In The Loop with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Human In The Loop to find what employees ask most across channels and answer it once, in the right place.
  • Human In The Loop is a community server, so have security review the code and pin a version before Human In The Loop touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Human In The Loop README

From KOBA789/human-in-the-loop on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Human-in-the-Loop MCP Server

An MCP (Model Context Protocol) server that allows AI assistants to ask questions to humans via Discord.

Overview

This MCP server is used when AI assistants need human input or judgment during their work. For example:

  • When having an LLM create documentation, the AI designs the structure while humans provide specific content
  • When the AI needs confirmation on uncertain decisions
  • When specialized knowledge or personal information is required

Requirements

  • Rust (1.70 or higher)
  • Discord account and bot
  • MCP-compatible AI client (Claude Desktop, Copilot Edits, etc.)

Setup

1. Create Discord Bot
  1. Go to Discord Developer Portal
  2. Create a new application
  3. Create a bot in the Bot section and obtain the token
  4. Set required permissions:
    • Send Messages
    • Create Public Threads
    • Read Message History
  5. Enable privileged gateway intents in Bot section:
    • Message Content Intent
2. Install
cargo install --git https://github.com/KOBA789/human-in-the-loop.git

Connecting with MCP Clients

Claude Desktop Configuration

Add the following to claude_desktop_config.json:

{
  "mcpServers": {
    "human-in-the-loop": {
      "command": "human-in-the-loop",
      "args": [
        "--discord-channel-id", "channel-id",
        "--discord-user-id", "user-id"
      ],
      "env": {
        "DISCORD_TOKEN": "your-discord-bot-token"
      }
    }
  }
}
Claude Code Configuration

For Claude Code (claude.ai/code), add to your MCP settings:

{
  "mcpServers": {
    "human-in-the-loop": {
      "command": "human-in-the-loop",
      "args": [
        "--discord-channel-id", "channel-id",
        "--discord-user-id", "user-id"
      ]
    }
  }
}

Set the Discord token as an environment variable before running Claude Code:

export DISCORD_TOKEN="your-discord-bot-token"
claude

Note: The server automatically reads the Discord token from the DISCORD_TOKEN environment variable. You can also pass it via --discord-token argument if needed.

Usage

AI assistants can ask questions to humans using the ask_human tool:

Human: Please create a documentation outline. You can ask the human as you need.
Assistant: I'll create a documentation outline. Let me ask you some questions first.
[Uses ask_human tool]

The AI posts questions in Discord and mentions the specified user. When the user replies in Discord, the response is returned to the AI.

How It Works

  1. AI assistant calls the ask_human tool
  2. MCP server creates a thread in the specified Discord channel (or uses existing thread)
  3. Posts the question and mentions the specified user
  4. Waits for user's reply
  5. Returns the reply content to the AI assistant

Finding Discord IDs

Getting Channel ID
  1. Enable Developer Mode in Discord (Settings → Advanced → Developer Mode)
  2. Right-click on channel → "Copy ID"
Getting User ID
  1. Right-click on user → "Copy ID"

Roadmap

  • Future Migration to MCP Elicitation: Once MCP's Elicitation implementation becomes more widespread and standardized, we plan to migrate the UI from Discord to native MCP Elicitation. This will provide a more integrated experience directly within MCP-compatible clients.

Questions about Human In The Loop

What is the Human In The Loop MCP server?

An MCP (Model Context Protocol) server that allows AI assistants to ask questions to humans via Discord. Human In The Loop is maintained by KOBA789 on GitHub at KOBA789/human-in-the-loop, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Human In The Loop MCP server?

Human In The Loop doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (KOBA789/human-in-the-loop). Like most servers, Human In The Loop ends with a command or URL you paste into your AI app's MCP config.

Does Human In The Loop need an API key?

The registry lists no required keys for Human In The Loop. Check the Human In The Loop README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Human In The Loop an official MCP server?

No. Human In The Loop is a community server maintained by KOBA789. Community servers can be excellent; read the code and the open issues before you give Human In The Loop access to company data.

What license is Human In The Loop under?

Human In The Loop is released under the MIT license, according to its GitHub repository. The license covers the code of Human In The Loop; the service it connects to has its own terms.