Labsco
Mayank1805 logo

Claude Swarm MCP Server

from Mayank1805

An MCP server for multi-agent orchestration using Claude AI via Claude Desktop.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedPaid serviceAdvanced setup

Claude Swarm MCP Server

A Model Context Protocol (MCP) server that enables multi-agent orchestration using Claude AI through Claude Desktop. Create, manage, and coordinate specialized AI agents for complex workflows like financial analysis, customer service, and research.

๐Ÿš€ Features

  • ๐Ÿค– Persistent Agents: Create specialized Claude agents that survive restarts
  • ๐Ÿ”„ Agent Coordination: Intelligent handoffs between agents based on expertise
  • ๐Ÿ’พ Local Storage: All agents and conversations saved locally
  • ๐Ÿ“Š Pre-built Templates: Ready-to-use financial analysis and customer service teams
  • ๐ŸŽฏ Specialized Functions: Custom tools and capabilities per agent
  • ๐Ÿ”ง Easy Integration: Works seamlessly with Claude Desktop

๐Ÿ”ง Available Tools

ToolDescription
create_agentCreate a new specialized agent
list_agentsView all saved agents
chat_with_agentInteract with specific agents
delete_agentRemove an agent permanently
create_finance_teamGenerate complete financial analysis team
get_conversation_historyView chat history and agent transfers
reset_conversationClear conversation history

๐Ÿ“ Project Structure

claude-swarm-mcp/
โ”œโ”€โ”€ claude_swarm.py              # Core Swarm framework
โ”œโ”€โ”€ claude_swarm_mcp_server.py   # MCP server implementation
โ”œโ”€โ”€ requirements.txt             # Python dependencies
โ”œโ”€โ”€ README.md                    # This file
โ”œโ”€โ”€ LICENSE                      # MIT License
โ”œโ”€โ”€ examples/                    # Usage examples
โ”‚   โ”œโ”€โ”€ finance_workflow.py      # Financial analysis example
โ”‚   โ”œโ”€โ”€ customer_service.py      # Customer service template
โ”‚   โ””โ”€โ”€ research_team.py         # Research coordination example
โ”œโ”€โ”€ tests/                       # Test suite
โ”‚   โ”œโ”€โ”€ test_agents.py           # Agent functionality tests
โ”‚   โ”œโ”€โ”€ test_mcp_server.py       # MCP server tests
โ”‚   โ””โ”€โ”€ test_swarm.py           # Swarm coordination tests
โ””โ”€โ”€ docs/                       # Documentation
    โ”œโ”€โ”€ API.md                   # API reference
    โ”œโ”€โ”€ DEPLOYMENT.md            # Deployment guide
    โ””โ”€โ”€ CONTRIBUTING.md          # Contribution guidelines

๐Ÿ—๏ธ Architecture

Core Components

  1. Claude Swarm Framework (claude_swarm.py)

    • Multi-agent orchestration
    • Automatic handoffs between agents
    • Shared conversation context
    • Function calling integration
  2. MCP Server (claude_swarm_mcp_server.py)

    • Model Context Protocol implementation
    • Persistent agent storage
    • Tool registration and handling
    • Claude Desktop integration
  3. Agent Storage (data/)

    • JSON-based agent persistence
    • Conversation history
    • Context variables
    • Backup and restore capabilities

Data Flow

Claude Desktop โ†” MCP Protocol โ†” Swarm Server โ†” Claude API
                                      โ†“
                              Agent Storage (JSON)

๐ŸŽจ Use Cases

Financial Services

  • Portfolio Risk Analysis: VaR calculations, stress testing
  • Investment Research: Market analysis, stock recommendations
  • Compliance Monitoring: Regulatory requirements, position limits
  • Client Advisory: Personalized investment advice

Customer Support

  • Intelligent Triage: Route customers to appropriate specialists
  • Multi-language Support: Automatic language detection and routing
  • Escalation Management: Seamless handoffs to senior agents
  • Knowledge Base Integration: Context-aware information retrieval

Research & Development

  • Literature Review: Coordinate research across multiple domains
  • Data Analysis: Statistical analysis, visualization, reporting
  • Project Management: Task coordination, milestone tracking
  • Technical Documentation: Automated documentation generation

๐Ÿ”’ Security & Privacy

  • Local Storage: All data stored locally on your machine
  • API Key Security: Secure API key handling through environment variables
  • No External Dependencies: No third-party services for agent storage
  • Audit Trail: Complete conversation history and agent interactions

๐Ÿ“Š Performance

  • Agent Creation: < 2 seconds
  • Chat Response: 3-8 seconds (depending on complexity)
  • Agent Handoffs: < 1 second
  • Storage Operations: < 500ms
  • Memory Usage: ~50-100MB (depending on conversation history)

๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Setup

# Clone and setup development environment
git clone https://github.com/yourusername/claude-swarm-mcp.git
cd claude-swarm-mcp
python3 -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt

Running Tests

python -m pytest tests/ -v

๐Ÿ“ˆ Roadmap

  • Advanced Agent Coordination: Complex multi-step workflows
  • Custom Function Registry: User-defined agent capabilities
  • Web UI: Browser-based agent management interface
  • Integration Templates: Pre-built integrations for popular services
  • Performance Optimization: Faster response times and memory usage
  • Multi-Model Support: Support for other LLM providers
  • Cloud Deployment: Docker containers and cloud hosting options

๐Ÿ“„ License

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

๐Ÿ™ Acknowledgments

  • Anthropic for Claude AI and excellent API
  • OpenAI for the original Swarm framework inspiration
  • Model Context Protocol team for the MCP specification
  • Claude Desktop team for seamless integration

๐Ÿ“ž Support


โญ Star this repository if you find it useful!

Built with โค๏ธ for the Claude AI community# Claude Swarm MCP Server

A Model Context Protocol (MCP) server that enables multi-agent orchestration using Claude AI through Claude Desktop. Create, manage, and coordinate specialized AI agents for complex workflows like financial analysis, customer service, and research.

๐Ÿš€ Features

  • ๐Ÿค– Persistent Agents: Create specialized Claude agents that survive restarts
  • ๐Ÿ”„ Agent Coordination: Intelligent handoffs between agents based on expertise
  • ๐Ÿ’พ Local Storage: All agents and conversations saved locally
  • ๐Ÿ“Š Pre-built Templates: Ready-to-use financial analysis and customer service teams
  • ๐ŸŽฏ Specialized Functions: Custom tools and capabilities per agent
  • ๐Ÿ”ง Easy Integration: Works seamlessly with Claude Desktop

๐Ÿš€ Features

  • ๐Ÿค– Persistent Agents: Create specialized Claude agents that survive restarts
  • ๐Ÿ”„ Agent Coordination: Intelligent handoffs between agents based on expertise
  • ๐Ÿ’พ Local Storage: All agents and conversations saved locally
  • ๐Ÿ“Š Pre-built Templates: Ready-to-use financial analysis and customer service teams
  • ๐ŸŽฏ Specialized Functions: Custom tools and capabilities per agent
  • ๐Ÿ”ง Easy Integration: Works seamlessly with Claude Desktop

๐Ÿ“‹ Quick