Back to docs
Claude & MCP Integration

Connect Koji to Windsurf: MCP Setup for AI-Native Coding

Wire Koji into Windsurf (Cascade) in three minutes via the Model Context Protocol so the editor can read interview transcripts, run reports, and ship features grounded in real customer voice.

TL;DR: Windsurf supports the Model Context Protocol natively through Cascade. Add Koji as a remote MCP server with one URL, https://www.koji.so/api/mcp/mcp, either from Windsurf's MCP settings or in ~/.codeium/windsurf/mcp_config.json, then sign in to Koji in your browser and approve access. There is no API key to paste: the Koji MCP server uses OAuth sign-in only. Once connected, Cascade can list studies, read transcripts with their analysis, create new studies, generate reports and export data without leaving the editor. The MCP connector is included on the Interviews and Enterprise plans.


Why Connect Koji to Windsurf

Windsurf is an AI-native code editor built around Cascade, an agentic assistant that can read your repo, run shell commands, and edit files across multiple steps. What it does not have by default is access to what your customers actually say in interviews.

Connecting the Koji MCP server changes that. Cascade can now answer:

  • "Read the last ten interviews from the activation study and tell me which step of onboarding most users got stuck on."
  • "Create a Koji study with five open-ended questions about the new pricing page and publish it."
  • "Pull the full report for the Q3 Customer Retention study, then refactor the components in src/dashboards/retention/ to address the top three themes."
  • "Find interviews where participants mentioned the export feature and quote their exact words for my PR description."

This is the workflow that turns customer evidence into shipped code without the copy-paste detour through a research dashboard. Survey tools such as SurveyMonkey and Typeform end at a results page or a CSV. In Koji, every study, interview, transcript, theme and report is available as structured data Cascade can reason over.


Prerequisites

Before you start, make sure you have:

  1. Windsurf with Cascade MCP support. Download it from windsurf.com. If you don't see MCP servers in Cascade's settings, update to the latest build.
  2. A Koji account on the Interviews or Enterprise plan. The MCP connector counts as API access, which is part of those two plans. On Free and Insights, Koji refuses the sign-in. See the Plan Comparison Guide.
  3. A browser for the one-time sign-in.

You do not need to install any package or run a container. Koji hosts the MCP server at https://www.koji.so/api/mcp/mcp over HTTP, with OAuth 2.1 sign-in. Koji publishes its OAuth discovery metadata, so Windsurf finds the sign-in page and registers itself on its own.

You don't need an API key, and one won't work. Koji API keys (from Settings → API Keys) are for the REST Headless API. The MCP server accepts only the OAuth tokens it issues when you sign in.


Where to find the URL in Koji

Koji has a setup dialog for AI apps. Open the Connect your AI row at the foot of the sidebar, pick the Other tab, and copy the connector URL. That tab is the one for Windsurf, Zed, Gemini CLI and other MCP apps: paste the URL where the app adds a remote MCP server, then approve access.


Option 1: Add Koji from Windsurf's MCP settings

  1. Open Windsurf and the Cascade panel.
  2. Open Cascade's MCP settings (the MCPs or plugin icon in the Cascade panel, or Windsurf Settings → Cascade → MCP Servers).
  3. Choose to add a custom server, and use:
    • Name: koji
    • Server URL: https://www.koji.so/api/mcp/mcp
  4. Save. Windsurf opens your browser on a Koji consent page.
  5. Sign in to Koji if asked, review the permissions, and approve. The server shows as connected in Windsurf, with its tools listed.

Windsurf's settings screens change between releases. If the labels differ, look for the option to add a remote (HTTP) MCP server and paste the same URL.

Verify with a quick prompt in Cascade:

List my Koji studies and tell me which one has the most completed interviews.

Cascade calls koji_list_studies and returns the list. If it appears, you are fully wired.


Option 2: Configure Koji in mcp_config.json

If you prefer to edit the configuration file, open ~/.codeium/windsurf/mcp_config.json (Cascade's MCP settings has a button to open it) and add Koji to the mcpServers block:

{
  "mcpServers": {
    "koji": {
      "serverUrl": "https://www.koji.so/api/mcp/mcp"
    }
  }
}

That is the whole entry. There is no headers block and no secret in the file. Save it and refresh the MCP servers in Cascade (or restart Windsurf). When koji appears, Windsurf opens the Koji sign-in in your browser; approve access to finish.

If an older guide had you add a headers block with Authorization: Bearer <your API key>, delete it. The MCP server rejects API keys, and the header stops Windsurf from starting the sign-in.

What the consent page asks for

The Koji consent page lists each permission in plain words: reading your studies, interviews and account, and, if the client asks for them, creating and publishing studies, generating and publishing reports, and adding respondents. Write tools only appear in Cascade when you approved the matching permission. Access tokens refresh automatically, so you won't be asked to sign in every session.


The Tools Cascade Can Call

The Koji MCP server exposes the same tools to every client. In Windsurf, they appear under the koji server in Cascade:

Read and discovery

  • koji_list_studies: list studies with status and counts.
  • koji_get_study: fetch a single study with its full brief and progress.
  • koji_get_interviews: list interviews for a study with per-interview quality scores.
  • koji_get_transcript: full transcript plus its analysis (themes, sentiment, quality score, structured answers).
  • koji_get_account: your plan and credit balance.

Study creation and editing

  • koji_create_study: create a study with its questions, each with a type and settings.
  • koji_update_brief: edit the research goal, audience, methodology and the question list.
  • koji_publish_study: publish the study so it can take interviews.

Analysis and reports

  • koji_get_study_data: per-question data: averages for scales, distributions for choices, ranking positions.
  • koji_generate_report: start a full AI report combining transcripts, structured answers, themes and quotes.
  • koji_get_report: fetch a finished report.
  • koji_publish_report: create a public, shareable link to the report.

Customization and distribution

  • koji_configure_study: branding, study settings and the public link.
  • koji_export_data: CSV or JSON export of a study.
  • koji_import_respondents: import a list of respondents.

Every tool returns structured data. That structure is what keeps Cascade's answers tied to what participants said rather than a loose paraphrase. See the MCP Tool Reference for parameters.


Real Workflows in Windsurf

Refactor a UI Component Based on Customer Voice

Open the file you're refactoring. Ask Cascade: "Read the most recent ten interviews from the dashboards study, find any quotes about the filters panel, and use the patterns the respondents described to refactor FiltersPanel.tsx." Cascade pulls the transcripts, extracts the relevant quotes, and changes the file with a diff you can review.

Ground a PR Description in Evidence

Before opening a PR, ask: "Pull three direct quotes from interviews where respondents asked for an export feature, and draft a PR description that opens with the customer pain, lists the implementation, and references the quotes." Cascade writes the description in markdown, ready to paste into GitHub.

Spin Up Pre-Launch Research in One Command

Right before shipping a risky feature, ask Cascade to set up a quick study: "Create a Koji study called 'Pricing Page Pre-Launch Test' with three open ended questions about the new pricing page, two scale questions on clarity and willingness to pay, and one yes/no question on intent to upgrade. Publish it and give me the share link."

Cascade chains koji_create_study and koji_publish_study (with koji_update_brief if it needs to adjust the questions) and hands back the link. The question types are the same ones you'd pick in Koji; see the Structured Questions Guide.

Triage Support Tickets With Interview Data

A support ticket arrives. Ask Cascade: "Check the last 60 days of interviews for anyone mentioning 'sync to Salesforce'. Quote the exact lines." Cascade reads the transcripts and returns the matching quotes, which often shows whether a ticket is a one-off or a pattern.

Generate a Report and Summarise It

Ask: "Generate a full report on the Q3 Customer Retention study and summarize the top three themes alongside the most-quoted line per theme." Cascade calls koji_generate_report, then fetches the result with koji_get_report and writes the summary inline. Large studies take longer to report on, so let Cascade wait and retry the fetch.


Capability Parity Across MCP Clients

The Koji MCP server is the same no matter which client connects to it. Windsurf, Claude, Cursor, Claude Code and VS Code Copilot Chat all see the same tools, the same permissions and the same response shapes.

The differences are workflow, not capability:

  • Windsurf stands out for agentic, multi-step Cascade flows that span code edits and research lookups.
  • Cursor and VS Code have a one-click install button in Koji's Connect your AI dialog.
  • Claude is a chat surface, ideal for researchers and PMs without an IDE, and also has a one-click button.
  • Claude Code lives in the terminal, best for CLI-native engineers.

You can connect Koji to several clients. Each one signs in separately.


Troubleshooting

Windsurf never opens the sign-in page. Remove any headers block from the koji entry, refresh the MCP servers, and make sure your browser isn't blocking pop-ups from koji.so. If your default browser is misconfigured, copy the sign-in URL Windsurf shows into a working browser.

Sign-in completes but the server stays disconnected. Your account isn't on a plan with API access. The MCP connector needs the Interviews or Enterprise plan.

Tools return 401 errors. The sign-in was revoked or expired without refreshing. Reconnect the koji server from Cascade's MCP settings and approve access again.

Write tools are missing. You approved read access only. Remove and re-add the server, then approve the write permissions on the consent page.

Studies missing from the list. You signed in with a different Koji account than the one that owns the studies. Sign out of Koji in the browser, reconnect, and sign in with the right account.

Windsurf does not show MCP servers in settings. Update to the latest Windsurf build.

For deeper debugging, see MCP Troubleshooting.


Security and Permissions

You decide what Cascade can do on the consent page: read-only access, or read plus the write permissions. Cascade asks before running tools unless you've turned on auto-run, so keep approval on for anything that creates, publishes or imports. Tokens come from your own sign-in, so Cascade sees only the studies your Koji account can see, and the config file never holds a secret. The MCP server returns data straight to Windsurf over HTTPS. See MCP Authentication and Security.

If your organization needs to use its own AI provider keys, Bring Your Own Key is part of the Enterprise plan; see Bring Your Own Key.


Related Resources


<!-- crosslink:dev-hub -->

Related: other ways to connect

The Developer Hub is the single starting point for every way to connect to Koji: the MCP server (this section), the REST Headless API, and the embed widget. For a code integration, see API Authentication and Starting Interviews via API.

Related Articles

MCP Best Practices — Getting the Most from Koji + Claude

Tips, patterns, and anti-patterns for using Koji MCP effectively. Learn how to write better prompts, choose methodologies, manage token budgets, and build efficient research workflows with AI.

Koji MCP Integration Overview

Connect Koji to Claude, Cursor, and other AI assistants using the Model Context Protocol (MCP). Manage your entire research workflow conversationally — create studies, run interviews, analyze data, and generate reports without leaving your AI assistant.

Connect Koji to Claude (Setup Guide)

Step-by-step guide to connect your Koji account to Claude Desktop, Claude.ai, Cursor, and other MCP clients. Takes under 2 minutes with OAuth — no API keys required.

Connect Koji to Claude Code (CLI): MCP Setup for Engineers

Step-by-step guide to wiring Koji into Anthropic's Claude Code CLI via the Model Context Protocol so you can launch studies, read transcripts, and ship research-informed code from your terminal.

Connect Koji to Cursor: MCP Setup Guide for Product Engineers

Wire the Koji MCP server into Cursor so the editor can pull live customer interview insights, themes, and quality scores while you ship features. Five-minute setup, fifteen tools.

Connect Koji to VS Code (MCP): Setup Guide for Copilot Chat Engineers

Connect Koji's MCP server to VS Code Copilot Chat in under 3 minutes. Pull live customer interviews, transcripts, themes, and structured answers directly into Agent mode for every coding session.

MCP Tool Reference

Complete reference for all 17 Koji MCP tools. Includes parameters, return data, plan requirements, and example prompts for each tool across read, create, analyze, customize, and distribute categories.

MCP Troubleshooting Guide: Fix Koji MCP Server Connection and Tool Errors

Diagnose and fix the five most common Koji MCP issues: 401 auth errors, network timeouts, missing tools, credit and rate limits, and confirmation-prompt conflicts. Includes a triage table and copy-paste fixes for Claude Desktop, Cursor, VS Code, and Windsurf.

Structured Questions in AI Interviews

Mix quantitative data collection — scales, ratings, multiple choice, ranking — with AI-powered conversational follow-up in a single interview.