Skip to main content

ActiveCampaign MCP Server

Project description

ActiveCampaign v3 MCP Server

This project provides a robust, LLM-friendly MCP (Model Context Protocol) server for the ActiveCampaign v3 API. It is built using the FastMCP framework and is designed for easy integration with AI agents and clients like Claude Desktop.

The server is automatically generated from the official ActiveCampaign v3 OpenAPI specification but includes significant customizations to create a more intuitive and efficient interface for language models.

Features

  • [cite_start]FastMCP Powered: Leverages the high-performance FastMCP library to handle all complex protocol details, allowing you to focus on functionality[cite: 317].
  • [cite_start]Intelligent OpenAPI Conversion: Automatically converts REST endpoints into MCP Tools, Resources, and Resource Templates[cite: 775, 782].
  • Secure Authentication: Handles API token authentication seamlessly. Your token is loaded from a secure .env file and is not exposed in the code.
  • LLM-Friendly Customizations:
    • Simplified Tools: Complex API endpoints have been wrapped in simpler, more intuitive custom tools (see USAGE.md for details).
    • Endpoint Pruning: Redundant or overly specific endpoints have been excluded to reduce complexity and improve agent performance.
  • [cite_start]Modern Tooling: Project setup and dependency management are handled by uv, the fast Python package manager[cite: 258].

Prerequisites

Before you begin, ensure you have the following:

  • Python 3.8+
  • uv installed on your system.
  • An ActiveCampaign account with access to your API URL and API Token. You can find these in your account under Settings > Developer.

Setup and Installation

Follow these steps to get the server up and running.

  1. Clone the Repository

    git clone <repository-url>
    cd <repository-directory>
    
  2. Create and Activate Virtual Environment Use uv to create a virtual environment for the project.

    # Create the venv
    uv venv
    
    # Activate the venv (macOS/Linux)
    source .venv/bin/activate
    
    # Activate the venv (Windows)
    .venv\Scripts\activate
    
  3. Install Dependencies Install all required packages using uv sync, which will install dependencies from pyproject.toml.

    uv sync
    

Configuration

The server requires your ActiveCampaign API URL and Token to function.

  1. Create a .env file by copying the example file:

    cp .env.example .env
    
  2. Edit the .env file and add your credentials:

    # The base URL for your ActiveCampaign API account (e.g., [https://your-account.api-us1.com](https://your-account.api-us1.com))
    AC_API_URL="https://<your-account>.api-us1.com"
    
    # Your ActiveCampaign API Token
    AC_API_TOKEN="your_super_secret_api_token"
    

    The server will automatically load these variables when it starts.

Running the Server

To run the MCP server, execute the server.py script from your terminal:

```bash
python server.py
```

[cite_start]By default, the server runs using the STDIO transport[cite: 226]. [cite_start]This is the standard method for local clients like Claude Desktop, where the client application manages the server's lifecycle[cite: 230].

Running with HTTP Transport

[cite_start]For development, testing with the MCP Inspector, or web-based deployments, you can easily run the server with an HTTP transport using the fastmcp CLI[cite: 208, 484].

```bash
# Run with Streamable HTTP on port 8000
fastmcp run server.py --transport streamable-http --port 8000
```

[cite_start]This command overrides the transport specified in the code, which is useful for changing deployment methods without modifying the source file[cite: 211, 483].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

activecamp_mcp-0.1.0.tar.gz (162.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

activecamp_mcp-0.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file activecamp_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: activecamp_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 162.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for activecamp_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5ddab428cab3350d08f07f6469ca4b7e959934b3322045ab181057002a55374
MD5 d3903736c43e03ed95e327b9af1bd874
BLAKE2b-256 4a07fe9f11c46c2a9a3db5181675dcb747318f0a99423597d7258dc2610c1a6e

See more details on using hashes here.

File details

Details for the file activecamp_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: activecamp_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for activecamp_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b649a7ce1b2a08862122f018151b35421b4edc305e77a2aded301ecad701232
MD5 907489ce0a5f8a68fb3181bd8d37c600
BLAKE2b-256 412b0c8fb8da96868e046b93629ddf077b6995927e4271c0806a8abf8d9ad60f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page