# Chat Human MCP Server
An MCP Server that allows AI agents to send messages to human users via chat and ask humans anything.
# Tools
## send_message
Send a message to a human user via chat, optionally waiting for a response.
- **Input**
- `message` (string, required): The message content to send.
- `requires_response` (boolean, required): Whether to wait for a user response.
# Prerequisites
- Node.js
- pnpm
- Discord bot with `Message Content Intent` enabled, and has necessary permissions:
- Send Messages
- Read Message History
- Read Messages/View Channels
# Supported platforms
- Discord
# Installation
First, you need to clone the repository and install dependencies:
```bash
git clone https://github.com/palon7/mcp-chat-human.git
cd mcp-chat-human
pnpm install
pnpm build
```
## Claude Code
```bash
claude mcp add --transport stdio chat-human -- node /path/to/your/directory/mcp-chat-human/build/index.js
```
And edit your config to add environment variables:
```json
"mcpServers": {
"chat-human": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/your/directory/mcp-chat-human/build/index.js"
],
"env": {
"DISCORD_API_KEY": "YOUR_DISCORD_API_KEY",
"DISCORD_CHANNEL_ID": "YOUR_DISCORD_CHANNEL_ID"
}
}
}
```