User Prompt MCP
@nazar256
A Model Context Protocol (MCP) server for Cursor that enables requesting user input during generation
Overview
What is User Prompt MCP?
User Prompt MCP is a Model Context Protocol (MCP) server that enables Cursor (or any MCP‑compatible client) to request input from users during AI model generation without ending the generation process. It bridges the AI and the user for a more interactive experience.
How to use User Prompt MCP?
Install the pre‑compiled binary using the provided installation script, build from source (Go 1.18+), or download a binary from the releases page. Configure it as an MCP server in Cursor by adding the command user-prompt-mcp to the MCP servers JSON and optionally set a timeout with --timeout <seconds> or the USER_PROMPT_TIMEOUT environment variable.
Key features of User Prompt MCP
- Requests user input during active model generation
- Presents prompts in a simple dialog box with text wrapping
- Works on Linux (zenity) and macOS (osascript)
- Uses stdio transport for seamless Cursor integration
- Configurable timeout (default 20 minutes)
Use cases of User Prompt MCP
- AI assistant asks clarifying questions before completing a request
- User provides missing parameters or preferences mid‑generation
- Interactive troubleshooting where the AI needs user feedback
- Collaborative problem‑solving between user and model
FAQ from User Prompt MCP
What does User Prompt MCP do that Cursor’s built‑in chat doesn’t?
It lets the AI request input without ending the current generation, enabling a back‑and‑forth conversation within a single model response.
How do I install User Prompt MCP?
The easiest way is to run the install script: curl -sSL https://raw.githubusercontent.com/nazar256/user-prompt-mcp/main/install.sh | bash. You can also build from source with go install or download a binary from the releases page.
Can I customize how long the server waits for input?
Yes. Use the --timeout flag (e.g., user-prompt-mcp --timeout 600) or set the USER_PROMPT_TIMEOUT environment variable (in seconds). The default is 20 minutes.
What runtime or dependencies are needed?
For the binary, no runtime is needed. For GUI, Linux requires zenity and macOS uses built‑in osascript. If building from source, Go 1.18+ is required.