trackmcp
Back to directory
masony817

ask-human-mcp

View on GitHub

Stop your ai from hallucinating. gives it an escape route when confused instead of false confidence. Built for the Model Context Protocol to enhance AI capabili

150 stars PythonOthers Updated Sep 28, 2025

Documentation

ask-human mcp ๐Ÿง‘โ€๐Ÿ’ป๐Ÿค๐Ÿค–

PyPI version
License: MIT
Python 3.8+
"Buy Me A Coffee"

stop your ai from hallucinating. gives it an escape route when confused instead of false confidence.

the pain

ai blurts out an endpoint that never existed

the agent makes assumptions that are simply not true and has false confidence

repeat x100 errors and your day is spent debugging false confidence and issues when you could simply ask a question

the fix

an mcp server that lets the agent raise its hand instead of hallucinating. feels like mentoring a sharp intern who actually asks before guessing.

agent โ†’ ask_human()

โฌ‡

question lands in ask_human.md

โฌ‡

you swap "PENDING" for the answer

โฌ‡

agent keeps coding

sample file:

markdown
### Q8c4f1e2a
ts: 2025-01-15 14:30  
q: which auth endpoint do we use?  
ctx: building login form in auth.js  
answer: PENDING

you drop:

markdown
answer: POST /api/v2/auth/login

boom. flow continues and hopefully the issues are solved.

why it's good

  • pip install ask-human-mcp โ†’ done
  • zero config, cross-platform
  • watches the file, instant feedback
  • multiple agents, no sweat
  • locks + limits so nothing catches fire
  • full q&a history in markdown (nice paper-trail for debugging)

30-sec setup

bash
pip install ask-human-mcp
ask-human-mcp

`.cursor/mcp.json`:

json
{
  "mcpServers": {
    "ask-human": { "command": "ask-human-mcp" }
  }
}

restart cursor and vibe.

how it works

1. ai gets stuck โ†’ calls `ask_human(question, context)`

2. question logged โ†’ appears in `ask_human.md` with unique ID

3. human answers โ†’ replace "PENDING" with your response

4. ai continues โ†’ uses your answer to proceed

the ai receives your answer and keeps coding!

config options (if you want them)

command line

bash
ask-human-mcp --help
ask-human-mcp --port 3000 --host 0.0.0.0  # http mode
ask-human-mcp --timeout 1800               # 30min timeout  
ask-human-mcp --file custom_qa.md          # custom q&a file
ask-human-mcp --max-pending 50             # max concurrent questions
ask-human-mcp --max-question-length 5000   # max question size
ask-human-mcp --rotation-size 10485760     # rotate file at 10mb

different clients

cursor (local):

json
{
  "mcpServers": {
    "ask-human": {
      "command": "ask-human-mcp",
      "args": ["--timeout", "900"]
    }
  }
}

cursor (http):

json
{
  "mcpServers": {
    "ask-human": {
      "url": "http://localhost:3000/sse"
    }
  }
}

claude desktop:

json
{
  "mcpServers": {
    "ask-human": {
      "command": "ask-human-mcp"
    }
  }
}

what's in the box

  • zero configuration โ†’ works out of the box
  • file watching โ†’ instant response when you save answers
  • timeout handling โ†’ questions don't hang forever
  • concurrent questions โ†’ handle multiple ai agents
  • persistent logging โ†’ full q&a history in markdown
  • cross-platform โ†’ windows, macos, linux
  • mcp standard โ†’ works with any mcp client
  • input validation โ†’ size limits and sanitization
  • file rotation โ†’ automatic archiving of large files
  • resource limits โ†’ prevent dos and memory leaks
  • robust parsing โ†’ handles malformed markdown gracefully

security stuff

  • input sanitization โ†’ removes control characters and validates sizes
  • file locking โ†’ prevents corruption from concurrent access
  • secure permissions โ†’ files created with restricted access
  • resource limits โ†’ prevents memory exhaustion and dos attacks
  • path validation โ†’ ensures files are written to safe locations

limits (so nothing breaks)

thingdefaultwhat it does
question length10kbmax characters per question
context length50kbmax characters per context
pending questions100max concurrent questions
file size100mbmax ask file size
rotation size50mbsize at which files are archived

platform support

  • windows โ†’ full support with native file locking
  • macos โ†’ full support with fsevents file watching
  • linux โ†’ full support with inotify file watching

api stuff

ask_human(question, context="")

ask the human a question and wait for response.

python
answer = await ask_human(
    "what database should i use for this project?",
    "building a chat app with 1000+ concurrent users"
)

other tools

  • `list_pending_questions()` โ†’ get questions waiting for answers
  • `get_qa_stats()` โ†’ get stats about the q&a session

development

from source

bash
git clone https://github.com/masonyarbrough/ask-human-mcp.git
cd ask-human-mcp
pip install -e ".[dev]"
ask-human-mcp

tests

bash
pytest tests/ -v

code quality

bash
black ask_human_mcp tests
ruff check ask_human_mcp tests  
mypy ask_human_mcp

contributing

would love any contributors

issues

use the github issue tracker to report bugs or request features.

you can also just email me: mason@kallro.com

include:

  • python version
  • operating system
  • mcp client (cursor, claude desktop, etc.)
  • error messages or logs
  • steps to reproduce

changelog

see CHANGELOG.md for version history.

license

mit license - see LICENSE file for details.

thanks

Frequently asked questions

What is ask-human-mcp?

ask-human-mcp is Stop your ai from hallucinating. gives it an escape route when confused instead of false confidence. Built for the Model Context Protocol to enhance AI capabili

How do I install ask-human-mcp?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is ask-human-mcp open source?

Yes โ€” it is hosted on GitHub at https://github.com/masony817/ask-human-mcp and has 150 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP