Activepieces is an open source MCP (Model Context Protocol) server that provides AI automation capabilities through a type-safe pieces framework written in TypeScript. When you contribute pieces to Activepieces, they automatically become available as MCP servers that you can use with LLMs through Claude Desktop, Cursor, or Windsurf.
To get started with Activepieces, you have several deployment options:
The easiest way to install Activepieces is using Docker:
docker run -d \
-p 8080:8080 \
-v activepieces_data:/app/data \
-e AP_ENCRYPTION_KEY=YourEncryptionKey \
-e [email protected] \
-e AP_ADMIN_PASSWORD=YourPassword \
activepieces/activepieces:latest
Replace the environment variables with your desired values:
AP_ENCRYPTION_KEY
: A secure encryption keyAP_ADMIN_EMAIL
: Admin user emailAP_ADMIN_PASSWORD
: Admin user passwordFor a more comprehensive setup, you can use Docker Compose:
version: "3"
services:
activepieces:
image: activepieces/activepieces:latest
container_name: activepieces
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- activepieces_data:/app/data
environment:
- AP_ENCRYPTION_KEY=YourEncryptionKey
- [email protected]
- AP_ADMIN_PASSWORD=YourPassword
volumes:
activepieces_data:
Save this as docker-compose.yml
and run:
docker-compose up -d
Activepieces can be configured using environment variables:
AP_ENCRYPTION_KEY=your-encryption-key
[email protected]
AP_ADMIN_PASSWORD=your-password
# Database configuration
AP_POSTGRES_DATABASE=activepieces
AP_POSTGRES_HOST=localhost
AP_POSTGRES_PASSWORD=postgres
AP_POSTGRES_PORT=5432
AP_POSTGRES_USERNAME=postgres
# Redis configuration (for production)
AP_REDIS_URL=redis://localhost:6379
# Frontend URL
AP_FRONTEND_URL=http://localhost:8080
# File storage (optional)
AP_FILE_STORAGE_STRATEGY=minio
AP_MINIO_ENDPOINT=your-minio-endpoint
AP_MINIO_ACCESS_KEY=your-access-key
AP_MINIO_SECRET_KEY=your-secret-key
To use Activepieces as an MCP server with LLMs:
After installation, access the Activepieces interface at:
http://localhost:8080
You can use existing pieces or create your own. Pieces are TypeScript modules that define integrations with various services.
To use Activepieces with Claude Desktop, Cursor, or Windsurf:
You can create your own pieces using the TypeScript framework:
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
export const myCustomPiece = createPiece({
name: 'my-custom-piece',
displayName: 'My Custom Piece',
auth: PieceAuth.None(),
actions: [
// Define your actions here
],
triggers: [
// Define your triggers here
],
});
Activepieces offers many built-in features:
For additional help, you can:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "activepieces" '{"command":"npx","args":["-y","@activepieces/cli"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"activepieces": {
"command": "npx",
"args": [
"-y",
"@activepieces/cli"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"activepieces": {
"command": "npx",
"args": [
"-y",
"@activepieces/cli"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect