Included in Unlimited and Plus
UserLoop for Claude Code
One command, feedback in your terminal.
Add UserLoop's MCP server to Claude Code with one line and sign in once. Then install surveys from the repo you are in, pull what customers said into your analysis and script the reports.
Read the docsHow do I connect UserLoop to Claude Code?
Run claude mcp add --scope user --transport http userloop https://mcp.userloop.io, or send Claude Code the line set up UserLoop: https://mcp.userloop.io/llms.txt and it adds the server itself. Start Claude Code again, run /mcp, choose userloop and sign in to UserLoop in your browser. There is no API key. Claude Code can then create and install surveys, read responses and scores, and request exports and reports. It is included in the Unlimited and Plus plans.
- Server name
- userloop
- Server address
- https://mcp.userloop.io
- Sign-in
- /mcp in Claude Code, then OAuth in your browser
- Plans
- Unlimited and Plus
Connect
One command, one sign-in
01
Add the server
Run the claude mcp add command below. Or send Claude Code the setup line: it reads UserLoop's instructions for agents and runs the command for you.
02
Sign in with /mcp
Start Claude Code again, run /mcp and choose userloop. Your browser opens UserLoop, where you tick what Claude Code may do and pick the organizations it can use.
03
Ask from any repo
Ask about your surveys in the session you already have open. Claude Code calls UserLoop for the data and writes the result where you tell it to.
Copy
Three lines worth copying
The command adds the server. The setup line has Claude Code add it for you. The skill keeps UserLoop's instructions on hand, so the agent knows the order of calls for jobs such as a website install.
claude mcp add --scope user --transport http userloop https://mcp.userloop.io
# Start Claude Code again, then inside it:
/mcp
# Choose userloop and sign in. Your browser opens UserLoop.set up UserLoop: https://mcp.userloop.io/llms.txtnpx skills add https://app.userloop.ioIn the terminal
What a terminal is good for
Claude Code reads and writes files as well as calling tools. So customer feedback can end up where the rest of your work is: in the code, in a Markdown file, in a script.
Install
A website survey, installed from the repo you are in
Ask for the survey and the install in one request. Claude Code makes the survey in UserLoop, then edits the project to add it.
Created and configured. create_survey with the format website makes it. set_website_display and set_website_targeting set how it appears, on which pages and for which visitors.
Written into your code. get_site returns the snippet for the shared layout, with recipes for plain HTML, the Next.js App Router, React with Vite and single-page apps.
Checked against real page loads. After publish_survey and a deploy, check_site_install says which pages of the real site loaded the snippet. Localhost never counts.
Analysis
Responses pulled into the repo's analysis
When the question is bigger than one chart, bring the answers to the files. Claude Code pages through the responses and writes them down beside your other data.
What customers wrote. list_written_answers returns open answers and typed Other answers, each with its question, survey, customer, order and time, and searches them for a word.
The dashboard's filters. search_responses takes dates, channels, score ranges, UTM values, landing page, order value, discount codes and products, and pages with a cursor.
Counts done by UserLoop. answer_counts, score_metrics and get_survey_analytics count every match on the server, so the totals in your file are not a model adding up rows.
No addresses in the commit. Customers' emails and names come back masked unless you ask for them, so a file you commit does not carry them by accident.
> Pull every written answer that mentions delivery since October
into analysis/delivery.md, with the order beside each.
userloop list_written_answers
search "delivery", newest first, paged with next_cursor
Write analysis/delivery.md
> Add a table of NPS by month for the same period.
userloop score_metrics
called once for each month
Edit analysis/delivery.mdScripted reports
A report from one line in a script
Claude Code runs without the chat when you give it a prompt on the command line. That turns a question you ask every week into a file you can generate.
One prompt, then exit. claude -p runs a single prompt and stops. Name the UserLoop tools it may use and where the output goes.
Your sign-in lasts 30 days. An approval lasts 30 days, then Claude Code sends you back to UserLoop to approve again. A scripted run suits a job you start yourself.
Or schedule it in UserLoop. save_email_report sets up a daily, weekly or monthly digest and save_export_schedule a recurring CSV. Both keep running with no terminal open.
# One prompt, no chat window. Run it from a script when you want the file.
claude -p "Summarize last week's NPS and what the detractors wrote. Save it as reports/feedback-weekly.md." \
--allowedTools "mcp__userloop__score_metrics,mcp__userloop__list_written_answers,Write"> Email a weekly digest of the NPS survey to the team, and send
me the raw responses as a CSV every month.
userloop save_email_report
userloop save_export_schedule
# Both run on UserLoop's side from then on, with no terminal open.React
Wire up an agent that reacts to feedback
The next step past asking is not asking. Claude Code can set up the event and write the code that receives it, so an agent acts when a customer answers.
The endpoint. create_webhook adds a signed endpoint for events such as response.low_score and sends a test event straight away. Webhooks are on the Plus plan, and the signing secret stays on the dashboard's Webhooks page.
Real payloads to code against. list_webhook_samples returns recent real items in the exact envelope of an event, with contact details masked, so the handler can be written before the first event arrives.
A delivery test. send_test_webhook sends a signed test event and says whether your endpoint answered with a 2xx within 10 seconds.
Answers an agent collected. record_response stores what a customer told your agent in a chat or on a call, against a live link, email or website survey.
Prompts
Things to ask Claude Code
Requests that end in a file, a diff or a fact you can act on. Under each are the UserLoop tools Claude Code reaches for.
“Which organization am I connected to, and what can this connection do?”
whoami“Create an exit survey for the pricing page, install the snippet in this repo and tell me what you changed.”
create_surveyset_website_targetingget_site“Check the snippet is live on the production site.”
check_site_install“Pull every written answer that mentions checkout into analysis/checkout.md.”
list_written_answers“Compare revenue and order value by attribution answer for last quarter and save it as a CSV in data/.”
answer_counts“Add this week's NPS and response count to docs/feedback-log.md.”
score_metricsresponse_timeseries“Add a webhook for low scores that posts to our /api/feedback route, then write the handler from a real sample.”
create_webhooklist_webhook_samples“The customer on this support ticket said delivery was slow and scored us 4. Record it against the support survey.”
get_surveyrecord_response
Permissions
Signed in as you, limited to what you ticked
Claude Code gets no key of its own. It carries your role in UserLoop and the permissions from the approval page, and its tool list holds only the tools those allow.
Approval
One approval page, opened from /mcp
UserLoop shows the page in your browser before Claude Code gets anything. Every permission starts ticked, and you leave at least one.
An app on your computer. Claude Code runs on your machine, so the page may say the access is sent to an app on your computer. Continue only if you started connecting from Claude Code a moment ago.
7 permissions. Read surveys, Edit surveys, Read responses, Add responses, Manage reports, Read account, Change settings. Untick Add responses and Change settings if this machine only reads results and builds surveys.
Your role still applies. Publishing, team changes and website settings are for organization admins. A member's connection cannot do them, whatever is ticked.
Customer text is data. Text written by customers is labelled as data in tool results, so an answer that reads like an instruction is reported, not followed.
Revoke in the dashboard. The MCP server page in UserLoop lists Claude Code under Connected apps. Revoke signs it out straight away.
The facts
UserLoop in Claude Code, in one table
- Command
- claude mcp add --scope user --transport http userloop https://mcp.userloop.io
- Server name
- userloop
- Transport
- Streamable HTTP
- Sign-in
- /mcp, then 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
- Agent skill
- npx skills add https://app.userloop.io
- Setup file for agents
- https://mcp.userloop.io/llms.txt
- Plans
- Unlimited and Plus, with no per-plan quota
Frequently asked questions
How do I add the UserLoop MCP server to Claude Code?
Run claude mcp add --scope user --transport http userloop https://mcp.userloop.io. Then start Claude Code again, run /mcp, choose userloop and sign in to UserLoop in your browser.
Can Claude Code set UserLoop up by itself?
Yes. Send it the line set up UserLoop: https://mcp.userloop.io/llms.txt. Claude Code reads UserLoop's instructions for agents and adds the server. Signing in is still yours, in your browser.
Is there an API key to put in my shell or a .env file?
No. The MCP server signs you in with OAuth in your browser, so nothing secret goes in your shell profile or your repository. API keys belong to the separate REST API.
What does the UserLoop agent skill do?
npx skills add https://app.userloop.io installs UserLoop's instructions for agents as the userloop skill: how to connect, the order of calls to install a website survey, how to record a response and how to read results.
Can Claude Code install a survey on my website?
Yes. It creates the survey with create_survey, sets display and targeting, adds the snippet from get_site to your shared layout and confirms the install with check_site_install once a real page has loaded it. Publishing needs an organization admin.
Can I use it from a script or a scheduled job?
Yes, with claude -p, while your approval lasts: an approval runs for 30 days and then needs you in a browser again. For a job that must run with nobody around, use the REST API with a key or a webhook, both on the Plus plan.
Why does the approval page say access goes to an app on my computer?
Because Claude Code runs on your machine and receives the sign-in there. Continue only if you started connecting from Claude Code a moment ago.
Does the same server work in Codex and VS Code?
Yes. In Codex run codex mcp add userloop --url https://mcp.userloop.io, then codex mcp login userloop. VS Code and any other app that takes a remote MCP server use the same address.
Which UserLoop plan do I need to use it in Claude Code?
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
Run one command and ask what customers said
Start a 14-day trial of Unlimited, add the server with claude mcp add and sign in with /mcp.