Formbricks MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Formbricks MCP or direct API to create surveys, fetch responses, analyze feedback, and automate follow-ups through natural language.

Formbricks logoFormbricks
Api Key

Formbricks is an open-source platform for building and managing surveys. It helps organizations collect and analyze user feedback efficiently.

45 Tools

Try Formbricks now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Formbricks
Try asking
TOOLS

Supported Tools

Every Formbricks action and event your agent gets out of the box.

Check Health

Tool to check the health status of the Formbricks API.

Create Action Class

Tool to create a new action class.

Create Attribute Class

Creates a new attribute class (custom contact attribute) in Formbricks.

Create Client User

Tool to create or identify a user within a specified environment.

Create Contact

Creates a new contact in a Formbricks environment.

Create Display

Create a display record to track when a survey is shown to users.

Create Survey Response

Tool to create a response for a survey.

Create Survey

Tool to create a new survey.

Create Webhook

Tool to create a new webhook.

Delete Attribute Class

Tool to delete an attribute class.

Delete Person

Tool to delete a person.

Delete Survey Response

Tool to delete a survey response by its ID.

Delete Survey

Deletes a survey from Formbricks by its unique identifier.

Delete Team

Tool to delete an organization team by its ID.

Delete Webhook

Tool to delete a webhook by ID.

Get Account Info

Retrieves environment information for the authenticated API key.

Get All Contacts

Tool to retrieve all contacts within the organization.

Get Attribute Class

Tool to get a specific attribute class by ID.

Get Client Contacts State

Tool to get the current state of a contact including surveys and segment information.

Get Contact Attribute Key

Tool to retrieve detailed information about a specific contact attribute key by ID (v2 API).

Get Contact by ID

Tool to retrieve a specific contact by its ID.

Get Me

Tool to retrieve current authenticated organization's and environment details.

Get Person by ID

Tool to retrieve a person by their internal ID in Formbricks.

Get Responses

Retrieve survey responses with flexible filtering, sorting, and pagination.

Get Roles

Tool to retrieve all available roles in the system.

Get Webhook

Tool to retrieve details of a specific webhook.

List Action Classes

List all action classes in your Formbricks environment.

List Attribute Classes

Tool to list all attribute classes.

List Client Environment

Tool to retrieve environment state for Formbricks SDKs.

List Contact Attribute Keys

Tool to retrieve contact attribute keys from Formbricks.

List Health

Tool to check the health status of critical application dependencies including database and cache.

List Management Contact Attributes

Tool to retrieve all contact attributes in the environment.

List Management Me

Tool to retrieve authenticated user's environment and project information.

List Management People

Tool to retrieve all people (legacy term for contacts) in the environment.

List Organizations Project Teams

Tool to list all project-team assignments for an organization (v2 API only).

List Organization Teams

Tool to retrieve all teams in an organization (v2 API).

List Surveys

List all surveys in the environment.

List Webhooks

List all webhooks configured for the current environment.

Update Contact Attributes

Tool to update a contact's attributes in Formbricks.

Update Survey Response

Tool to update an existing survey response.

Update Survey

Updates an existing Formbricks survey with new properties.

Update Webhook

Tool to update an existing webhook.

Upload Bulk Contacts

Upload multiple contacts to a Formbricks environment in bulk (up to 250 per request).

Upload Private File

Tool to obtain S3 presigned upload data for a private survey file.

Upload Public File

Retrieves S3 presigned upload URLs and form fields for uploading a public file to Formbricks storage.

SETUP GUIDE

Connect Formbricks MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK and Claude Agent SDK
2

Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });

console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(`Tool Router session created: ${mcp.url}`);
Initialize the Composio client and create a Tool Router session
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: mcp.url,
    headers: { 'x-api-key': 'your-composio-api-key' }
  }
});

const tools = await client.tools();

const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{ role: 'user', content: 'Create a new survey to collect user satisfaction feedback' }],
  stopWhen: stepCountIs( 5 )
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent
SETUP GUIDE

Connect Formbricks API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Formbricks Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'Create a new survey with five customer satisfaction questions.'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Formbricks actions with your Agent

Why Use Composio?

AI Native Formbricks Integration

  • Supports both Formbricks MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Formbricks data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Formbricks access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Formbricks
  • Scoped, least privilege access to Formbricks resources
  • Full audit trail of agent actions to support review and compliance
FAQ

Frequently asked questions

Yes, Formbricks requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with Formbricks.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Formbricks tool your agent needs.Free to start.

Start building