Skip to content
mcp-server-orchestrator logo

MCP Server Orchestrator

mcp-server-orchestrator

Configure, deploy, and troubleshoot Model Context Protocol (MCP) servers for AI agent workflows. Use when setting up MCP servers, debugging connection issues, managing multi-server configurations, integrating with Claude Desktop/Code/Cowork, or designing custom tool servers. Triggers on MCP confi...

SKILL.md

Full skill instructions

MCP Server Orchestrator

Manage MCP server infrastructure for AI-powered development workflows.

MCP Architecture Overview

┌─────────────────┐     ┌──────────────────┐     ┌─────────────────┐
│   MCP Client    │────▶│   MCP Server     │────▶│  External APIs  │
│ (Claude, etc.)  │◀────│  (Tool Provider) │◀────│  (Services)     │
└─────────────────┘     └──────────────────┘     └─────────────────┘
         │                       │
         └───── JSON-RPC ────────┘

Key concepts:

  • Server: Provides tools, resources, and prompts via MCP protocol
  • Client: Consumes server capabilities (Claude Desktop, Claude Code, etc.)
  • Transport: Communication layer (stdio, SSE, WebSocket)

Configuration Locations

ClientConfig FilePlatform
Claude Desktopclaude_desktop_config.jsonmacOS: ~/​Library/​Application Support/​Claude/
Windows: %APPDATA%\Claude\
Claude Codesettings.json or MCP configProject-level or user settings
Clinecline_mcp_settings.jsonVS Code extension settings

Server Configuration Schema

{
  "mcpServers": {
    "server-name": {
      "command": "executable",
      "args": ["arg1", "arg2"],
      "env": {
        "API_KEY": "value"
      },
      "disabled": false
    }
  }
}

Common Server Types

Python Server (uvx):

{
  "my-python-server": {
    "command": "uvx",
    "args": ["--from", "package-name", "server-command"]
  }
}

Node Server (npx):

{
  "my-node-server": {
    "command": "npx",
    "args": ["-y", "@scope/​package-name"]
  }
}

Local Development Server:

{
  "dev-server": {
    "command": "python",
    "args": ["-m", "my_server"],
    "env": {
      "DEBUG": "true"
    }
  }
}

Troubleshooting Workflow

Connection Issues

  1. Verify server starts independently:

    # Test Python server
    python -m my_server
    
    # Test Node server
    npx -y @scope/​package-name
    
  2. Check logs:

    • Claude Desktop: ~/​Library/​Logs/​Claude/​mcp*.log
    • Look for JSON-RPC errors, connection timeouts
  3. Validate JSON config:

    python -c "import json; json.load(open('config.json'))"
    
  4. Common fixes:

    • Use absolute paths for commands
    • Ensure dependencies installed in correct environment
    • Check API keys/​env vars are set
    • Restart client after config changes

Authentication Issues

  1. OAuth flows: Ensure redirect URIs configured correctly
  2. API keys: Verify env vars accessible to server process
  3. Token refresh: Check token storage location and permissions

Building Custom Servers

Python Server (FastMCP)

from fastmcp import FastMCP

mcp = FastMCP("my-server")

@mcp.tool()
def my_tool(param: str) -> str:
    """Tool description for the AI."""
    return f"Result: {param}"

@mcp.resource("resource://my-data")
def get_data() -> str:
    """Provide data as a resource."""
    return "Resource content"

if __name__ == "__main__":
    mcp.run()

Node Server (MCP SDK)

import { Server } from "@modelcontextprotocol/​sdk/​server/​index.js";
import { StdioServerTransport } from "@modelcontextprotocol/​sdk/​server/​stdio.js";

const server = new Server({ name: "my-server", version: "1.0.0" }, {
  capabilities: { tools: {} }
});

server.setRequestHandler(ListToolsRequestSchema, async () => ({
  tools: [{
    name: "my_tool",
    description: "Tool description",
    inputSchema: { type: "object", properties: { param: { type: "string" } } }
  }]
}));

const transport = new StdioServerTransport();
await server.connect(transport);

Multi-Server Orchestration

Modular Architecture

Organize servers by domain:

{
  "mcpServers": {
    "filesystem": { "command": "...", "args": ["--allowed-dirs", "/​projects"] },
    "database": { "command": "...", "env": { "DB_URL": "..." } },
    "api-integrations": { "command": "...", "env": { "API_KEYS": "..." } },
    "custom-tools": { "command": "python", "args": ["-m", "my_tools"] }
  }
}

Server Selection Strategy

Think of servers as modules in a synthesizer—patch them together based on workflow needs:

  • Development workflow: filesystem + git + code-analysis servers
  • Research workflow: web-search + document + note-taking servers
  • Data workflow: database + visualization + export servers

Performance Optimization

  • Lazy loading: Only enable servers needed for current task
  • Caching: Implement response caching for expensive operations
  • Timeout tuning: Adjust timeouts for slow external APIs
  • Connection pooling: Reuse connections in database servers

References

  • references/​server-templates.md - Boilerplate for common server types
  • references/​debugging-guide.md - Detailed troubleshooting procedures

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View