AskMeMCP

AskMeMCP

Enables AI assistants to request human input through a web interface during execution. Supports single questions, multiple choice selections, hypothesis challenges, and decision workflows for human-in-the-loop interactions.

Category
访问服务器

README

1) Install dependencies (if not already)
npm install   # or: pnpm install / yarn install
2) Build server (production)
npx nx build askme-server
3) Build UI (production)
npx nx build askme-ui

MCP config Your example config is correct for using the built server in stdio mode:

"ask-me-mcp": {
  "command": "node",
  "args": [
    "C:/Temp/_Work/ask-me-mcp/dist/askme-server/main.js"
  ],
  "disabled": false,
  "disabledTools": [
    "choose-next",
    "challenge-hypothesis",
    "ask-multiple-choice"
  ]
}

AskMeMCP - Human-in-the-Loop MCP Server

AskMeMCP is a Model Context Protocol (MCP) server that enables AI assistants to request human input through a web interface. It implements multiple interactive tools (ask-one-question, ask-multiple-choice, challenge-hypothesis, choose-next), allowing MCP clients like Claude Code to pause execution and wait for human responses.

Features

  • stdio Transport: Direct integration with Claude Code and other MCP clients
  • Self-Contained Server: Serves Angular UI statically - no separate UI server needed
  • Dynamic Port Allocation: Automatically finds available port if default is in use
  • Automatic Browser Opening: Opens UI automatically when requests arrive
  • Real-time Updates: Server-Sent Events for live communication
  • Multiple Tool Types: Single questions, multiple choice, hypothesis challenges, and decision workflows

Installation

Option 1: Using npx (No Installation Required)

You can run Ask-Me MCP directly using npx without installing it globally:

npx ask-me-mcp

Note: The first time you run this, npx will ask for confirmation to install the package temporarily. To skip this confirmation, use:

npx --yes ask-me-mcp

Option 2: Global Installation

npm install -g ask-me-mcp
ask-me-mcp

Configuration for Different Clients

Claude Desktop App

Add to your Claude configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ask-me": {
      "command": "npx",
      "args": ["--yes", "ask-me-mcp"]
    }
  }
}

Claude Code

Using the CLI:

claude mcp add askme -- npx -y ask-me-mcp

Or manually add to your Claude Code configuration:

  • macOS: ~/Library/Application Support/Claude/claude_code_config.json
  • Windows: %APPDATA%\Claude\claude_code_config.json
  • Linux: ~/.config/Claude/claude_code_config.json
{
  "mcpServers": {
    "ask-me": {
      "command": "npx",
      "args": ["--yes", "ask-me-mcp"]
    }
  }
}

Cursor

Add to your Cursor settings (in .cursor/mcp_settings.json in your project root):

{
  "mcpServers": {
    "ask-me": {
      "command": "npx",
      "args": ["--yes", "ask-me-mcp"]
    }
  }
}

VS Code with Continue or Similar Extensions

For VS Code extensions that support MCP, add to your extension's configuration:

{
  "mcpServers": {
    "ask-me": {
      "command": "npx",
      "args": ["--yes", "ask-me-mcp"]
    }
  }
}

Port Configuration

The server has two port behaviors:

  1. Auto-discovery (default): Finds available port starting from 3000

    npx --yes ask-me-mcp
    
  2. Fixed port: Uses exact port specified with --port (fails if port is in use)

    npx --yes ask-me-mcp --port 8080
    

For Claude Code configuration with fixed port:

{
  "mcpServers": {
    "ask-me": {
      "command": "npx",
      "args": ["--yes", "ask-me-mcp", "--port", "8080"]
    }
  }
}

Option 3: Build from Source

# Clone the repository
git clone https://github.com/yourusername/AskMeMCP.git
cd AskMeMCP

# Install dependencies
npm install

# Build all projects
npm run build

# Configure Claude Code with full path

Add to your Claude Code configuration:

{
  "mcpServers": {
    "ask-me": {
      "command": "node",
      "args": ["/full/path/to/AskMeMCP/dist/askme-server/main.js"]
    }
  }
}

Usage

Once configured, you can use the available tools in Claude Code:

ask-one-question Tool

Please use the ask-one-question tool to ask me what my favorite color is

ask-multiple-choice Tool

Please use the ask-multiple-choice tool with these questions:
{
  "questions": [
    {
      "text": "Which deployment environments should we target?",
      "options": ["Development", "Staging", "Production"]
    },
    {
      "text": "Which features should be included in this release?",
      "options": ["User Authentication", "Dashboard Updates", "API Improvements", "Mobile Support"]
    }
  ]
}

All requests will appear in the web UI where you can provide responses. For multiple choice questions, you can select multiple options and add comments to each choice.

Architecture

  • askme-server: stdio MCP server with embedded HTTP bridge for browser communication
  • askme-ui: Angular 20+ frontend with reactive UI using signals
  • askme-shared: Shared TypeScript types for frontend-backend communication

Development

# Run the UI in development mode
npx nx serve askme-ui

# Run the server in development mode
npx nx serve askme-server

# Run tests
npx nx test askme-ui
npx nx test askme-server

# Lint code
npx nx lint askme-ui
npx nx lint askme-server

Troubleshooting

Connection Issues with Claude Code

If you see "Connection failed" errors:

  1. Enable Debug Mode: Run with debug logging to see what's happening:

    ASK_ME_MCP_DEBUG=1 claude --debug
    
  2. Check the Server: Test if the server runs correctly:

    npx --yes ask-me-mcp --help
    
  3. Port Conflicts: If port 3000 is in use, specify a different port:

    claude mcp add ask-me npx --yes ask-me-mcp --port 8080
    
  4. Manual Test: Run the server directly to see any errors:

    npx --yes ask-me-mcp
    

Common Issues

  • First Time Confirmation: The first run of npx ask-me-mcp may ask for confirmation. Use npx --yes to skip this.
  • Port Already in Use: The server automatically finds an available port, but you can specify one with --port
  • Browser Not Opening: If the browser doesn't open automatically, manually navigate to the port shown in debug logs

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选