Sponsored by Deepsite.site

MCP Orchestrator Server

Created By
lioarce017 months ago
Content

MCP Orchestrator Server

A MCP server that acts as the central orchestrator to coordinate tasks between multiple specialized MCP services (Trello, GitHub, etc.).

🚀 Installation and Setup

1. Install dependencies

npm install

2. Configure MCP services

Make sure your Trello and GitHub MCP servers are running:

# Terminal 1 - Trello MCP Server (port 3001)
docker run -p 3001:3001 trello-mcp-server

# Terminal 2 - GitHub MCP Server (port 3002)
docker run -p 3002:3002 github-mcp-server

3. Run the orchestrator

# Development mode
npm run dev

# Production mode
npm run build && npm start

🎯 Available Tools

planDevelopmentFeature

Automatically creates necessary resources for a new feature:

  • "Backlog" list in Trello (if it doesn't exist)
  • Card with the feature name
  • feature/feature-name branch in GitHub

Parameters:

  • featureName: Name of the feature
  • trelloBoard: Trello board ID or name
  • githubRepo: GitHub repository (owner/repo format)
  • baseBranch: Base branch (default: main)
  • description: Optional description

executeMultiServiceTask

Executes custom tasks across multiple MCP services.

Parameters:

  • tasks: Array of tasks in the following format:

    {
      "service": "trello|github",
      "method": "createList|createCard|createBranch|etc",
      "params": {
        /* method-specific parameters */
      }
    }
    

📋 Usage Examples

Example 1: Full feature planning

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "planDevelopmentFeature",
    "arguments": {
      "featureName": "Google Login",
      "trelloBoard": "my-project-board-id",
      "githubRepo": "myuser/myproject",
      "baseBranch": "main",
      "description": "Implement OAuth2 authentication with Google"
    }
  }
}

Expected result:

  • ✅ "Backlog" list created in Trello
  • ✅ "Google Login" card added to the list
  • ✅ Branch feature/google-login created from main

Example 2: Custom multi-service tasks

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "executeMultiServiceTask",
    "arguments": {
      "tasks": [
        {
          "service": "trello",
          "method": "createList",
          "params": {
            "boardId": "board123",
            "name": "Sprint 1"
          }
        },
        {
          "service": "github",
          "method": "createBranch",
          "params": {
            "repo": "myuser/myproject",
            "branchName": "hotfix/critical-bug",
            "baseBranch": "main"
          }
        }
      ]
    }
  }
}

🔧 Architecture

[AI Agent / User]
[MCP Orchestrator] ← Central coordination
┌──────────────────────────────────────────────┐
│  Trello MCP        │   GitHub MCP       │ (GitHub MCP not implemented yet)
│  (port 3001)       │   (port 3002)      │
└──────────────────────────────────────────────┘

Workflow:

  1. Reception: The orchestrator receives a high-level instruction
  2. Analysis: It determines which services and methods to invoke
  3. Delegation: Sends JSON-RPC requests to the respective MCP servers
  4. Coordination: Collects results and handles errors
  5. Response: Returns a unified summary of all operations

🛠️ Extensibility

To add new MCP services, modify the registerDefaultServers() method:

this.registeredServers.set("slack", {
  name: "slack",
  baseUrl: "http://localhost:3003",
  endpoints: {
    sendMessage: "/mcp",
    createChannel: "/mcp",
  },
});

🐛 Error Handling

The orchestrator includes robust error handling:

  • Network failures: Automatic timeouts and retries
  • Unavailable services: Continues with available services
  • Validation errors: Reports which parameter failed
  • Partial responses: Indicates which operations succeeded

📝 Logs and Debugging

Results include detailed debugging info:

{
  "summary": "Development feature planning completed: 3/3 tasks successful",
  "results": [
    {
      "service": "trello",
      "method": "createList",
      "success": true,
      "result": { "id": "list123", "name": "Backlog" }
    }
  ],
  "timestamp": "2025-01-15T10:30:00.000Z"
}

🤝 Integration with AI Agents

This orchestrator is designed to work with AI agents like Claude. The agent can:

  1. Interpret natural language instructions
  2. Translate them into structured JSON-RPC calls
  3. Send them to the orchestrator
  4. Interpret and present results to the user

Example agent prompt:

"Create a task to implement Google login. I want it added to Trello in the 'MyProject' board and also create the branch in GitHub under 'user/myapp'"

The agent would translate this into a planDevelopmentFeature call with the appropriate parameters.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
ChatWiseThe second fastest AI chatbot™
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
Serper MCP ServerA Serper MCP Server