Connect OpenCode to SurveyLab
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in SurveyLab
A preset of real SurveyLab operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect SurveyLab
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
SurveyLab
23 toolsIdentify the organization and see the calling key's scopes.
List the surveys in your organization.
Get a survey and its metadata.
Get the blocks, pages and questions that make up a survey.
Create a survey from scratch or from a SurveyLab template.
Update a survey's title, tags, settings or open/closed state.
List the collectors that distribute a survey.
Create a collector or copy an existing collector in this survey.
Open, close or change the settings of a collector.
List collector recipients and their invitation delivery states.
Add existing contacts, a contact group, or people by email to a collector.
Send pending invitations or resend a collector's invitations.
List responses, filtered by completion time, collector or respondent key.
Get an individual response and its answers.
Submit a survey response through a collector.
Set or clear the review status and note on a response.
Download a file uploaded as an answer.
Start an export. Use Get Export Job and Download Export after it starts.
Check an export's state with the same API key that started it.
Download the ZIP from a completed export with the same key that started it.
List a survey's reports and the IDs used when starting exports.
List contacts in the organization's address book.
Create a contact and optionally assign them to contact groups.
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use SurveyLab with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with SurveyLab wired in as tools. Connect your account and run.