Ultra (Multi-AI Provider)のロゴ

Ultra (Multi-AI Provider)

組織
RealMikeChong

100x Your Claude Code, Gemini CLI, Cursor and/or any coding tools with MCP client support

公開者RealMikeChong
リポジトリultra-mcp
言語TypeScript
フォーク
19
スター
274
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Ultra (Multi-AI Provider)は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには274件のスターと19件のフォークがあります。

Ultra MCP

All Models. One Interface. Zero Friction.

npm version npm downloads

🚀 Ultra MCP - A Model Context Protocol server that exposes OpenAI, Gemini, Azure OpenAI, and xAI Grok AI models through a single MCP interface for use with Claude Code and Cursor.

img

Stop wasting time having meetings with human. Now it's time to ask AI models do this.

Inspiration

This project is inspired by:

  • Agent2Agent (A2A) by Google - Thank you Google for pioneering agent-to-agent communication protocols
  • Zen MCP - The AI orchestration server that enables Claude to collaborate with multiple AI models

Why Ultra MCP?

While inspired by zen-mcp-server, Ultra MCP offers several key advantages:

🚀 Easier to Use

  • No cloning required - Just run npx ultra-mcp to get started
  • NPM package - Install globally with npm install -g ultra-mcp
  • Interactive setup - Guided configuration with npx ultra-mcp config
  • Zero friction - From zero to AI-powered coding in under a minute

📊 Built-in Usage Analytics

  • Local SQLite database - All usage data stored locally using libSQL
  • Automatic tracking - Every LLM request is tracked with token counts and costs
  • Usage statistics - View your AI usage with npx ultra-mcp db:stats
  • Privacy first - Your data never leaves your machine

🌐 Modern Web Dashboard

  • Beautiful UI - React dashboard with Tailwind CSS
  • Real-time stats - View usage trends, costs by provider, and model distribution
  • Easy access - Just run npx ultra-mcp dashboard
  • Configuration UI - Manage API keys and model priorities from the web

🔧 Additional Benefits

  • Simplified tools - Maximum 4 parameters per tool (vs zen's 10-15)
  • Smart defaults - Optimal model selection out of the box
  • TypeScript first - Full type safety and better developer experience
  • Regular updates - Active development with new features weekly

Features

  • 🤖 Multi-Model Support: Integrate OpenAI (GPT-5), Google Gemini (2.5 Pro), Azure OpenAI, and xAI Grok models
  • 🔌 MCP Protocol: Standard Model Context Protocol interface
  • 🎯 Discoverable Prompts: All 25 tools available as prompts in Claude Code (New in v0.7.0)
  • 🧠 Deep Reasoning Tools: Access GPT-5 for complex problem-solving
  • 🔍 Investigation & Research: Built-in tools for thorough investigation and research
  • 🌐 Google Search Integration: Gemini 2.5 Pro with real-time web search
  • ⚡ Real-time Streaming: Live model responses via Vercel AI SDK
  • 🔧 Zero Config: Interactive setup with smart defaults
  • 🔑 Secure Configuration: Local API key storage with conf library
  • 🧪 TypeScript: Full type safety and modern development experience

Quick Start

Installation

bash
# Install globally via npm
npm install -g ultra-mcp

# Or run directly with npx
npx -y ultra-mcp config

Configuration

Set up your API keys interactively:

bash
npx -y ultra-mcp config

This will:

  1. Show current configuration status
  2. Present a provider-first menu to select which AI provider to configure
  3. Guide you through setting API keys, base URLs, and preferred models
  4. Store configuration securely on your system
  5. Auto-load settings when the server starts

New in v0.5.10:

  • 🎯 Provider-first configuration - Select specific provider to configure
  • 🤖 OpenAI-Compatible support - Configure Ollama (local) or OpenRouter (400+ models)
  • 📋 Model selection - Choose your preferred model from categorized lists

Running the Server

bash
# Run the MCP server
npx -y ultra-mcp

# Or after building locally
bun run build
node dist/cli.js

CLI Commands

Ultra MCP provides several powerful commands:

config - Interactive Configuration

bash
npx -y ultra-mcp config

Configure API keys interactively with a user-friendly menu system.

dashboard - Web Dashboard

bash
npx -y ultra-mcp dashboard

# Custom port
npx -y ultra-mcp dashboard --port 4000

# Development mode
npx -y ultra-mcp dashboard --dev

Launch the web dashboard to view usage statistics, manage configurations, and monitor AI costs.

install - Install for Claude Code

bash
npx -y ultra-mcp install

Automatically install Ultra MCP as an MCP server for Claude Code.

doctor - Health Check

bash
npx -y ultra-mcp doctor

# Test connections to providers
npx -y ultra-mcp doctor --test

Check installation health and test API connections.

chat - Interactive Chat

bash
npx -y ultra-mcp chat

# Specify model and provider
npx -y ultra-mcp chat -m gpt-5 -p openai
npx -y ultra-mcp chat -m grok-4 -p grok

Chat interactively with AI models from the command line.

Database Commands

db:show - Show Database Info

bash
npx -y ultra-mcp db:show

Display database file location and basic statistics.

db:stats - Usage Statistics

bash
npx -y ultra-mcp db:stats

Show detailed usage statistics for the last 30 days including costs by provider.

db:view - Database Viewer

bash
npx -y ultra-mcp db:view

Launch Drizzle Studio to explore the usage database interactively.

Integration with Claude Code

Automatic Installation (Recommended)

bash
# Install Ultra MCP for Claude Code
npx -y ultra-mcp install

This command will:

  • Detect Claude Code installation
  • Add Ultra MCP as an MCP server
  • Configure for user or project scope
  • Verify API key configuration

Manual Installation

Add to your Claude Code settings:

json
{
  "mcpServers": {
    "ultra-mcp": {
      "command": "npx",
      "args": ["-y", "ultra-mcp@latest"]
    }
  }
}

Integration with Cursor

First configure your API keys:

bash
npx -y ultra-mcp config

Then add to your Cursor MCP settings:

json
{
  "mcpServers": {
    "ultra-mcp": {
      "command": "npx",
      "args": ["-y", "ultra-mcp@latest"]
    }
  }
}

Ultra MCP will automatically use the API keys you configured with the config command.

MCP Tools & Prompts

Ultra MCP provides powerful AI tools accessible through Claude Code and Cursor. New in v0.7.0: All tools are now also available as discoverable prompts in Claude Code.

🎯 Prompts Support (New in v0.7.0)

All Ultra MCP tools are now exposed as discoverable prompts in Claude Code, making them even easier to use:

  • 25 discoverable prompts corresponding to all existing tools
  • Parameter guidance built into each prompt template
  • Natural language interface for all AI capabilities
  • Automatic discovery by Claude Code and other MCP clients

How to use prompts:

  1. Type / in Claude Code to see available prompts
  2. Select any Ultra MCP prompt (e.g., "Deep Reasoning", "Code Review", "Debug Issue")
  3. Fill in the parameters through the guided interface
  4. Claude automatically generates the appropriate instruction

This makes Ultra MCP's powerful AI capabilities more accessible than ever!

🧠 Deep Reasoning (deep-reasoning)

Leverage advanced AI models for complex problem-solving and analysis.

  • Default: GPT-5 for OpenAI/Azure, Gemini 2.5 Pro with Google Search, Grok-4 for xAI
  • Use Cases: Complex algorithms, architectural decisions, deep analysis

🔍 Investigate (investigate)

Thoroughly investigate topics with configurable depth levels.

  • Depth Levels: shallow, medium, deep
  • Google Search: Enabled by default for Gemini
  • Use Cases: Research topics, explore concepts, gather insights

📚 Research (research)

Conduct comprehensive research with multiple output formats.

  • Output Formats: summary, detailed, academic
  • Use Cases: Literature reviews, technology comparisons, documentation

📋 List Models (list-ai-models)

View all available AI models and their configuration status.

Example Usage

javascript
// In Claude Code or Cursor with MCP
await use_mcp_tool('ultra-mcp', 'deep-reasoning', {
  provider: 'openai',
  prompt: 'Design a distributed caching system for microservices',
  reasoningEffort: 'high',
});

Development

bash
# Clone the repository
git clone https://github.com/RealMikeChong/ultra-mcp
cd ultra-mcp

# Install dependencies
bun install

# Build TypeScript
bun run build

# Run tests
bun run test

# Development mode with watch
bun run dev

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/cli.js

Architecture

Ultra MCP acts as a bridge between multiple AI model providers and MCP clients:

  1. MCP Protocol Layer: Implements Model Context Protocol for Claude Code/Cursor communication
  2. Model Providers: Integrates OpenAI, Google (Gemini), Azure OpenAI, and xAI Grok via Vercel AI SDK
  3. Unified Interface: Single MCP interface to access multiple AI models
  4. Configuration Management: Secure local storage with schema validation

Key Components

  • src/cli.ts - CLI entry point with commander
  • src/server.ts - MCP server implementation
  • src/config/ - Configuration management with schema validation
  • src/handlers/ - MCP protocol handlers
  • src/providers/ - Model provider implementations
  • src/utils/ - Shared utilities for streaming and error handling

Configuration Storage

Ultra MCP stores configuration in your system's default config directory:

  • macOS: ~/Library/Preferences/ultra-mcp-nodejs/
  • Linux: ~/.config/ultra-mcp/
  • Windows: %APPDATA%\ultra-mcp-nodejs\

Environment Variables

You can also set API keys and base URLs via environment variables:

  • OPENAI_API_KEY / OPENAI_BASE_URL
  • GOOGLE_API_KEY / GOOGLE_BASE_URL
  • AZURE_API_KEY / AZURE_BASE_URL (base URL required for Azure)
  • XAI_API_KEY / XAI_BASE_URL

Note: Configuration file takes precedence over environment variables.

Vector Embeddings Configuration

Ultra MCP supports vector embeddings for semantic code search. By default, it uses text-embedding-3-small for cost efficiency (6.5x cheaper than the large model).

Embedding Model Configuration

You can customize the embedding models in your configuration:

json
{
  "vectorConfig": {
    "embeddingModel": {
      "openai": "text-embedding-3-small",  // or "text-embedding-3-large"
      "azure": "text-embedding-3-small",    // or "text-embedding-3-large"
      "gemini": "text-embedding-004"
    }
  }
}

Model Comparison

ModelCostDimensionsMTEB ScoreBest For
text-embedding-3-small$0.02/1M tokens153662.3%Cost-effective code search
text-embedding-3-large$0.13/1M tokens307264.6%Maximum accuracy

Migration Notes

  • Existing Databases: If you have an existing vector database created with text-embedding-3-large, it will continue to work but won't be compatible with new embeddings from text-embedding-3-small. Consider re-indexing if you want to use the smaller model.
  • Backward Compatibility: You can always override the model by configuring embeddingModel in your vector config.

Roadmap

Phase 1: Zero Config Setup

  • Interactive mode for seamless first-time setup
  • Auto-detection of available API keys
  • Smart defaults and configuration recommendations
  • One-command installation and setup

Phase 2: Integration Helpers

  • Helper commands to integrate Ultra MCP into Claude Code
  • Cursor IDE integration utilities
  • Auto-generation of MCP server configuration files
  • Integration validation and troubleshooting tools

Phase 3: Cost Dashboard & Analytics

  • Web UI dashboard using React, shadcn/ui, and Tremor
  • SQLite database for usage tracking via Drizzle ORM
  • Real-time cost monitoring and budget alerts
  • Usage analytics and model performance insights
  • Export capabilities for billing and reporting

Phase 4: Workflow Optimization

  • Use Ultra MCP to 100x your current LLM coding workflows
  • Advanced prompt templates and automation
  • Multi-model orchestration and fallback strategies
  • Workflow optimization recommendations
  • Performance monitoring and optimization tools

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes and add tests
  4. Run tests: npm test
  5. Commit changes: git commit -m "Add feature"
  6. Push to the branch: git push origin feature-name
  7. Submit a pull request

Testing

bash
# Run all tests
bun run test

# Run tests with UI
bun run test:ui

# Run tests with coverage
bun run test:coverage

License

MIT License - see LICENSE file for details.

Acknowledgments

About the Author

👋 Mike Chong - Building tools to amplify human potential through AI.

As one of the earliest users of GitHub Copilot (personally invited by Nat Friedman, former GitHub CEO), I've witnessed firsthand how AI-assisted development can transform the way we build software. My journey as a former engineer on Outlook iOS/Android taught me the importance of creating tools that genuinely improve people's daily lives.

Ultra MCP represents my vision of democratizing access to the best AI models, making cutting-edge AI capabilities accessible to every developer through a unified, simple interface. I believe that by removing barriers between developers and AI models, we can accelerate innovation and create a better world for everyone.

"The future belongs to those who can seamlessly orchestrate human creativity with AI capabilities."

Why Ultra MCP is Different from Zen MCP Server

While both projects aim to enhance AI development workflows, Ultra MCP brings unique advantages:

  1. Written in TypeScript - Full type safety, excellent IDE support, and a more maintainable codebase

  2. Vector Search Support - Built-in semantic code search using vector embeddings

    • Index your entire codebase with npx ultra-mcp index
    • Search with natural language queries: npx ultra-mcp search "authentication logic"
    • Powered by OpenAI, Azure OpenAI, and Google Gemini embeddings
    • Local SQLite storage with libSQL vector extension for efficient similarity search
    • Smart chunking and overlap for optimal search results
  3. Built-in Dashboard & Usage Tracking - Comprehensive analytics and cost monitoring

    • Web dashboard with live metrics and real-time statistics
    • Automatic tracking of all LLM requests with token counts
    • Continuously updated pricing via LiteLLM - Accurate cost calculations
    • Tiered pricing support (e.g., Gemini's long-context pricing tiers)
    • SQLite database powered by libSQL for local-first privacy
  4. Advanced Pricing System - Real-time cost management

    • Fetches latest pricing from LiteLLM's GitHub repository
    • File-based caching with 1-hour TTL to minimize network calls
    • CLI commands: npx ultra-mcp pricing show gpt-4o
    • Accurate cost tracking for hundreds of models across all providers
    • Automatic fallback to cached data when offline

Unlike many MCP implementations, Ultra MCP includes built-in vector search and a pricing-aware dashboard out of the box. These features make Ultra MCP particularly suited for developers who want robust tooling with built-in cost visibility and intelligent code search capabilities for responsible AI usage.

Links

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "ultra-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ultra"
      ]
    }
  }
}

Ultra (Multi-AI Provider)のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Ultra (Multi-AI Provider)に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Ultra (Multi-AI Provider)をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Ultra (Multi-AI Provider)のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "ultra-multi-ai-provider": {
      "command": "npx",
      "args": [
        "-y",
        "ultra-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてUltra (Multi-AI Provider)のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Ultra (Multi-AI Provider)のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Ultra (Multi-AI Provider)を使ってこのタスクを手伝ってもらえますか?
Ultra (Multi-AI Provider)
はい、読みました。
Ultra (Multi-AI Provider)で調べた結果をお伝えします。

よくある質問

Ultra (Multi-AI Provider) MCPサーバーは何に使いますか?

Ultra (Multi-AI Provider)は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでUltra (Multi-AI Provider) MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでUltra (Multi-AI Provider)を利用できます。

TypingMindでUltra (Multi-AI Provider) MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Ultra (Multi-AI Provider)を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Ultra (Multi-AI Provider) MCPをTypingMindに接続するにはどうすればよいですか?

Ultra (Multi-AI Provider)はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでUltra (Multi-AI Provider) MCPのどのようなツールを利用できますか?

Ultra (Multi-AI Provider)はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Ultra (Multi-AI Provider) MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Ultra (Multi-AI Provider)で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇