MCP-Human
Enables AI assistants to request human input by creating tasks on Amazon Mechanical Turk, integrating human-in-the-loop capabilities via the MCP standard.
README
MCP-Human: Human Assistance for AI Assistants
A Model Context Protocol (MCP) server that enables AI assistants to get human input when needed. This tool creates tasks on Amazon Mechanical Turk that let real humans answer questions from AI systems. While primarily a proof-of-concept, it demonstrates how to build human-in-the-loop AI systems using the MCP standard. See limitations for current constraints.

Setup
Prerequisites
- Node.js 16+
- AWS credentials with MTurk permissions. See instructions below.
- AWS CLI (recommended for setting aws credentials)
Configuring AWS credentials
# Configure AWS credentials for profile mcp-human
export AWS_ACCESS_KEY_ID="your_access_key"
export AWS_SECRET_ACCESS_KEY="your_secret_key"
aws configure set aws_access_key_id ${AWS_ACCESS_KEY_ID} --profile mcp-human
aws configure set aws_secret_access_key ${AWS_SECRET_ACCESS_KEY} --profile mcp-human
Configuring MCP server with your MCP client
Claude code
Sandbox mode:
claude mcp add human -- npx -y mcp-human@latest
The server defaults to sandbox mode (for testing). If you want to submit real requests, use MTURK_SANDBOX=false.
claude mcp add human -e MTURK_SANDBOX=false -- npx -y mcp-human@latest
Generic
Update the configuration of your MCP client to the following:
{
"mcpServers": {
"human": {
"command": "npx",
"args": ["-y", "mcp-human@latest"]
}
}
}
e.g.: Claude Desktop (MacOS): ~/Library/Application\ Support/Claude/claude_desktop_config.json
Configuration
The server can be configured with the following environment variables:
| Variable | Description | Default |
|---|---|---|
MTURK_SANDBOX |
Use MTurk sandbox (true) or production (false) |
true |
AWS_REGION |
AWS region for MTurk | us-east-1 |
AWS_PROFILE |
AWS profile to use for credentials | mcp-human |
DEFAULT_REWARD |
The reward amount in USD. | 0.05 |
FORM_URL |
URL where the form is hosted. Needs to be https. | https://syskall.com/mcp-human/ |
Setting Up AWS User with Mechanical Turk Access
To create an AWS user with appropriate permissions for Mechanical Turk:
-
Log in to the AWS Management Console:
- Go to https://aws.amazon.com/console/
- Sign in as a root user or an administrator
-
Create a new IAM User:
- Navigate to IAM (Identity and Access Management)
- Click "Users" > "Create user"
- Enter a username (e.g.,
mturk-api-user) - Click "Next" to proceed to permissions
-
Set Permissions:
- Choose "Attach existing policies directly"
- Search for and select
AmazonMechanicalTurkFullAccess - If you need more granular control, you can create a custom policy with specific MTurk permissions
- Click "Next" and then "Create user"
-
Create Access Keys:
- After user creation, click on the username to go to their detail page
- Go to the "Security credentials" tab
- In the "Access keys" section, click "Create access key"
- Choose "Application running outside AWS" or appropriate option
- Click through the wizard and finally "Create access key"
-
Save Credentials:
- Download the CSV file or copy the Access key ID and Secret access key
- These will be used as
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYenvironment variables - Important: This is the only time you'll see the secret access key, so save it securely
-
Configure MTurk Requester Settings:
- Visit the MTurk Requester website: https://requester.mturk.com/
- Set up payment method and other account details
- For testing, use the MTurk Sandbox: https://requestersandbox.mturk.com/
Note: Always start with the MTurk Sandbox (
MTURK_SANDBOX=true) to test your integration without spending real money. Only switch to production when you're confident in your implementation.
Architecture
This system consists of two main components:
- MCP Server: A server implementing the Model Context Protocol that integrates with MTurk
- Form: A static HTML form.
The AI assistant connects to the MCP server, which creates tasks on MTurk. Human workers complete these tasks through a form, and their responses are made available to the AI assistant.
The Mechanical Turk form used is hosted on GitHub pages: https://syskall.com/mcp-human/. It gets populated with data through query parameters.
MCP Tools
askHuman
Allows an AI to ask a question to a human worker on Mechanical Turk.
Parameters:
question: The question to ask a human workerreward: The reward amount in USD (default: $0.05)title: Title for the HIT (optional)description: Description for the HIT (optional)hitValiditySeconds: Time until the HIT expires in seconds (default: 1 hour)
Example usage:
// From the AI assistant's perspective
const response = await call("askHuman", {
question:
"What's a creative name for a smart home device that adjusts lighting based on mood?",
reward: "0.25",
title: "Help with creative product naming",
hitValiditySeconds: 3600, // HIT valid for 1 hour
});
If a worker responds within the HIT's validity period, the response will contain their answer. If not, it will return a HIT ID that can be checked later.
checkHITStatus
Check the status of a previously created HIT and retrieve any submitted assignments.
Parameters:
hitId: The HIT ID to check status for
Example usage:
// From the AI assistant's perspective
const status = await call("checkHITStatus", {
hitId: "3XMVN1BINNIXMTM9TTDO1GKMW7SGGZ",
});
Resources
mturk-account
Provides access to MTurk account information.
URIs:
mturk-account://balance- Get account balancemturk-account://hits- List HITsmturk-account://config- Get configuration info
Limitations
- Need to implement progress notifications to avoid getting timing out.
- Currently only supports simple text-based questions and answers
- Limited to one assignment per HIT
- No support for custom HTML/JS in the form
- Simple polling for results rather than a webhook approach
- Uses MTurk's ExternalQuestion format, which requires hosting a form
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。