MCP server for survey collection with LLM-powered intelligent follow-up questions
Project description
Survey Collector MCP Server
MCP server for survey collection with LLM-powered intelligent follow-up questions.
Features
- 📋 Survey Collection: Send questions to groups and collect replies
- 🤖 LLM-powered Follow-up: Automatically generate follow-up questions based on replies
- 📊 Criteria Evaluation: Multiple evaluation criteria (all replied, majority agree, etc.)
- 📝 Summary Reports: Auto-generate Markdown summary reports
Installation
Via pip
pip install survey-collector-mcp
Via uvx (recommended)
uvx survey-collector-mcp
Usage
Local Mode (stdio)
Add to your mcp.json:
{
"mcpServers": {
"survey-collector": {
"command": "uvx",
"args": ["survey-collector-mcp"]
}
}
}
Remote Mode (SSE)
Start the server:
survey-collector --transport sse --host 0.0.0.0 --port 8001
Client configuration:
{
"mcpServers": {
"survey-collector": {
"url": "http://localhost:8001/sse"
}
}
}
Tools
collect_survey_info
Execute a complete survey workflow with intelligent follow-up.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| chat_id | string | Yes | Group chat ID |
| members | string | Yes | Member names, comma-separated |
| question | string | Yes | Survey question |
| criteria | string | No | Evaluation criteria (default: all_replied) |
| follow_up_rule | string | No | Follow-up rule in natural language |
| max_rounds | int | No | Max follow-up rounds (default: 5) |
| timeout_per_round | int | No | Timeout per round in seconds (default: 600) |
Example:
Question: "周一上午有没有时间打球?"
Follow-up rule: "如果对方说没时间,每次追问日期往后推一天"
Result:
- Round 1: "周一上午有没有时间打球?"
- Round 2: "周二上午有没有时间打球?" (LLM generated)
- Round 3: "周三上午有没有时间打球?"
Configuration
Set environment variables or create .env file:
# HITL Platform
HITL_SERVICE_URL=https://hitl.woa.com/api
# LLM API (for intelligent follow-up)
LLM_API_BASE=https://api.deepseek.com/v1
LLM_API_KEY=your-api-key
LLM_MODEL=deepseek-chat
# Debug mode
DEBUG=false
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file survey_collector_mcp-0.1.0.tar.gz.
File metadata
- Download URL: survey_collector_mcp-0.1.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d007ce9c1fdbc02a55fc05fbcd38d6dad96761d9c1d28a2def1d345b1eb21f6f
|
|
| MD5 |
2a91e1286b096b6b5a968adf68cf2164
|
|
| BLAKE2b-256 |
f080114f886796eab18cbea32ede91b4b0bce37fd115995b818dd6fc214016f5
|
File details
Details for the file survey_collector_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: survey_collector_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dd7896520f42e972530e06874e02fe30b5e7a32623e8c08cbc4db2727a0e0c6
|
|
| MD5 |
5517bca98e4500317697e1e7258ff363
|
|
| BLAKE2b-256 |
53276c1e151a912f914e98f991dea0089517b36087d678a15fbdf66bd47bb0db
|