MCP Servers in Activepieces
Activepieces provides the largest open source MCP (Model Context Protocol) toolkit with all 600+ pieces automatically available as MCP servers. Connect your workflows to AI assistants like Claude Desktop, Cursor, and Windsurf, enabling powerful AI-human-tool collaboration.What is MCP?
MCP (Model Context Protocol) is a standard protocol that allows Large Language Models (LLMs) to interact with external tools and services. It was developed by Anthropic to enable AI assistants to:- Access external data sources
- Execute actions in external systems
- Retrieve real-time information
- Perform complex multi-step operations
MCP acts as a bridge between AI assistants and real-world tools, allowing Claude, Cursor, and other LLM-powered applications to use your Activepieces workflows as callable tools.
How Activepieces MCP Works
Every Activepieces piece and flow can be exposed as an MCP server tool. Here’s how it works:1. MCP Server Configuration
Based on the source code, Activepieces manages MCP servers at the project level:2. MCP Tool Trigger
Flows use a special MCP trigger to expose themselves as callable tools:3. Tool Execution Flow
When an AI assistant calls an MCP tool:- AI makes request: Claude/Cursor calls the tool with parameters
- MCP server receives: Activepieces MCP server accepts the request
- Flow executes: The associated flow runs with the provided inputs
- Response returned: Flow output is sent back to the AI assistant
- AI uses result: Assistant incorporates the data into its response
Setting Up MCP in Activepieces
Enable MCP Server
In your Activepieces project settings:
- Navigate to Project Settings → MCP Server
- Click Enable MCP Server
- Copy the generated MCP server token
- Note the server URL (e.g.,
https://cloud.activepieces.com/api/v1/mcp)
Create an MCP-Enabled Flow
Create a new flow with an MCP trigger:
- Create a new flow
- Select MCP Tool as the trigger
- Configure the tool:
- Tool Name:
search_database - Tool Description: “Search the customer database”
- Input Schema: Define expected parameters
- Returns Response: Enable if the AI needs data back
- Tool Name:
- Add action steps to perform the work
- Publish the flow
Configure Your AI Assistant
Connect your AI assistant to Activepieces MCP server (see sections below).
Using with Claude Desktop
Claude Desktop is Anthropic’s desktop application that supports MCP servers.Configuration
Add Activepieces to your Claude Desktop MCP configuration: macOS/Linux: Edit~/Library/Application Support/Claude/claude_desktop_config.json
Windows: Edit %APPDATA%\Claude\claude_desktop_config.json
Using MCP Tools in Claude
Once configured, Claude can automatically discover and use your Activepieces tools:Using with Cursor
Cursor is an AI-powered code editor that supports MCP servers.Configuration
Add Activepieces MCP to your Cursor settings:- Open Cursor Settings
- Navigate to AI → MCP Servers
- Add a new MCP server:
Using in Cursor
Use Cursor’s AI assistant to interact with your Activepieces tools:Using with Windsurf
Windsurf is another AI-powered development environment with MCP support.Configuration
Similar to Cursor, add Activepieces to Windsurf’s MCP configuration:MCP Tool Input Schema
Define structured inputs for your MCP tools using the input schema:STRING: Text inputNUMBER: Numeric inputBOOLEAN: True/falseOBJECT: JSON objectARRAY: List of items
Returning Data to AI
WhenreturnsResponse: true, the flow output is sent back to the AI:
MCP Server Implementation
Behind the scenes, Activepieces implements a full MCP server using the@modelcontextprotocol/sdk:
Real-World Use Cases
Customer Support
Let Claude search your customer database, create tickets, and send notifications - all through natural language.
Code Development
Use Cursor to query your APIs, update configurations, and deploy services using Activepieces workflows.
Data Analysis
Ask AI assistants to fetch, analyze, and visualize data from your connected services.
DevOps Operations
Execute deployment pipelines, check system health, and manage infrastructure through AI commands.
Security Considerations
MCP server tokens provide full access to execute flows in your project. Treat them like API keys:
- Store tokens securely
- Rotate tokens regularly
- Use different tokens for different environments
- Disable MCP when not in use
- Monitor MCP tool executions in the Runs log
Token Management
Rotate your MCP token if compromised:Benefits of Activepieces MCP
600+ Tools Ready
Every Activepieces piece is automatically available as an MCP tool - no extra configuration needed.
Type-Safe Integration
Input schemas ensure AI assistants call tools with the correct parameters.
Visual Development
Build complex MCP tools using the visual workflow builder instead of writing code.
Built-in Authentication
Activepieces handles auth for all connected services - AI doesn’t need separate credentials.
Audit & Monitoring
Track every MCP tool execution in the Runs log for debugging and compliance.
Open Source
Full source code available - understand exactly how MCP integration works.
Example: Complete MCP Tool
Here’s a complete example of an MCP-enabled flow that searches a database:Next Steps
- Build AI Workflows - Create intelligent automations
- Create Custom Pieces - Build your own MCP-enabled tools
- API Reference - Programmatic access to MCP servers
- Workflow Concepts - Understand flows and triggers