1. Conduid
  2. AI
  3. FastMCP Multi LLM Tool
MCP server · AI

FastMCP Multi LLM Tool

Updated for Code Changes

Unclaimed last commit a year ago ai
34Low

Scored 7 months ago · breakdown

About FastMCP Multi LLM Tool

FastMCP Multi LLM Tool is an MCP server published by sbayer2 in the AI category: updated for Code Changes.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/sbayer2/FastMCP_Multi_LLM_tool

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about FastMCP Multi LLM Tool

Powered by Claude · Grounded in docs

I know everything about FastMCP Multi LLM Tool. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Multi-LLM FastMCP Orchestration System

This project demonstrates the Multi-Domain Local Server Architecture pattern using FastMCP 2.0, where multiple local Ollama LLMs act as specialized tools within a unified async context.

Architecture Overview

The system leverages FastMCP's in-memory transport to create "virtual microservices" - each LLM gets its own FastMCP server instance with dedicated tools, all orchestrated within a single Python process.

# Each LLM is a separate domain-specific server
gemma3_server = FastMCP("gemma3_LLM")
llama3_server = FastMCP("llama3.1_LLM")
qwen_server = FastMCP("qwen2.5_LLM")
deepseek_server = FastMCP("deepseek_LLM")

# All work together in shared async context
async with gemma3_client, llama3_client, qwen_client, deepseek_client:
    # Orchestrate multiple models simultaneously

Key Features

  1. Zero Network Overhead: All communication happens in-memory
  2. Shared Async Context: All LLM servers alive simultaneously
  3. Parallel Execution: Run multiple models concurrently
  4. Clean Separation: Each model has its own semantic boundary
  5. FastAPI Integration: REST API wrapper for web access

Available Models

  • Gemma3 4B: Fast, efficient for quick analysis
  • Llama 3.1 8B: Balanced performance and quality
  • Qwen 2.5 14B: Strong instruction following
  • DeepSeek R1 7B: Advanced reasoning capabilities

Quick Start

  1. Ensure Ollama is running with required models:
ollama list  # Should show gemma3:4b, llama3.1:8b, qwen2.5:14b-instruct-q4_K_M, deepseek-r1:7b
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the orchestration demo:
python multi_llm_fastmcp.py
  1. Start the FastAPI server:
python fastapi_multi_llm.py
  1. Test async coordination:
python test_multi_llm.py

API Endpoints

  • GET / - API overview
  • GET /models - List available LLM models
  • GET /prompts - List available prompt types
  • GET /resources - List available data resources
  • POST /analyze - Analyze data with specified models
  • POST /compare - Compare all models on same task
  • POST /consensus - Get multi-model consensus
  • GET /health - Check all LLM server health

Example Usage

# Analyze medical data with multiple models
curl -X POST http://localhost:8000/analyze \
  -H "Content-Type: application/json" \
  -d '{
    "prompt_type": "medical_analyst",
    "resource_uri": "resource://medical/patient-123",
    "models": ["gemma3", "deepseek"]
  }'

# Compare all models on code review
curl -X POST http://localhost:8000/compare \
  -H "Content-Type: application/json" \
  -d '{
    "prompt_type": "code_reviewer",
    "resource_uri": "resource://code/sample-function"
  }'

Architecture Benefits

  1. Transactional Semantics: If any client fails, all contexts clean up together
  2. Natural Orchestration: Weave between different models in natural Python flow
  3. Type Safety: Full Pydantic validation throughout
  4. Scalability: Easy to add new models or domains

Project Structure

/
├── main.py                    # Original FastAPI shell
├── multi_llm_fastmcp.py      # Core multi-LLM orchestration
├── fastapi_multi_llm.py      # FastAPI REST wrapper
├── test_multi_llm.py         # Async coordination tests
├── requirements.txt          # Python dependencies
└── README.md                # This file

Future Enhancements

  • Add more specialized prompts for different domains
  • Integrate with MCP servers from .claude.json
  • Add streaming responses
  • Implement model voting/consensus algorithms
  • Add performance monitoring and metrics

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About FastMCP Multi LLM Tool

How do I install FastMCP Multi LLM Tool?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is FastMCP Multi LLM Tool safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is FastMCP Multi LLM Tool still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.