Included in Unlimited and Plus
UserLoop for Cursor
Install a survey without leaving Cursor.
Add UserLoop's MCP server to Cursor and the agent that edits your code can do the whole job: create the survey, set how it appears and who sees it, add the snippet to your layout and confirm the install.
Read the docsHow do I connect UserLoop to Cursor?
Add "userloop": { "url": "https://mcp.userloop.io" } under mcpServers in ~/.cursor/mcp.json, or select Add to Cursor on the MCP server page in UserLoop and choose Install. Then choose Connect and sign in to UserLoop in your browser, where you tick what Cursor may do. There is no API key. Cursor's agent can then create a website survey, configure it, add the snippet to your code and check the install. It is included in the Unlimited and Plus plans.
- Config file
- ~/.cursor/mcp.json
- Server address
- https://mcp.userloop.io
- Sign-in
- OAuth in your browser, with no API key
- Plans
- Unlimited and Plus
Connect
Add the server, sign in, ask
01
Add UserLoop to Cursor
On the MCP server page in UserLoop, choose Cursor and select Add to Cursor. Cursor opens with UserLoop filled in: choose Install. Or add the entry to mcp.json yourself.
02
Connect and sign in
Choose Connect. Your browser opens UserLoop, where you tick what Cursor may do and pick the organizations it can use. Select Allow and you are sent back.
03
Ask the agent for a survey
In Cursor's chat, say what the survey should ask and where it should appear. The agent creates it in UserLoop, then edits your code to install it.
Config
Three ways to add the server
They all end in the same place: a remote server named userloop at one URL, with no headers and no key. Pick the file, the link or a line in chat.
{
"mcpServers": {
"userloop": {
"url": "https://mcp.userloop.io"
}
}
}cursor://anysphere.cursor-deeplink/mcp/install?name=UserLoop&config=eyJ1cmwiOiJodHRwczovL21jcC51c2VybG9vcC5pbyJ9set up UserLoop: https://mcp.userloop.io/llms.txtThe install
From a sentence in chat to a survey on your site
This is the order UserLoop's own instructions give a coding agent. Each step is a tool call or an edit to your files, and you review the diff as you would any other.
Create
The survey is created from the chat panel
You describe it once. The agent makes a website survey in your UserLoop organization and reports back the id it will use for everything after.
A website survey. create_survey with the format website makes the survey, and sets up your organization's site in UserLoop if it has none yet.
Questions from a goal, or yours exactly. Give a goal and UserLoop's AI drafts the questions. Leave it out and the agent adds your exact wording with add_question.
A draft until you publish. Every change is saved to the survey's draft. No visitor sees anything until publish_survey.
Display and targeting
How it appears and who sees it are two tool calls
The settings a product manager would click through in the editor are arguments here, so they can sit in the same request as the code change they depend on.
Five ways to appear. set_website_display takes popup, slide_in, modal, feedback_button or inline, a position, and a light, dark or auto theme. Inline takes the CSS selector of the element to fill.
Rules for who and when. set_website_targeting takes pages, devices, languages, referrer, UTM values, visitor attributes, new or returning visitors, a trigger, a sample percentage and a frequency.
It returns the code you owe. The result lists code_needed: userloop.track for an event trigger, userloop.show for a manual one, userloop.setAttributes for attribute rules, or the element a click trigger needs. The agent adds it in the same pass.
You Show it as a slide-in, bottom right, when someone finishes
signup. Desktop only, once per visitor.
Agent set_website_display
mode slide_in, position bottom_right, theme auto
Agent set_website_targeting
devices desktop, trigger event, frequency once
code_needed userloop.track("signup_completed")
Agent edits the signup page
+ userloop.track("signup_completed");Snippet
One script tag goes in your shared layout
The agent does not guess at an install. It asks UserLoop for the snippet with your site key in it, and for the recipe that fits the project it is in.
From get_site. It returns the loader to paste once per page inside the head of the shared layout, and a plain tag for tag managers and site builders.
A recipe for your stack. Plain HTML, the Next.js App Router, React with Vite and single-page apps each have one, along with the sources to add to a content security policy.
Small on the page. The script is 13 KB gzipped on every page. The 24 KB renderer loads only when a survey is about to show.
Check
Test on localhost, then confirm on the real site
An install is finished when a real page has loaded it. The agent can test on your dev server first, then ask UserLoop what it has seen.
Localhost is allowed. Your dev server always passes the site's allowed-origins check, so a published survey can be tried before you deploy.
A console that explains itself. get_site includes a debug snippet that says in the browser console why a survey did or did not open, and userloop.show with force opens one at once.
Publish. Only published surveys reach the site. publish_survey needs an organization admin, and it is refused with the reasons when the survey has problems.
Confirm. check_site_install reads the pages that loaded the snippet in the last 7 days and lists their addresses. Loads from localhost never count, so it reads not seen yet until a page of the real site has loaded.
In your repo
What the agent adds to your code
The whole footprint is a script tag and, when the targeting asks for it, a call or two. There is no npm package to install and no build step to change.
<!-- Once per page, in the shared layout's <head> -->
<script
async
src="https://cdn.userloop.io/sdk-3/userloop.js"
data-site-key="YOUR_SITE_KEY"
></script>// Where the thing happens: the survey's trigger listens for this event.
userloop.track("signup_completed");
// Rules on visitor attributes read what the site tells UserLoop.
userloop.setAttributes({ plan: "pro" });// In the browser console on your dev server.
// Opens the survey at once, whatever its targeting says.
userloop.show("SURVEY_PUBLIC_ID", { force: true });Prompts
Things to ask Cursor's agent
Each one is a request you could type between two code changes. Under it are the UserLoop tools the agent reaches for.
“Add a feedback button to the site that asks what people were looking for, and install the snippet in the root layout.”
create_surveyset_website_displayget_site“Show the NPS survey as a slide-in after the signup_completed event, desktop only, to 20% of visitors.”
set_website_displayset_website_targeting“Put the docs survey inline in #feedback, on pages under /docs only.”
set_website_displayset_website_targeting“Pass the signed-in account's plan to UserLoop and show the survey to Pro accounts only.”
set_website_targeting“Publish it, then check the install on the live site.”
publish_surveycheck_site_install“The survey is not opening on /pricing. Find out why.”
get_surveyget_site“Which pages has the snippet loaded on this week?”
check_site_install“What did visitors write in the feedback survey this week? Pull out anything that reads like a bug.”
list_written_answers
Permissions
What Cursor's agent can and cannot do
The agent works as you, with your role in UserLoop and the permissions you ticked. Its tool list holds only the tools those allow.
Approval
Tick only what an install needs
UserLoop shows one approval page when Cursor connects. Every permission starts ticked, and for install work most of them can go.
Two permissions cover an install. Read surveys and Edit surveys are enough to create the survey, set display and targeting, read the snippet and check the install.
Publishing follows your role. A member's connection can prepare the draft. Putting the survey live needs an organization admin.
A name that is not verified. Cursor registers itself with UserLoop, so the approval page says its name is not verified. Approve a request only when you have just chosen Connect in Cursor.
Tool calls, not your files. UserLoop receives the tool calls the agent makes. The edits to your code are made by Cursor on your machine.
Revoke in the dashboard. Cursor is listed under Connected apps on the MCP server page. Revoke signs it out straight away. Left alone, an approval lasts 30 days.
The facts
UserLoop in Cursor, in one table
- Config file
- ~/.cursor/mcp.json, under mcpServers
- Entry
- "userloop": { "url": "https://mcp.userloop.io" }
- Transport
- Streamable HTTP, with no headers
- Sign-in
- OAuth in your browser. No API key
- Tools
- 93: 40 that read and 53 that make changes
- Permissions
- 7: Read surveys, Edit surveys, Read responses, Add responses, Manage reports, Read account, Change settings
- Rate limit
- 120 calls a minute
- Approval lasts
- 30 days, or until you select Revoke
- On your site
- One script tag, 13 KB gzipped. No npm package and no cookies
- Plans
- Unlimited and Plus, with no per-plan quota
Frequently asked questions
How do I add the UserLoop MCP server to Cursor?
Add "userloop": { "url": "https://mcp.userloop.io" } under mcpServers in ~/.cursor/mcp.json, then open Cursor Settings, find userloop in the MCP section and choose Connect. Or select Add to Cursor on the MCP server page in UserLoop, then Install and Connect. You sign in to UserLoop in your browser, and there is no API key.
Can Cursor install a survey on my website?
Yes. The agent creates the survey with create_survey, sets how it shows with set_website_display and who sees it with set_website_targeting, adds the snippet from get_site to your shared layout, and confirms it with check_site_install once a real page has loaded it.
Which frameworks does the install work with?
get_site returns recipes for plain HTML, the Next.js App Router, React with Vite and single-page apps. The snippet is one script tag, and it detects route changes in single-page apps by itself.
Why does check_site_install say not seen yet?
It reads real page loads from the last 7 days. Loads from localhost never count, so it reads not seen yet until a page of your deployed site has loaded the snippet, even when the snippet is right.
Why does the approval page say Cursor's name is not verified?
Cursor registers itself with UserLoop instead of publishing its details from its own website, so UserLoop cannot confirm the name. That is expected for Cursor. Approve the request only if you started connecting from Cursor a moment ago.
Does UserLoop see my code?
No. The MCP server receives the tool calls Cursor's agent makes, such as create_survey, and returns survey data and the snippet. The edits to your files are made by Cursor on your machine.
Is there an npm package to install?
No. The install is one script tag served from UserLoop's CDN, 13 KB gzipped. Your code calls methods such as userloop.track and userloop.identify on the page.
Can the agent publish the survey?
Yes, when you ask it to and your role is admin. publish_survey is for organization admins, so a member's connection can build the draft but not put it live.
Which UserLoop plan do I need to use it in Cursor?
The MCP server is included in Unlimited and Plus. Unlimited is $19 a month with a 14-day trial. It is not on the Free plan.
Keep reading
Ship the survey in the same session as the feature
Start a 14-day trial of Unlimited, add UserLoop to mcp.json and ask Cursor's agent for the survey you want.