Skip to main content
CrewAI Logo

MCP Crew AI Server

MCP Crew AI Server is a lightweight Python-based server designed to run, manage and create CrewAI workflows. This project leverages the Model Context Protocol (MCP) to communicate with Large Language Models (LLMs) and tools such as Claude Desktop or Cursor IDE, allowing you to orchestrate multi-agent workflows with ease.

Features

  • Automatic Configuration: Automatically loads agent and task configurations from two YAML files (agents.yml and tasks.yml), so you don't need to write custom code for basic setups.
  • Command Line Flexibility: Pass custom paths to your configuration files via command line arguments (--agents and --tasks).
  • Seamless Workflow Execution: Easily run pre-configured workflows through the MCP run_workflow tool.
  • Local Development: Run the server locally in STDIO mode, making it ideal for development and testing.

Installation

There are several ways to install the MCP Crew AI server:

pip install mcp-crew-ai

Option 2: Install from GitHub

pip install git+https://github.com/adam-paterson/mcp-crew-ai.git

Option 3: Clone and Install

git clone https://github.com/adam-paterson/mcp-crew-ai.git
cd mcp-crew-ai
pip install -e .

Requirements

  • Python 3.11+
  • MCP SDK
  • CrewAI
  • PyYAML

Configuration

  • agents.yml: Define your agents with roles, goals, and backstories.
  • tasks.yml: Define tasks with descriptions, expected outputs, and assign them to agents.

Example agents.yml:

zookeeper:
  role: Zookeeper
  goal: Manage zoo operations
  backstory: >
    You are a seasoned zookeeper with a passion for wildlife conservation...

Example tasks.yml:

write_stories:
  description: >
    Write an engaging zoo update capturing the day's highlights.
  expected_output: 5 engaging stories
  agent: zookeeper
  output_file: zoo_report.md

Usage

Once installed, you can run the MCP CrewAI server using either of these methods:

Standard Python Command

mcp-crew-ai --agents path/to/agents.yml --tasks path/to/tasks.yml

Using UV Execution (uvx)

For a more streamlined experience, you can use the UV execution command:

uvx mcp-crew-ai --agents path/to/agents.yml --tasks path/to/tasks.yml

Or run just the server directly:

uvx mcp-crew-ai-server

This will start the server using default configuration from environment variables.

Command Line Options

  • --agents: Path to the agents YAML file (required)
  • --tasks: Path to the tasks YAML file (required)
  • --topic: The main topic for the crew to work on (default: "Artificial Intelligence")
  • --process: Process type to use (choices: "sequential" or "hierarchical", default: "sequential")
  • --verbose: Enable verbose output
  • --variables: JSON string or path to JSON file with additional variables to replace in YAML files
  • --version: Show version information and exit

Advanced Usage

You can also provide additional variables to be used in your YAML templates:

mcp-crew-ai --agents examples/agents.yml --tasks examples/tasks.yml --topic "Machine Learning" --variables '{"year": 2025, "focus": "deep learning"}'

These variables will replace placeholders in your YAML files. For example, {topic} will be replaced with "Machine Learning" and {year} with "2025".

Contributing

Contributions are welcome! Please open issues or submit pull requests with improvements, bug fixes, or new features.

Licence

This project is licensed under the MIT Licence. See the LICENSE file for details.

Happy workflow orchestration!

Metadata

Release files for iflow-mcp_adam-paterson-mcp-crew-ai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_adam-paterson-mcp-crew-ai 0.1.0
File Size Uploaded
iflow_mcp_adam_paterson_mcp_crew_ai-0.1.0.tar.gz 143.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_adam-paterson-mcp-crew-ai 0.1.0
File Interpreter ABI Platform
iflow_mcp_adam_paterson_mcp_crew_ai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 152.6 kB

Release files / iflow_mcp_adam_paterson_mcp_crew_ai-0.1.0.tar.gz

Download URL iflow_mcp_adam_paterson_mcp_crew_ai-0.1.0.tar.gz
Size 143.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ced07587946c51c777118c0475c0dfe5ac97dfc28d0e713e3fa344fa93e19e1e
BLAKE2b-256 checksum
How to use checksums
d269cf43f7b869d6d34992370f3a1c8883dda1747349180c9c8811416ce905a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_adam_paterson_mcp_crew_ai-0.1.0-py3-none-any.whl

Download URL iflow_mcp_adam_paterson_mcp_crew_ai-0.1.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
517a78890bd473dff19e14e3bc1d7c44f746f00f32f9f4e75daad684a439f51d
BLAKE2b-256 checksum
How to use checksums
7a692d5d946011cbb5d5d2d255c0b9c8f822f34a6f0d4cbfb8e60b833675024a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page