multi-ai-hub
Privacy-first local MCP hub for coordinating multiple AI providers from Claude Code, supporting local Ollama seats and cloud providers with safety routing.
README
Multi-AI Hub
Privacy-first local MCP hub for coordinating multiple AI providers from Claude Code.
The hub runs on your machine, exposes a small Model Context Protocol server, and lets a commander agent ask bounded questions to other providers without handing them your whole workspace. It supports local Ollama seats for private work, cloud seats for non-sensitive critique, and a structured council mode for independent review.
What It Does
- Exposes MCP tools for Claude Code:
ask_openai,ask_gemini,ask_ollama,ask_qwen,ask_llama_fast,council_review,multi_ai_status, and optional cloud seats. - Keeps API keys server-side in
.env; they are never sent to the browser. - Uses local Ollama seats for private review and offline fallback.
- Blocks obvious sensitive prompts from cloud seats with a fail-closed routing check.
- Supports optional OpenAI-compatible cloud reviewers: Groq, Cerebras, Mistral, OpenRouter, GLM, and NVIDIA NIM.
- Provides smoke tests and a secret/private marker scanner for safer sharing.
Providers
Base providers:
- Claude via Claude Code CLI / Claude Max, or Anthropic API
- OpenAI API
- Gemini API
- Ollama local models
Council seats:
- Local: Qwen 30B, fast local seat, manual DeepSeek
- Cloud: Gemini, Groq, Cerebras, Mistral, OpenRouter, GLM, NVIDIA NIM
Cloud seats are dormant until their matching API key is set.
Quick Start
Requirements:
- Node.js 20+
- pnpm
- Claude Code installed or available through this package
- Optional: Ollama for local seats
Install and configure:
pnpm install
Copy-Item .env.example .env
Add provider keys to .env as needed:
GEMINI_API_KEY=
OPENAI_API_KEY=
NVIDIA_API_KEY=
OLLAMA_URL=http://127.0.0.1:11434
Start the local HTTP server:
pnpm start
Run the MCP server from Claude Code by pointing your MCP config at:
node node_modules/tsx/dist/cli.mjs src/mcp-server.ts
MCP Tools
Always registered:
ask_openaiask_geminiask_ollamaask_qwenask_llama_fastask_deepseekcouncil_reviewmulti_ai_status
Conditionally registered when configured:
generate_imageask_groqask_cerebrasask_mistralask_openrouterask_glmask_nvidia
multi_ai_status reports provider availability, model names, Claude CLI status, and council seat metadata without exposing secrets.
NVIDIA NIM
NVIDIA NIM is supported as an OpenAI-compatible cloud seat. See docs/providers/nvidia.md.
Default values:
NVIDIA_MODEL=meta/llama-3.3-70b-instruct
NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1
Smoke-test configured cloud seats:
pnpm smoke:cloud-seats
Safety Model
This is a local single-user tool, not a hosted multi-tenant service.
Do not bind it to 0.0.0.0 or expose it publicly without adding authentication, authorization, HTTPS, rate limits, audit logs, and per-user spend controls.
Sensitive prompts are blocked from obvious cloud routes, but the classifier is a guardrail, not a legal or security guarantee. Use local/private seats for identity, legal, financial, medical, credential, or proprietary content.
Before publishing, forking, or sharing a modified copy:
pnpm secret:scan
Development
pnpm typecheck
pnpm test
pnpm audit --prod
pnpm secret:scan
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.