A favicon of CrewAI Adapter

CrewAI Adapter

Integrate and extend CrewAI's capabilities with seamless MCP support. Build custom agents and tools effortlessly while ensuring type safety and validation. Enhance your AI applications with powerful, easy-to-use interfaces for advanced functionality.

Installation

Installing for Claude Desktop

Option 1: One-Command Installation

npx mcpbar@latest install dshivendra/crewai_mcp_adapter -c claude

This command will automatically install and configure the CrewAI Adapter MCP server for your selected client.

Option 2: Manual Configuration

Run the command below to open your configuration file:

npx mcpbar@latest edit -c claude

After opening your configuration file, copy and paste this configuration:

View JSON configuration
{
  "mcpServers": {
    "CrewAI Adapter": {
      "command": "uvx",
      "args": [
        "crewai-adapters"
      ],
      "env": {}
    }
  }
}

MseeP.ai Security Assessment Badge

CrewAI MCP Adapter

A Python library extending CrewAI's adapter ecosystem with Model Context Protocol (MCP) integration support and comprehensive tooling for custom agent and tool development.

Features

  • ๐Ÿ”Œ Native CrewAI integration and adapter patterns
  • ๐Ÿ› ๏ธ MCP protocol support for tool integration
  • ๐Ÿงฉ Easy-to-use interface for extending and creating new adapters
  • ๐Ÿ“ Type-safe implementation with Pydantic
  • ๐Ÿ” JSON Schema validation for tool parameters
  • ๐Ÿš€ Async/await support
  • ๐Ÿ“Š Detailed execution metadata

Installation

You can install the package directly from PyPI:

pip install crewai-adapters

Or install from source:

pip install git+https://github.com/dshivendra/crewai_mcp_adapter.git

Quick Start

from crewai import Agent, Task
from crewai_adapters import CrewAIAdapterClient
from crewai_adapters.types import AdapterConfig

async def main():
    async with CrewAIAdapterClient() as client:
        # Connect to MCP server
        await client.connect_to_mcp_server(
            "math",
            command="python",
            args=["math_server.py"]
        )

        # Create agent with tools
        agent = Agent(
            name="Calculator",
            goal="Perform calculations",
            tools=client.get_tools()
        )

        # Execute task
        task = Task(
            description="Calculate (3 + 5) ร— 12",
            agent=agent
        )
        result = await task.execute()
        print(f"Result: {result}")

if __name__ == "__main__":
    import asyncio
    asyncio.run(main())

Documentation

For detailed documentation, see:

Development

Prerequisites

  • Python 3.11 or higher
  • crewai package
  • pydantic package
  • mcp package

Install Development Dependencies

pip install -e ".[test,docs]"

Running Tests

pytest tests/ -v

Publishing

To publish a new version to PyPI:

  1. Update version in pyproject.toml
  2. Build the package:
    python -m build
    
  3. Upload to PyPI:
    python -m twine upload dist/*
    

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Share:
Details:
  • Stars


    14
  • Forks


    5
  • Last commit


    2 months ago
  • Repository age


    5 months
  • License


    MIT
View Repository

Auto-fetched from GitHub .

MCP servers similar to CrewAI Adapter:

ย 

ย 
ย 
  • Stars


  • Forks


  • Last commit


ย 

ย 
ย 
  • Stars


  • Forks


  • Last commit


ย 

ย 
ย 
  • Stars


  • Forks


  • Last commit


CrewAI Adapter: MCP Server โ€“ MCP.Bar