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
Upgrade to latest version
pip install --upgrade survey-collector-mcp
# or
uvx --upgrade 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
📚 Documentation
- Quick Start: QUICK_REFERENCE.md - 3-step guide
- Interaction Guide: INTERACTION_GUIDE.md - Standard inquiry process
- Remote Deployment: README_REMOTE.md - Team deployment
- Troubleshooting: TROUBLESHOOTING.md - Problem diagnosis
- Config Examples: config/mcp-examples/ - Different scenarios
- Survey Template: config/survey-template.json - Configuration template
License
MIT License
Metadata
Release files for survey-collector-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| survey_collector_mcp-0.1.2.tar.gz | 20.7 kB | Without provenance | Details for survey_collector_mcp-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| survey_collector_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for survey_collector_mcp-0.1.2-py3-none-any.whl |
Total release size: 41.5 kB
Release files / survey_collector_mcp-0.1.2.tar.gz
| Download URL | survey_collector_mcp-0.1.2.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94539fa17730ac2899c8bf63d633bba2d5333bafde478fa345dd6879e2795f77
|
|
BLAKE2b-256 checksum How to use checksums |
e91a90d44e38e64a705396c7fa450a2b67db182744c2e422e3a0950f5f9952af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / survey_collector_mcp-0.1.2-py3-none-any.whl
| Download URL | survey_collector_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96b43d0ad3b6287f501ab47c1bebb9d947541b335c928938a65b6d6417c212ce
|
|
BLAKE2b-256 checksum How to use checksums |
d7ab3061891a7a807c1c7645bb86d2dc1de259384c48c3418b42fd5b62f26d28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for survey-collector-mcp 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.