by feiskyer
AI Hub offers unified access to 100+ AI providers via LiteLLM, enabling seamless switching and configuration with advanc
Provides unified access to 100+ AI providers (OpenAI, Anthropic, Google, AWS Bedrock, etc.) through a single interface using LiteLLM integration.
AI Hub is a community-built MCP server published by feiskyer that provides AI assistants with tools and capabilities via the Model Context Protocol. AI Hub offers unified access to 100+ AI providers via LiteLLM, enabling seamless switching and configuration with advanc It is categorized under ai ml, developer tools.
You can install AI Hub in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
AI Hub is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Strong directory entry: AI Hub surfaces stars and publisher context so we could sanity-check maintenance before adopting.
AI Hub is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Strong directory entry: AI Hub surfaces stars and publisher context so we could sanity-check maintenance before adopting.
AI Hub is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
We evaluated AI Hub against two servers with overlapping tools; this profile had the clearer scope statement.
AI Hub is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Useful MCP listing: AI Hub is the kind of server we cite when onboarding engineers to host + tool permissions.
AI Hub is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
AI Hub is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: AI Hub surfaces stars and publisher context so we could sanity-check maintenance before adopting.
showing 1-10 of 73
A Model Context Protocol (MCP) server that provides unified access to various AI providers through LiteLM. Chat with OpenAI, Anthropic, and 100+ other AI models using a single, consistent interface.
MCP AI Hub acts as a bridge between MCP clients (like Claude Desktop/Code) and multiple AI providers. It leverages LiteLM's unified API to provide seamless access to 100+ AI models without requiring separate integrations for each provider.
Key Benefits:
Choose your preferred installation method:
# Option A: Install from PyPI
pip install mcp-ai-hub
# Option B: Install with uv (recommended)
uv tool install mcp-ai-hub
# Option C: Install from source
pip install git+https://github.com/your-username/mcp-ai-hub.git
Installation Notes:
uv is a fast Python package installer and resolverCreate a configuration file at ~/.ai_hub.yaml with your API keys and model configurations:
model_list:
- model_name: gpt-4 # Friendly name you'll use in MCP tools
litellm_params:
model: openai/gpt-4 # LiteLM provider/model identifier
api_key: "sk-your-openai-api-key-here" # Your actual OpenAI API key
max_tokens: 2048 # Maximum response tokens
temperature: 0.7 # Response creativity (0.0-1.0)
- model_name: claude-sonnet
litellm_params:
model: anthropic/claude-3-5-sonnet-20241022
api_key: "sk-ant-your-anthropic-api-key-here"
max_tokens: 4096
temperature: 0.7
Configuration Guidelines:
gpt-4, claude-sonnet)openai/gpt-4, anthropic/claude-3-5-sonnet-20241022)max_tokens, temperature, and other LiteLM-supported parametersConfigure Claude Desktop to use MCP AI Hub by editing your configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"ai-hub": {
"command": "mcp-ai-hub"
}
}
}
claude mcp add -s user ai-hub mcp-ai-hub
MCP AI Hub supports multiple transport mechanisms for different use cases:
Command Line Options:
# Default stdio transport (for MCP clients like Claude Desktop)
mcp-ai-hub
# Server-Sent Events transport (for web applications)
mcp-ai-hub --transport sse --host 0.0.0.0 --port 3001
# Streamable HTTP transport (for direct API calls)
mcp-ai-hub --transport http --port 8080
# Custom config file and debug logging
mcp-ai-hub --config /path/to/config.yaml --log-level DEBUG
Transport Type Details:
| Transport | Use Case | Default Host:Port | Description |
|---|---|---|---|
stdio | MCP clients (Claude Desktop/Code) | N/A | Standard input/output, default for MCP |
sse | Web applications | localhost:3001 | Server-Sent Events for real-time web apps |
http | Direct API calls | localhost:3001 (override with --port) | HTTP transport with streaming support |
CLI Arguments:
--transport {stdio,sse,http}: Transport protocol (default: stdio)--host HOST: Host address for SSE/HTTP (default: localhost)--port PORT: Port number for SSE/HTTP (default: 3001; override if you need a different port)--config CONFIG: Custom config file path (default: ~/.ai_hub.yaml)--log-level {DEBUG,INFO,WARNING,ERROR}: Logging verbosity (default: INFO)Once MCP AI Hub is connected to your MCP client, you can interact with AI models using these tools:
Primary Chat Tool:
chat(model_name: str, message: str | list[dict]) -> str
Model Discovery Tools:
list_models() -> list[str]
get_model_info(model_name: str) -> dict
MCP AI Hub supports 100+ AI providers through LiteLM. Configure your models in ~/.ai_hub.yaml with API keys and custom parameters.
You can define system prompts at two levels:
global_system_prompt: Applied to all models by defaultsystem_prompt: Overrides the global prompt for that modelPrecedence: model-specific prompt > global prompt. If a model's system_prompt is set to an empty string, it disables the global prompt for that model.
global_system_prompt: "You are a helpful AI assistant. Be concise."
model_list:
- model_name: gpt-4
system_prompt: "You are a precise coding assistant."
litellm_params:
model: openai/gpt-4
api_key: "sk-your-openai-api-key"
- model_name: claude-sonnet
# Empty string disables the global prompt for this model
system_prompt: ""
litellm_params:
model: anthropic/claude-3-5-sonnet-20241022
api_key: "sk-ant-your-anthropic-api-key"
Notes:
system message, both system messages will be included in order (configured prompt first).Major AI Providers:
Configuration Parameters:
Basic Configuration:
global_system_prompt: "You are a helpful AI assistant. Be concise."
model_list:
- model_name: gpt-4
system_prompt: "You are a precise coding assistant." # overrides global
litellm_params:
model: openai/gpt-4
api_key: "sk-your-actual-openai-api-key"
max_tokens: 2048
temperature: 0.7
- model_name: claude-sonnet
litellm_params:
model: anthropic/claude-3-5-sonnet-20241022
api_key: "sk-ant-your-actual-anthropic-api-key"
max_tokens: 4096
temperature: 0.7
Custom Parameters:
model_list:
- model_name: gpt-4-creative
litellm_params:
model: openai/gpt-4
api_key: "sk-your-openai-key"
max_tokens: 4096
temperature: 0.9 # Higher creativity
top_p: 0.95
frequency_penalty: 0.1
presence_penalty: 0.1
- model_name: claude-analytical
litellm_params:
model: anthropic/claude-3-5-sonnet-20241022
api_key: "sk-ant-your-anthropic-key"
max_tokens: 8192
temperature: 0.3 # Lower creativity for analytical tasks
stop_sequences: ["
", "Human:"]
Local LLM Server Configuration:
model_list:
- model_name: local-llama
litellm_params:
model: openai/llama-2-7b-chat
api_key: "dummy-key" # Local servers often accept any API key
api_base: "http://localhost:8080/v1" # Local OpenAI-compatible server
max_tokens: 2048
temperature: 0.7
For more providers, please refer to the LiteLLM docs: https://docs.litellm.ai/docs/providers.
Setup:
# Install all dependencies including dev dependencies
uv sync
# Install package in development mode
uv pip install -e ".[dev]"
# Add new runtime dependencies
uv add package_name
# Add new development dependencies
uv add --dev package_name
# Update dependencies
uv sync --upgrade
Running and Testing:
# Run the MCP server
uv run mcp-ai-hub
# Run with custom configuration
uv run mcp-ai-hub --config ./custom_config.yaml --log-level DEBUG
# Run with different transport
uv run mcp-ai-hub --transport sse --port 3001
# Run tests (when test suite is added)
uv run pytest
# Run tests with coverage
uv run pytest --cov=src/mcp_
---
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.