render-question-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@render-question-mcp Ask me for my name, email, and years of experience"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
render-question-mcp
An MCP (Model Context Protocol) server that enables AI agents to collect structured, validated user input through native UI forms using elicitation.
Features
6 Question Types: text, number, boolean, radio, dropdown, checkbox (with true multi-select support!)
Multi-Select Checkboxes: Native array support for selecting multiple options
Comprehensive Validation: required fields, min/max values, patterns, email/URI formats
Type-Safe: Built with TypeScript and Zod for runtime validation
Native UI: Renders forms in the MCP client's native interface
Zero Ambiguity: Eliminates conversational back-and-forth for data collection
Related MCP server: prompt-gui-mcp
Installation
Prerequisites
Node.js >= 20.0.0
An MCP-compatible client (Cursor, Claude Desktop, VS Code, etc.)
Getting Started
First, install the render-question-mcp server with your client.
Standard config works in most tools:
{
"mcpServers": {
"render-question": {
"command": "npx",
"args": [
"render-question-mcp@latest"
]
}
}
}Use the Claude Code CLI to add the server:
claude mcp add render-question npx render-question-mcp@latestAdd to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"render-question": {
"command": "npx",
"args": ["render-question-mcp@latest"]
}
}
}Click the button to install:
Or install manually:
Go to Cursor Settings → MCP → Add new MCP Server. Name to your liking, use command type with the command npx render-question-mcp@latest. You can also verify config or add command arguments via clicking Edit.
Project-Specific Configuration
Create .cursor/mcp.json in your project root:
{
"mcpServers": {
"render-question": {
"command": "npx",
"args": ["render-question-mcp@latest"]
}
}
}Follow the MCP install guide, use the standard config above.
Alternatively, install using the VS Code CLI:
code --add-mcp '{"name":"render-question","command":"npx","args":["render-question-mcp@latest"]}'Add via the Cline VS Code extension settings or by updating your cline_mcp_settings.json file:
{
"mcpServers": {
"render-question": {
"command": "npx",
"args": [
"render-question-mcp@latest"
]
}
}
}Follow the MCP Servers documentation. Use the standard config above.
Local Development
For local development and testing:
{
"mcpServers": {
"render-question": {
"command": "node",
"args": ["/absolute/path/to/render-question-mcp/dist/index.js"],
"env": {
"LOG_LEVEL": "debug"
}
}
}
}Verify Installation
After installation, verify render-question-mcp is working:
Restart your MCP client completely
Check connection status:
Cursor: Look for green dot in Settings → Tools & Integrations → MCP Tools
Claude Desktop: Check for "render_question" in available tools
VS Code: Verify in GitHub Copilot settings
Test with a simple query:
Ask me for my name and email address
If you see the AI agent use the render_question tool and display a native form, you're all set! 🎉
Usage
The server provides a single tool: render_question
Basic Example: Single Text Field
{
"questions": [
{
"id": "email",
"type": "text",
"label": "What is your email address?",
"validation": {
"required": true,
"format": "email"
},
"helpText": "We'll use this for project notifications",
"placeholder": "developer@example.com"
}
]
}Example: Multiple Questions Form
{
"title": "Developer Onboarding",
"description": "Help us set up your development environment",
"questions": [
{
"id": "name",
"type": "text",
"label": "Your full name",
"validation": {
"required": true,
"minLength": 2
},
"placeholder": "Jane Doe"
},
{
"id": "experience",
"type": "number",
"label": "Years of experience with TypeScript",
"validation": {
"required": true,
"min": 0,
"max": 50
}
},
{
"id": "role",
"type": "dropdown",
"label": "What's your primary role?",
"options": [
{ "value": "frontend", "label": "Frontend Developer" },
{ "value": "backend", "label": "Backend Developer" },
{ "value": "fullstack", "label": "Full-Stack Developer" },
{ "value": "devops", "label": "DevOps Engineer" }
],
"validation": { "required": true }
},
{
"id": "remote",
"type": "boolean",
"label": "Are you working remotely?",
"default": true
}
]
}Question Types
Text Input
{
"id": "username",
"type": "text",
"label": "Username",
"validation": {
"required": true,
"minLength": 3,
"maxLength": 20,
"pattern": "^[a-zA-Z0-9_]+$"
},
"placeholder": "john_doe"
}Number Input
{
"id": "port",
"type": "number",
"label": "Port Number",
"validation": {
"required": true,
"min": 1,
"max": 65535
},
"default": 3000
}Boolean (Single Checkbox)
{
"id": "agree",
"type": "boolean",
"label": "I agree to the terms and conditions",
"validation": {
"required": true
}
}Radio Buttons (Single Choice)
{
"id": "theme",
"type": "radio",
"label": "Select a theme",
"options": [
{ "value": "light", "label": "Light Mode" },
{ "value": "dark", "label": "Dark Mode" },
{ "value": "auto", "label": "Auto (System)" }
],
"validation": {
"required": true
}
}Dropdown (Single Choice)
{
"id": "framework",
"type": "dropdown",
"label": "Choose a framework",
"options": [
{ "value": "react", "label": "React" },
{ "value": "vue", "label": "Vue.js" },
{ "value": "angular", "label": "Angular" },
{ "value": "svelte", "label": "Svelte" }
]
}Checkbox (Multi-Select) ✨ NEW!
{
"id": "features",
"type": "checkbox",
"label": "Select features to enable",
"options": [
{ "value": "auth", "label": "Authentication" },
{ "value": "db", "label": "Database Integration" },
{ "value": "api", "label": "REST API" },
{ "value": "websocket", "label": "WebSocket Support" }
],
"validation": {
"min": 1, // Require at least 1 selection
"max": 3 // Allow maximum 3 selections
},
"helpText": "Choose all features you want to include"
}Response format for multi-select:
{
"features": ["auth", "db", "api"] // Array of selected values
}Validation Options
required:
boolean- Field must be filledmin / max:
number- Min/max value for numbers, or min/max items for checkbox arraysminLength / maxLength:
number- Min/max length for stringspattern:
string- Regular expression patternformat:
"email" | "uri" | "url" | "date" | "date-time"- Format validationerrorMessage:
string- Custom error message
Response Format
The tool returns a structured response:
{
"answers": {
"name": "Jane Doe",
"experience": 5,
"role": "fullstack",
"remote": true,
"features": ["auth", "db", "api"]
},
"metadata": {
"completedAt": "2025-11-13T10:30:00Z",
"duration": 15000,
"action": "submit"
}
}Possible actions:
submit- User submitted the formcancel- User canceled the dialogdecline- User declined to answer
Development
Setup
pnpm install
pnpm buildTesting
pnpm test
pnpm test:coverageLocal Testing
Build the project:
pnpm buildLink locally:
npm linkConfigure your MCP client to use the local build
Test with an MCP Inspector or client
Examples
See the examples directory for real-world use cases:
Architecture
src/
├── index.ts # CLI entry point
├── server.ts # MCP server setup
├── stdio.ts # Stdio transport
├── types.ts # TypeScript type definitions
├── elicitation/
│ ├── core.ts # Core elicitation logic
│ └── schemas.ts # Schema builders
└── tools/
├── index.ts # Tool registry
└── render_question.ts # Main tool implementationFor AI Agents
See AGENTS.md for detailed guidance on using this tool effectively in AI workflows.
License
MIT
Contributing
Contributions welcome! Please read the contributing guidelines and submit a PR.
Related Projects
mcp-elicit - Reference implementation
Available Tools
1 toolrender_questionRender Question FormA
Render custom question forms and collect structured, validated user input through native UI forms.
QUESTION TYPES:
text: Single-line or multi-line text input (supports email, URI, date formats)
number: Numeric input with min/max constraints
boolean: Single checkbox/toggle (true/false)
radio: Single choice from options (radio buttons)
dropdown: Single choice from options (select menu)
checkbox: IMPORTANT - Use WITHOUT options for boolean fields. For multi-select, use multiple separate boolean/checkbox questions instead (MCP elicitation protocol doesn't support arrays).
MULTI-SELECT WORKAROUND: Due to MCP elicitation protocol limitations, true multi-select (array responses) is not supported. To create multi-select questions:
Create multiple separate checkbox/boolean questions, one per option
Each question should have a unique id (e.g., "interest_coding", "interest_design")
User can check multiple boxes independently
Response will contain separate boolean fields for each option
EXAMPLES: Single boolean checkbox: { id: "agree", type: "checkbox", label: "I agree", validation: { required: true } }
Multi-select (workaround): [ { id: "lang_typescript", type: "checkbox", label: "TypeScript" }, { id: "lang_python", type: "checkbox", label: "Python" }, { id: "lang_rust", type: "checkbox", label: "Rust" } ]
Single choice: { id: "role", type: "dropdown", label: "Role", options: [{value: "dev", label: "Developer"}] }
VALIDATION:
required: boolean - Field must be filled
min/max: number - For number type (value constraints) or checkbox with options (minItems/maxItems)
minLength/maxLength: number - For text type (character count)
pattern: string - Regex pattern for text validation
format: "email" | "uri" | "url" | "date" | "date-time" - For text type only
errorMessage: string - Custom validation error message
Use this tool instead of conversational back-and-forth when you need structured, validated data from users.
Inputs: questions (required), title, description.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of misselection or overlap with a sibling. The tool's purpose (render a form and collect validated input) is unambiguous and clearly stated.
The single name `render_question` follows a clear verb_noun snake_case convention. With one tool there is no opportunity for convention drift.
One tool is thin for a server surface, though it is genuinely a single capability (form elicitation) that is heavily parameterized rather than split into multiple operations. It sits at the borderline of the 1-2 tool 'feels thin' band.
The surface covers the domain well: all question types, validation rules, and examples are handled by one call. The notable gap is native multi-select (arrays), which requires a documented multi-boolean workaround and pushes complexity onto the caller.
Maintenance
Related MCP Connectors
Forms for AI agents. Build, publish, and read forms and their replies from any MCP client.
Let your AI agent ask a person for a decision, a date or a photo, and get a structured answer back.
Create and manage GDPR-compliant, EU-hosted forms from any MCP-compatible AI assistant.
An AI concierge that turns static forms into adaptive AI conversations. From any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to render interactive user interfaces such as forms, dashboards, charts, tables, and wizards directly in MCP-compatible clients. Supports structured data collection and richer interactions beyond text responses.6MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to request user input through customizable desktop forms, returning structured data.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to render native-looking floating dialogs and forms on the user's desktop, capturing user interactions like button clicks and form inputs.-
- AlicenseAqualityDmaintenanceEnables AI agents to prompt users for input directly within the chat UI using MCP's elicitation capabilities, allowing for interactive multi-turn conversations without leaving the conversation interface.19 npm1MIT