# RudderStack Transformation

```json
{
  "name": "RudderStack Transformation",
  "slug": "rudderstack_transformation",
  "url": "https://composio.dev/toolkits/rudderstack_transformation",
  "markdown_url": "https://composio.dev/toolkits/rudderstack_transformation.md",
  "logo_url": "https://logos.composio.dev/api/rudderstack_transformation",
  "categories": [
    "developer tools & devops",
    "analytics & data"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-03-29T06:48:30.658Z"
}
```

![RudderStack Transformation logo](https://logos.composio.dev/api/rudderstack_transformation)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with RudderStack Transformation MCP or direct API to create, update, delete, and manage data transformation scripts through natural language.

## Summary

RudderStack Transformation is an API for managing data transformations in your customer data pipelines. It helps automate the creation, update, and deletion of transformation scripts for streamlined data engineering.

## Categories

- developer tools & devops
- analytics & data

## Toolkit Details

- Tools: 12

## Images

- Logo: https://logos.composio.dev/api/rudderstack_transformation

## Authentication

- **Basic**
  - Type: `basic_auth`
  - Description: Basic authentication for RudderStack Transformation.
  - Setup:
    - Configure Basic credentials for RudderStack Transformation.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- List all transformations for workspace marketing-pipeline
- Update the transformation script for user-events
- Delete transformation named old-data-cleanup

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARY` | Create Library | Tool to create a library in RudderStack Transformation. Use when you need to create reusable JavaScript or Python code that can be imported in transformations. Libraries enable code reusability and version maintenance. |
| `RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATION` | Create Transformation | Tool to create a RudderStack transformation. When publish=false (default), creates an unpublished transformation not available to event traffic. When publish=true, publishes the transformation making it live for incoming events and connectable to destinations. |
| `RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATION` | Delete Transformation | Delete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system. |
| `RUDDERSTACK_TRANSFORMATION_GET_LIBRARY` | Get library by ID | Retrieves a single published library by its unique identifier. Use when you need to fetch details of a specific library. |
| `RUDDERSTACK_TRANSFORMATION_GET_LIBRARY_VERSION` | Get Library Version | Tool to retrieve a single library version by library ID and version ID. Use when you need to fetch details of a specific library revision in RudderStack transformations. |
| `RUDDERSTACK_TRANSFORMATION_GET_TRANSFORMATION` | Get Transformation | Tool to retrieve a published transformation by its ID from RudderStack. Use when you need to fetch details about a specific transformation including its code, version, and associated destinations. |
| `RUDDERSTACK_TRANSFORMATION_GET_TRANSFORMATION_VERSION` | Get Transformation Version | Retrieve a single transformation revision by transformation ID and version ID. Use when you need to get details about a specific version of a RudderStack transformation. |
| `RUDDERSTACK_TRANSFORMATION_LIST_ALL_LIBRARIES` | List All Libraries | Tool to retrieve all published libraries for a workspace. Use when you need to list available libraries for transformations. |
| `RUDDERSTACK_TRANSFORMATION_LIST_LIBRARY_VERSIONS` | List Library Versions | Tool to get all library revisions for a library ID. Use when you need to retrieve all versions of a specific library in RudderStack Transformation. |
| `RUDDERSTACK_TRANSFORMATION_LIST_ALL_TRANSFORMATIONS` | List All Transformations | Tool to retrieve all published transformations for a workspace. Use when you need to list available transformations or find a specific transformation by name. |
| `RUDDERSTACK_TRANSFORMATION_LIST_TRANSFORMATION_VERSIONS` | List Transformation Versions | Tool to list all transformation versions (revisions) for a given transformation ID. Use when you need to retrieve the version history of a specific transformation. |
| `RUDDERSTACK_TRANSFORMATION_UPDATE_TRANSFORMATION` | Update Transformation | Tool to update and optionally publish a RudderStack transformation. Use when you need to modify a transformation's name, description, or code. Updating creates a new revision and sets it as published if the publish flag is true. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK
```python
pip install composio_openai
```

```typescript
npm install @composio/openai
```

#### Path 1, Step 2: Initialize Composio and Create Tool Router Session

Import and initialize Composio client, then create a Tool Router session
```python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
```

```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');
```

#### Path 1, Step 3: Execute RudderStack Transformation Tools via Tool Router with Your Agent

Get tools from Tool Router session and execute RudderStack Transformation actions with your Agent
```python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'List all transformations for workspace "marketing-pipeline"'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
```

```typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'List all transformations for workspace "marketing-pipeline"'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK for Python or TypeScript
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
```

#### Path 2, Step 2: Initialize Client and Create Tool Router Session

Import and initialize the Composio client, then create a Tool Router session for RudderStack Transformation
```python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
```

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

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
```

#### Path 2, Step 3: Connect to AI Agent

Use the MCP server with your AI agent (Anthropic Claude or Mastra)
```python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to RudderStack Transformation tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Update the "sanitize_emails" transformation to replace all numbers with X')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
```

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

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.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: 'Update the "sanitize_emails" transformation to replace all numbers with X'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
```

## Why Use Composio?

### 1. AI Native RudderStack Transformation Integration

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

### 2. Managed Auth

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

### 3. 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

### 4. Enterprise Grade Security

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

## Use RudderStack Transformation with any AI Agent Framework

Choose a framework you want to connect RudderStack Transformation with:

- [OpenAI Agents SDK](https://composio.dev/toolkits/rudderstack_transformation/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/rudderstack_transformation/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/rudderstack_transformation/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/rudderstack_transformation/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/rudderstack_transformation/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/rudderstack_transformation/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/rudderstack_transformation/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/rudderstack_transformation/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/rudderstack_transformation/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/rudderstack_transformation/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/rudderstack_transformation/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/rudderstack_transformation/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/rudderstack_transformation/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/rudderstack_transformation/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/rudderstack_transformation/framework/autogen)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [Firecrawl](https://composio.dev/toolkits/firecrawl) - Firecrawl automates large-scale web crawling and data extraction. It helps organizations efficiently gather, index, and analyze content from online sources.
- [Tavily](https://composio.dev/toolkits/tavily) - Tavily offers powerful search and data retrieval from documents, databases, and the web. It helps teams locate and filter information instantly, saving hours on research.
- [Exa](https://composio.dev/toolkits/exa) - Exa is a data extraction and search platform for gathering and analyzing information from websites, APIs, or databases. It helps teams quickly surface insights and automate data-driven workflows.
- [Serpapi](https://composio.dev/toolkits/serpapi) - SerpApi is a real-time API for structured search engine results. It lets you automate SERP data collection, parsing, and analysis for SEO and research.
- [Peopledatalabs](https://composio.dev/toolkits/peopledatalabs) - Peopledatalabs delivers B2B data enrichment and identity resolution APIs. Supercharge your apps with accurate, up-to-date business and contact data.
- [Snowflake](https://composio.dev/toolkits/snowflake) - Snowflake is a cloud data warehouse built for elastic scaling, secure data sharing, and fast SQL analytics across major clouds.
- [Posthog](https://composio.dev/toolkits/posthog) - PostHog is an open-source analytics platform for tracking user interactions and product metrics. It helps teams refine features, analyze funnels, and reduce churn with actionable insights.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Amplitude](https://composio.dev/toolkits/amplitude) - Amplitude is a digital analytics platform for product and behavioral data insights. It helps teams analyze user journeys and make data-driven decisions quickly.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.

## Frequently Asked Questions

### Do I need my own developer credentials to use RudderStack Transformation with Composio?

Yes, RudderStack Transformation requires you to configure your own Basic Auth credentials. Once set up, Composio handles secure credential storage and authentication for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

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

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
