Activepieces MCP server

Dynamic server to which you can add apps (Google Calendar, Notion, ...) or advanced Activepieces Flows (A refund logic, a research and enrichment logic, ...).
Back to servers
Provider
Activepieces
Release date
Apr 05, 2025
Language
TypeScript
Package
Stats
954 downloads
14.9K stars

Activepieces is an open source automation platform that allows you to connect various services and automate workflows. When configured as an MCP (Model Context Protocol) server, it can be used with AI tools like Claude Desktop, Cursor, or Windsurf to extend LLM capabilities through its extensive collection of integration pieces.

Installation

There are several ways to install and run the Activepieces MCP server:

Using Docker (Recommended)

The simplest way to get started is with Docker:

docker run -d \
  -p 8080:8080 \
  -e AP_JWT_SECRET=your-jwt-secret \
  -e AP_FRONTEND_URL=http://localhost:8080 \
  --name activepieces \
  activepieces/activepieces

Make sure to replace your-jwt-secret with a secure random string for production use.

Using Docker Compose

For a more comprehensive setup, you can use Docker Compose:

version: "3.8"
services:
  activepieces:
    image: activepieces/activepieces
    container_name: activepieces
    ports:
      - "8080:8080"
    environment:
      - AP_JWT_SECRET=your-jwt-secret
      - AP_FRONTEND_URL=http://localhost:8080
      # Add other environment variables as needed
    volumes:
      - activepieces_data:/app/data
    restart: unless-stopped

volumes:
  activepieces_data:

Save this to a file named docker-compose.yml and run:

docker-compose up -d

Configuration

Activepieces can be configured using environment variables. Here are the most important ones:

Core Settings

AP_JWT_SECRET=your-jwt-secret           # Required: Secret for JWT tokens
AP_FRONTEND_URL=http://localhost:8080   # Required: URL where the UI is hosted

Database Configuration

By default, Activepieces uses SQLite. For production, you might want to use PostgreSQL:

AP_DATABASE_TYPE=postgres
AP_POSTGRES_DATABASE=activepieces
AP_POSTGRES_HOST=postgres
AP_POSTGRES_PASSWORD=postgres
AP_POSTGRES_PORT=5432
AP_POSTGRES_USERNAME=postgres

Authentication Options

AP_SIGN_UP_ENABLED=true           # Enable/disable sign up
[email protected]  # Admin user email
AP_ADMIN_PASSWORD=password        # Admin user password

Using Activepieces as an MCP Server

To use Activepieces as an MCP server with LLMs:

1. Create an account

After setting up the server, navigate to http://localhost:8080 (or your configured URL) and create an account.

2. Create a project

Once logged in, create a new project where you'll set up your automations.

3. Configure connections to external services

Set up connections to the services you want to use in your workflows. This typically involves:

  • Navigating to the Connections section
  • Selecting the service you want to connect to
  • Following the authentication flow (usually OAuth or API key)

4. Create flows

Flows are the core of Activepieces. They consist of triggers and actions:

  1. Start by selecting a trigger (what starts your automation)
  2. Add actions to be performed when the trigger occurs
  3. Configure each step with the necessary parameters
  4. Test your flow to ensure it works as expected

5. Configure MCP endpoints

To expose your flows as MCP endpoints:

# Example of configuring an MCP endpoint
curl -X POST http://localhost:8080/api/v1/mcp/config \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "flowId": "your-flow-id",
    "name": "My MCP Endpoint",
    "description": "Endpoint description",
    "isPublic": true
  }'

6. Connect to LLM tools

Connect your Activepieces MCP server to tools like Claude Desktop, Cursor, or Windsurf:

  1. In your LLM tool, find the MCP configuration section
  2. Add your Activepieces server URL (e.g., http://localhost:8080/api/v1/mcp)
  3. Authenticate using your API key if required

Working with Pieces

Activepieces comes with over 280 pre-built integration pieces. Here's how to use them:

Browse available pieces

Navigate to the pieces marketplace in the Activepieces UI to see all available integrations.

Configure a piece

When adding a piece to your flow:

  1. Select the piece from the marketplace
  2. Configure the required parameters
  3. Set up any necessary connections
  4. Test the piece to ensure it works as expected

Example: Using the OpenAI piece

1. Add the OpenAI piece to your flow
2. Configure the OpenAI API key in the connections section
3. Set up the prompt and other parameters
4. Test the piece with a sample input

Advanced Features

Loops and Branches

Activepieces supports flow control with loops and branches:

  • Use loops to iterate over lists of items
  • Use branches to create conditional logic in your flows

Code Execution

You can add custom code steps with the Code piece:

// Example code step
export const code = async (inputs) => {
  // Process inputs
  const processedData = inputs.data.map(item => {
    return {
      id: item.id,
      name: item.name.toUpperCase()
    };
  });
  
  // Return outputs
  return {
    processedData
  };
};

AI Integration

Activepieces has built-in AI capabilities:

  • Connect to various AI providers
  • Create AI agents using the AI SDK
  • Use the AI Copilot to help build flows

Troubleshooting

Common Issues

Connection Errors

If you're experiencing connection issues:

1. Check your network configuration
2. Verify that your API keys are correct
3. Ensure the external service is available

Flow Execution Failures

If your flows aren't executing correctly:

1. Check the logs in the flow execution history
2. Test each step individually to isolate the issue
3. Verify that your connections are still valid

MCP Integration Issues

If LLMs can't connect to your MCP server:

1. Verify the server URL is correct
2. Check that the API key has the necessary permissions
3. Ensure the MCP endpoints are properly configured

For more detailed information, visit the official Activepieces documentation.

How to add this MCP server to Cursor

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.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later